How do I fix directory permissions unwritable

fodde
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Aug 15, 2010 2:41 pm

How do I fix directory permissions unwritable

Postby fodde » Sun Aug 15, 2010 2:45 pm

All my directory permissions show unwritable although I've set them all to 777 (to try and fix the problem).

Any help please. >:(

User avatar
guilliam
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4181
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: How do I fix directory permissions unwritable

Postby guilliam » Tue Aug 31, 2010 5:19 pm

paano mo inap-load? via ftp or zip to host then unzip by cpanel?
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.

http://www.joomlaconsultancy.net

User avatar
raeldc
Joomla! Explorer
Joomla! Explorer
Posts: 259
Joined: Sun Sep 04, 2005 1:37 am
Location: Philippines
Contact:

Re: How do I fix directory permissions unwritable

Postby raeldc » Thu Sep 09, 2010 5:05 am

Hi fodde, it's a problem with your webhost. Putting the folders to 777 is a sure way to get hacked so it's just for debugging.

The best solution is to use Joomla's FTP layer. Just go to the Global Configuration, and enter your host's FTP details.

sthadd
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jan 05, 2015 2:56 pm

Re: How do I fix directory permissions unwritable

Postby sthadd » Mon Jan 05, 2015 3:05 pm

I put joomla on my Ubuntu server so that a non-root user could access it via ftp and had all kinds of permissions troubles. What no single post out there addressed was that both the ownership and permissions needed to be changed. Here's how I finally fixed it:

Replace the terms joomlawebsitedirectory and ftpuser with your desired directory and username. root and www-data are both fair game for ftpuser if that's how you roll, but I wanted to use a separate, limited account so that the developer could not access my other sites hosted on this server.

#Fix the main directory (run from inside /var/www)

Code: Select all

chmod 775 joomlawebsitedirectory
chown -R ftpuser:www-data joomlawebsitedirectory


# Fix all the sub directories (from inside /var/www/joomlawebsitedirectory)

Code: Select all

for file in $(find .); do if [ -f $file ]; then echo "$file" is a file; chmod 664 $file; elif [ -d $file ]; then echo $file is a directory; chmod 775 $file; else echo "wtf"; fi; done


This sets both the ownership and the permissions on all directories and files so that your ftpuser can connect and upload/download/change the files directly and also so that the joomla admin/users can manipulate the site via joomla interface.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24520
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: How do I fix directory permissions unwritable

Postby Per Yngve Berg » Mon Jan 05, 2015 4:45 pm



Return to “International Support Center”

Who is online

Users browsing this forum: No registered users and 2 guests