Sunday 15 December 2013

Unable to create directory uploads/2013/12. Is its parent directory writable by the server?

Unable to create directory uploads/2013/12. Is its parent directory writable by the server ? Error while uploading the image under media in the WordPress admin panel.

Login to the WordPress admin panel

Go to Settings >> Media

Change the path to wp-content/uploads

The issue will be resolved.

If it did not resolve the issue , you can try changing the folder permission for the folders wp-content and wp-content/uploads to 777 in the cPanel .

Saturday 14 December 2013

How to check if the cron job is executed or not ?

Cron-related messages, including success and failure, are logged to /var/log/cron .

You can also take a look at /var/log/messages and watch the email account listed in /root/.forward as that is where cron error reports would usually show up.

The cron job path for the domain : /var/spool/cron/username

Tuesday 10 December 2013

Removing the mysqladmin root password for the MySQL


First stop the MySQL service by running the following command in the SSH
/etc/init.d/mysql stop

After that run the following command
mysqld_safe --skip-grant-tables &

After this the MySQL admin password will be removed and you can
directly access the MySQL with out the password.

Wednesday 4 December 2013

Setting the magic_quotes_gpc=off to install the Joomla


Login to the server of the account as a root.

Set the magic_quotes_gpc=off in the file /usr/local/lib/php.ini

For the shared server :
You can try creating the php.ini in the root document folder in the File Manager >> Public_html and add the code 
magic_quotes_gpc=off 

Warning: mkdir() [function.mkdir]: Permission denied in DrupalLocalStreamWrapper->mkdir()


Drupal is giving the following error while uploading the themes:

Warning: mkdir() [function.mkdir]: Permission denied in DrupalLocalStreamWrapper->mkdir() (line 639 of /home/username/public_html/includes/stream_wrappers.inc). 
รข€¢bootstrap-7.x-2.1 (1).zip does not contain any .info files. 

Try With the Following Solution :
  • Change the file permission for the /sites/default/ to 777
  • Create the folder called /temps/ in the /home/username/public_html provide the file permission for the /temps/ as 777
  • Login to the drupal admin panel >>Go to Configuration >> Media >> File System. Change the Temporary directory path to the following :
    home/username/public_html/temps
  • Then save the settings. 

     

The sub domain abc.domain.com is not working showing the >> server not found error


The sub domain abc.domain.com is not working showing the >> server not found error . 

Check if the sub domain is created by going to cPanel >> Subdomains, If the sub domain is created and it is pointed to the correct root document folder and try with following step to resolve the issue 

You will have to enable the rewritebase rule in the Apache. Since there is no RewriteBase enabled for the sub domain 

You can also add the following code in the .htacess directly. 

<IfModule mod_rewrite.c>

RewriteEngine On

# RewriteBase /folder_path/

RewriteBase /

Database Connection Error

Website showing Database Connection Error
If it is a wordpress website , it is a common issue

Check the following to resolve the issue :
Login to the cPanel >> go to File Manager >> Open the public_html directory >> look for the wp-config.php and open it using the code editor.
Save the database, database username , password.

Go to Mysql >> delete the database user (Note: Do not delete the database , delete only the database user ).
Then create the new database user again as specified in the
wp-config.php , then reassign the database user to the database.

Or, instaed of deleting the database user , you can click on the database user and reassign the privileges and save it. Some times it works.

If the above step did not work , check the database by clicking on the >> check DB under the Mysql .If you find the corrupted database tables , go to Mysql >> click on Repair DB. This will resolve the error.

If all of the above steps did not resolve the problem , contact the hosting provider to resolve the issue. If may also be the reason that server is down.

ERR_CONTENT_DECODING_FAILED

If you are getting the error as ERR_CONTENT_DECODING_FAILED while accessing the domain then add the below extension in php.ini  ++++++++...