Could not open handle for fopen() while updating wordpress


Issue : I got the above while updating wordpress and the plugins.

Solution :

This might be due to the temporary directory created on the wordpress directory. You can resolve it using following steps.

1. Create a new directory “tmp” inside “wp-content” directory.

# mkdir tmp

2. Now give it 777 permission and correct it to user ownership.

#chmod 777 tmp

#chown user.user tmp

3. Now define the new directory in wordpress configuration file wp-config.php

define(‘WP_TEMP_DIR’,ABSPATH.’wp-content/tmp/’);

4. Try to update it now.

That’s all….!!!!

How to reset WHMCS admin password via database


You can reset the WHMCS admin password through database using the following steps.

If for some reason password reset email does not arrive to your email address, follow the steps below to reset the password via database.

1. Log in your cPanel and navigate to Databases section. Then go to phpMyAdmin.

2. Once inside, find the database in  which you have installed whmcs and look for tbladmins table. Click on Edit next to the admin user in question.

whmcspass3

Note :

If you do not recall the database name of your WHMCS installation, check configuration.php file located in the root folder. Where you can find the database name  like pasted below.

$db_name = ‘tricks_whmcs’

In the above example, tricks_whmcs is the database name.

3.  On the next page look for password column.

In the last field enter the new password and select MD5 hash option. In the passwordhash column you need to remove the value from the last field.

whmcspass4

4. Once done, scroll down to the bottom of the page and click on Go.

 

JFolder::create: Infinite loop detected in Joomla


Issue : I got the above error while installing and updating new module in Joomla.

solution:

1. First go to your joomla administrator > Global Configuration > System

2. check the “Path to Log Folder ” in system and server tabs.

The “Path to Log Folder ” should be set as wrong path.

3. Please change it to correct path and that will resolve the issue.

That’s all…..!!!

MySQL: Can’t create/write to file ‘/backup/tmp/#sql_3c6_0.MYI’ (Errcode: 2)


Issue: I got this error when accessing the certain pages of drupal website.

MySQL: Can’t create/write to file ‘/backup/tmp/#sql_3c6_0.MYI’ (Errcode: 2)

Solution:

Check the location of tmp directory inside my.cnf and change it to /tmp

1.check mysql config : my.cnf

cat /etc/my.cnf | grep tmpdir

2.If the tmpdir is missing or /tmp is not mentioned there, please add it.

i.e; tmpdir=/tmp to my.cnf under [mysqld]

3.Restart the mysql server

/etc/init.d/mysql restart

That’s all……..!!!!

Fatal error: Invalid opcode 153/1/8


Issue : I got the above error while accessing a Joomla website.

Solution:

The issue is raised due to the incompatibility of eaccelerator with current php version.

So we need to disable eaccelerator for the particular user.

1. Copy the php.ini file to the document root of the user.

2. Then change the following values to “0” instead of “1”

php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0

That’s all……..!!!

Can’t upgrade or update plugins: “could not create directory”


Issue: I got the above error while updating the WordPress plugins.

Solution:

Check the permission of “wp-content” directory and “upgrade” directory inside it.

It should be under user ownership.

ie:  chown -R user.user wp-content/

Also correct the directory permission to 755

ie: chmod 755 wp-content

chmod 755 wp-content/upgrade

Try now to upgrade the plugins.

That’s all………!!!!

Default .htaccess content for a Word Press website


If you feel the .htaccess file inside your document root of wordpress site is wrong, you can use the default contents pasted below.

 

————————-

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

———————–

 

That’s all………!!!

You do not have sufficient permissions to access this page


Issue : I got this error while login to wordpress admin (wp-admin) page with login credentials.

Solution:

Rename the wordpress plugin directory on the wp-contents to any other name and try to login now.

i.e;  #  cd /home/user/public_html/wp-contents

#  mv plugins plugins_bkp

Please try to login now.

If you are successful logging in, then the problem is within your plugins.

rename the folder of your plugins to its original then try renaming each plugin one by one

find the correct plugin which is causing the issue and disable it.

That’s all……!!!!!!!

How to check the wordpress version from command Line


You can check the WordPress version in the file version.php :

# cd /home/CpanelUserName/public_html/wp-includes

# grep wp_version version.php

* @global string $wp_version
$wp_version = ’2.5.6′;

That’s all…….!!!!!!!

Blog Stats

  • 37,403 hits