mkdir(): Permission denied in /var/www/vtiger/includes/runtime/Viewer.php

Rajnesh picture Rajnesh · Dec 13, 2013 · Viewed 7.9k times · Source

I am trying to install vtiger 6 on my ubuntu system on apache server.

I am getting a error while running it :

Warning: mkdir(): Permission denied in /var/www/vtiger/includes/runtime/Viewer.php on line 58

Warning: mkdir(): Permission denied in /var/www/vtiger/includes/runtime/Viewer.php on line 58

I changed the main folder "vtiger" permission 777 bt its still issue can someone help me??

Answer

The Humble Rat picture The Humble Rat · Dec 13, 2013

SSH to your server and do the following:

cd /var/www
chown -R www-data:www-data .

Make sure you run the chown command in the www folder or vtiger folder if you wish, it is really important that you do not run the command from the root, as it could be catastrophic. This should resolve your issue.