Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

[Install Error] Chmod / permission
 
mrvengeance
Jr. Member
 
Total Posts:  4
Joined:  2011-06-23
 

hi,

i want to install magento on my site but magento setup say me:

Path “/var/www/vhosts/shop.domain.com.tr/httpdocs/magento/var/session/sess_un27gcikfno8etgtg93bd0llv6” must be writable.

this file already have writing permission (chmod 777)

so, what is the problem ?

(sorry for my english)

 
Magento Community Magento Community
Magento Community
Magento Community
 
kandrew
Sr. Member
 
Total Posts:  114
Joined:  2011-02-28
 

Check permissions for path “/var/www/vhosts/shop.domain.com.tr/httpdocs/magento/var/”
and path “/var/www/vhosts/shop.domain.com.tr/httpdocs/magento/var/session”

 
Magento Community Magento Community
Magento Community
Magento Community
 
mrvengeance
Jr. Member
 
Total Posts:  4
Joined:  2011-06-23
 

they are also ok, chmod 777.. still same error..

 
Magento Community Magento Community
Magento Community
Magento Community
 
kandrew
Sr. Member
 
Total Posts:  114
Joined:  2011-02-28
 

Ok. Can you show me the output of next command in docroot of magento installation directory?
The command is:
ls -la

Also which version you are trying to install? On which operating system? What is your webserver/php environment (for PHP is mostly if you have suexec or suhosin patch enabled)?

 
Magento Community Magento Community
Magento Community
Magento Community
 
mrvengeance
Jr. Member
 
Total Posts:  4
Joined:  2011-06-23
 

-sh-3.2$ ls -la
total 436
drwxr-xr-x 13 akalin psacln 4096 Apr 26 22:07 .
drwxr-x--- 3 akalin psaserv 4096 Jun 23 17:32 ..
drwxr-xr-x 6 akalin psacln 4096 Apr 26 22:07 app
-rw-r--r-- 1 akalin psacln 1606 Apr 26 22:04 cron.php
-rw-r--r-- 1 akalin psacln 642 Apr 26 22:04 cron.sh
drwxr-xr-x 7 akalin psacln 4096 Apr 26 22:07 downloader
drwxr-xr-x 3 akalin psacln 4096 Apr 26 22:07 errors
-rw-r--r-- 1 akalin psacln 1150 Apr 26 22:04 favicon.ico
-rw-r--r-- 1 akalin psacln 5839 Apr 26 22:04 get.php
-rw-r--r-- 1 akalin psacln 4822 Apr 26 22:04 .htaccess
-rw-r--r-- 1 akalin psacln 4600 Apr 26 22:04 .htaccess.sample
drwxr-xr-x 2 akalin psacln 4096 Apr 26 22:07 includes
-rw-r--r-- 1 akalin psacln 2571 Apr 26 22:04 index.php
-rw-r--r-- 1 akalin psacln 2366 Apr 26 22:04 index.php.sample
-rw-r--r-- 1 akalin psacln 6298 Apr 26 22:04 install.php
drwxr-xr-x 12 akalin psacln 4096 Apr 26 22:07 js
drwxr-xr-x 11 akalin psacln 4096 Apr 26 22:07 lib
-rw-r--r-- 1 akalin psacln 10421 Apr 26 22:04 LICENSE_AFL.txt
-rw-r--r-- 1 akalin psacln 10679 Apr 26 22:04 LICENSE.html
-rw-r--r-- 1 akalin psacln 10410 Apr 26 22:04 LICENSE.txt
-rw-r--r-- 1 akalin psacln 1319 Apr 26 22:04 mage
drwxr-xrwx 5 akalin psacln 4096 Apr 26 22:07 media
-rw-r--r-- 1 akalin psacln 751 Apr 26 22:04 php.ini.sample
drwxr-xr-x 2 akalin psacln 4096 Apr 26 22:07 pkginfo
-rw-r--r-- 1 akalin psacln 286828 Apr 26 22:04 RELEASE_NOTES.txt
drwxr-xr-x 2 akalin psacln 4096 Apr 26 22:07 shell
drwxr-xr-x 5 akalin psacln 4096 Apr 26 22:07 skin
drwxr-xrwx 4 akalin psacln 4096 Jun 23 17:33 var

version : 1.5.1.0
os: Linux 2.6.18-194.26.1.el5 (i dont know what is distribution)
\"(for PHP is mostly if you have suexec or suhosin patch enabled)? \” how can i check this ?

thankss a lot

 
Magento Community Magento Community
Magento Community
Magento Community
 
kandrew
Sr. Member
 
Total Posts:  114
Joined:  2011-02-28
 

drwxr-xrwx 4 akalin psacln 4096 Jun 23 17:33 var

The permissions on var folder aren’t equal to 777. Also as I can see the owner is ‘akalin’ are you sure that your webserver/php process are working under this user and therefore have write permissions to var folder?

 
Magento Community Magento Community
Magento Community
Magento Community
 
kandrew
Sr. Member
 
Total Posts:  114
Joined:  2011-02-28
 

You can try to run next command
chmod -R 777 /path/to/your/var/directory/in/magento/docroot

To be sure for 100% that magento will have write permissions to all its subdirectories

 
Magento Community Magento Community
Magento Community
Magento Community
 
mrvengeance
Jr. Member
 
Total Posts:  4
Joined:  2011-06-23
 

i solve the problem, just set safe_mode off haha (:

thanks a lot..

 
Magento Community Magento Community
Magento Community
Magento Community
 
kandrew
Sr. Member
 
Total Posts:  114
Joined:  2011-02-28
 

Hmm.

By default safe_mode is turned off. But anyway it’s good to know that issue was solved.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top