6

I have try to install magento CE Version 1.9.0.1.But when i am trying to install magento from browser.it show permission issue :

Path "/var/www/html/magento/app/etc" must be writable.
Path "/var/www/html/magento/media" must be writable.
Path "/var/www/html/magento/media/downloadable" must be writable.
Path "/var/www/html/magento/media/xmlconnect" must be writable.
Path "/var/www/html/magento/media/xmlconnect/system" must be writable.
Path "/var/www/html/magento/media/xmlconnect/system/ok.gif" must be writable.
Path "/var/www/html/magento/media/xmlconnect/custom" must be writable.
Path "/var/www/html/magento/media/xmlconnect/custom/ok.gif" must be writable.
Path "/var/www/html/magento/media/xmlconnect/original" must be writable.
Path "/var/www/html/magento/media/xmlconnect/original/ok.gif" must be writable.
Path "/var/www/html/magento/media/dhl" must be writable.
Path "/var/www/html/magento/media/dhl/logo.jpg" must be writable.
Path "/var/www/html/magento/media/customer" must be writable.

I am using Fedora my Os System and was give permission 777 to /var/www/html

using chmod 777 -R /var/www/html and show same issue. Can anyone help me ??

18

There are issue in Linux kernel security module (Security-Enhanced Linux (SELinux)) i.e SELinux permission issue.

http://en.wikipedia.org/wiki/Security-Enhanced_Linux

I have doing this by

chcon -R -t httpd_sys_rw_content_t /var/www/html/magento/
chmod -R a+w /var/www/html/magento/
3

Don't do chmod -R 777 /var/www/html since that will make your whole site writeable.

See Magento Writeable Permissions

Try Setting your folders, app and media to

chmod -R 777 /var/www/html/magento/media
chmod -R 777 /var/www/html/magento/var
chmod -R 777 /var/www/html/magento/app/etc
  • dude it not working.my magento folder user is amit – Amit Bera Jun 9 '14 at 14:14
  • Are you uploading with filezilla? or do you have direct access via ssh or something? If you have direct access try going into the magento folder and running chown -R 777 /media – Zac Grierson Jun 9 '14 at 14:21
  • i doning allthing on local system .local ip 127.0.0.1 – Amit Bera Jun 9 '14 at 14:22
  • You would still need to adjust the write permissions for the folders. Do you have a GUI or are you in a terminal shell? – Zac Grierson Jun 9 '14 at 14:24
  • doing all thing from terminal – Amit Bera Jun 10 '14 at 1:37
1

I'm shooting from the hip here, but shouldn't you do:

chmod -R 777 /var/www/html

instead of

chmod 777 -R /var/www/html

as options should come BEFORE mode?

1

Which operating system are you using? You might need to be root in order to update permissions. Try sudo before the command you are using. Also, 777 is way to permissive for any installation, specially if its live in an accessible server.

  • i have already said ,i am using fedora....seeing that user for folder is apache at /var/www/html/magento – Amit Bera Jun 9 '14 at 13:18
  • Try sudo before your command. Can you past the entire output of the chmod with and without sudo? – mbalparda Jun 9 '14 at 13:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.