New install 3.2.3 Directory Permissions Unwriteable

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 11:31 am

Debian Wheezy
Apache 2.2.22
MySQL 5.5.35
PHP 5.4.4
Joomla 3.2.3

Brand new install, all performed via SSH. Root SSH is disabled, so logged in as my user and su - to get root access. Had to to drop block on SSH as root in order to upload Joomla install files via WinSCP, but now blocked again.

Ran the Joomla 3.2.3 install and all seemed to work fine. The site is up and I can log into the Control Panel. However, when I go to

System Information > Directory Permissions

I just see a long list of red icons saying "unwriteable"

I have tried searching for a solution, but don't really understand where to mess around with ownership - it is my own server, not a commercial host. I didn't see anything in the setup instructions to avoid this.

I would be quite happy to bin my current build and do it again - just need to know what I should be doing to make it work out of the box....
Thanks.

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 12:58 pm

Just binned the install, and dropped the database. Re-ran and here is the standard configuration.php error message due to file permissions:

Notice
Your configuration file or directory is not writable or there was a problem creating the configuration file. You will have to upload the following code by hand. Click in the text area to highlight all of the code and then paste into a new text file. Name this file 'configuration.php' and upload it to your site root folder.

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 1:02 pm

Error
Installation folder could not be deleted. Please manually delete the folder.

I can (and have) manually deleted this via WinSCP (logged in as root).

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37015
Joined: Sat Apr 05, 2008 9:58 pm

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by Webdongle » Thu Mar 13, 2014 1:05 pm

Probably a Folder Ownership issue ... http://forum.joomla.org/viewtopic.php?f ... 8#p3127058 may be helpful

Please run http://forum.joomla.org/viewtopic.php?f=621&t=582860 and post the results here.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 1:08 pm

So, is the only answer to make everything in /var/www/ 777 - this seems a bit of a security risk to say the least :(

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 1:24 pm

Deleted Joomla install from /var/www/ and dropped database - here is the requested outpu, thanks:
Forum Post Assistant (v1.2.4) : 13th March 2014 wrote:
Basic Environment :: wrote:Joomla! Instance :: Not Found
Joomla! Configured :: Not Found

Host Configuration :: OS: Linux | OS Version: 3.2.0-4-686-pae | Technology: i686 | Web Server: Apache/2.2.22 (Debian) | Encoding: gzip,deflate,sdch | Doc Root: /var/www | System TMP Writable: Yes

PHP Configuration :: Version: 5.4.4-14+deb7u8 | PHP API: apache2handler | Session Path Writable: Yes | Display Errors: | Error Reporting: 22527 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Open Base: | Uploads: 1 | Max. Upload Size: 2M | Max. POST Size: 8M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

MySQL Configuration :: Database Credentials incomplete or not available Nothing to display.
Detailed Environment :: wrote:PHP Extensions :: Core (5.4.4-14+deb7u8) | date (5.4.4-14+deb7u8) | ereg () | libxml () | openssl () | pcre () | zlib (2.0) | bcmath () | bz2 () | calendar () | ctype () | dba () | dom (20031129) | hash (1.0) | fileinfo (1.0.5) | filter (0.11.0) | ftp () | gettext () | SPL (0.2) | iconv () | json (1.2.1) | mbstring () | session () | posix () | Reflection ($Id: 1cf65cee164ed57874ce2d29e5c46b82f6139524 $) | standard (5.4.4-14+deb7u8) | shmop () | SimpleXML (0.1) | soap () | sockets () | Phar (2.0.1) | exif (1.4 $Id$) | sysvmsg () | sysvsem () | sysvshm () | tokenizer (0.1) | wddx () | xml () | xmlreader (0.1) | xmlwriter (0.1) | zip (1.9.1) | apache2handler () | PDO (1.0.4dev) | gd () | mcrypt () | mysql (1.0) | mysqli (0.1) | pdo_mysql (1.0.2) | mhash () | Zend Engine (2.4.0) |
Potential Missing Extensions :: curl | suhosin |

Switch User Environment (Experimental) :: PHP CGI: No | Server SU: No | PHP SU: No | Custom SU (LiteSpeed/Cloud/Grid): No
Potential Ownership Issues: Maybe

Apache Modules :: core | mod_log_config | mod_logio | mod_version | prefork | http_core | mod_so | mod_alias | mod_auth_basic | mod_authn_file | mod_authz_default | mod_authz_groupfile | mod_authz_host | mod_authz_user | mod_autoindex | mod_cgi | mod_deflate | mod_dir | mod_env | mod_fcgid | mod_include | mod_mime | mod_negotiation | mod_php5 | mod_reqtimeout | mod_rewrite | mod_setenvif | mod_status | mod_suexec | Apache/2.2.22 (Debian) |
Potential Missing Modules :: mod_expires | mod_security | mod_evasive | mod_dosevasive | mod_ssl | mod_qos | mod_userdir |

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 1:32 pm

...and here is the output after I have just been through the installation procedure:
Forum Post Assistant (v1.2.4) : 13th March 2014 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.2.3-Stable (Ember) 6-March-2014
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only (644) | Owner: root (uid: 1/gid: 1) | Group: root (gid: 1) | Valid For: 1.5
Configuration Options :: Offline: 0 | SEF: 1 | SEF Suffix: 0 | SEF ReWrite: 0 | .htaccess/web.config: No | GZip: 0 | Cache: 0 | FTP Layer: 0 | SSL: N/A | Error Reporting: default | Site Debug: 0 | Language Debug: 0 | Default Access: N/A | Unicode Slugs: N/A | Database Credentials Present: Yes

Host Configuration :: OS: Linux | OS Version: 3.2.0-4-686-pae | Technology: i686 | Web Server: Apache/2.2.22 (Debian) | Encoding: gzip,deflate,sdch | Doc Root: /var/www | System TMP Writable: Yes

PHP Configuration :: Version: 5.4.4-14+deb7u8 | PHP API: apache2handler | Session Path Writable: Yes | Display Errors: | Error Reporting: 22527 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Open Base: | Uploads: 1 | Max. Upload Size: 2M | Max. POST Size: 8M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

MySQL Configuration :: Version: 5.5.35-0+wheezy1 (Client:5.5.35) | Host: --protected-- (--protected--) | Collation: utf8_general_ci (Character Set: utf8) | Database Size: 4.28 MiB | #of Tables:  68
Detailed Environment :: wrote:PHP Extensions :: Core (5.4.4-14+deb7u8) | date (5.4.4-14+deb7u8) | ereg () | libxml () | openssl () | pcre () | zlib (2.0) | bcmath () | bz2 () | calendar () | ctype () | dba () | dom (20031129) | hash (1.0) | fileinfo (1.0.5) | filter (0.11.0) | ftp () | gettext () | SPL (0.2) | iconv () | json (1.2.1) | mbstring () | session () | posix () | Reflection ($Id: 1cf65cee164ed57874ce2d29e5c46b82f6139524 $) | standard (5.4.4-14+deb7u8) | shmop () | SimpleXML (0.1) | soap () | sockets () | Phar (2.0.1) | exif (1.4 $Id$) | sysvmsg () | sysvsem () | sysvshm () | tokenizer (0.1) | wddx () | xml () | xmlreader (0.1) | xmlwriter (0.1) | zip (1.9.1) | apache2handler () | PDO (1.0.4dev) | gd () | mcrypt () | mysql (1.0) | mysqli (0.1) | pdo_mysql (1.0.2) | mhash () | Zend Engine (2.4.0) |
Potential Missing Extensions :: curl | suhosin |

Switch User Environment (Experimental) :: PHP CGI: No | Server SU: No | PHP SU: No | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No

Apache Modules :: core | mod_log_config | mod_logio | mod_version | prefork | http_core | mod_so | mod_alias | mod_auth_basic | mod_authn_file | mod_authz_default | mod_authz_groupfile | mod_authz_host | mod_authz_user | mod_autoindex | mod_cgi | mod_deflate | mod_dir | mod_env | mod_fcgid | mod_include | mod_mime | mod_negotiation | mod_php5 | mod_reqtimeout | mod_rewrite | mod_setenvif | mod_status | mod_suexec | Apache/2.2.22 (Debian) |
Potential Missing Modules :: mod_expires | mod_security | mod_evasive | mod_dosevasive | mod_ssl | mod_qos | mod_userdir |
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) |

Elevated Permissions (First 10) ::
Extensions Discovered :: wrote:Components :: SITE :: com_wrapper (3.0.0) | com_mailto (3.0.0) |
Components :: ADMIN :: com_config (3.0.0) | com_menus (3.0.0) | com_cpanel (3.0.0) | com_users (3.0.0) | com_media (3.0.0) | com_checkin (3.0.0) | com_ajax (3.2.0) | com_cache (3.0.0) | com_login (3.0.0) | com_content (3.0.0) | com_installer (3.0.0) | com_postinstall (3.2.0) | com_modules (3.0.0) | com_messages (3.0.0) | com_tags (3.1.0) | com_templates (3.0.0) | com_weblinks (3.0.0) | com_languages (3.0.0) | com_finder (3.0.0) | com_banners (3.0.0) | com_newsfeeds (3.0.0) | com_plugins (3.0.0) | com_search (3.0.0) | com_admin (3.0.0) | com_joomlaupdate (3.0.0) | com_categories (3.0.0) | com_redirect (3.0.0) | com_contenthistory (3.2.0) |

Modules :: SITE :: mod_finder (3.0.0) | mod_articles_latest (3.0.0) | mod_users_latest (3.0.0) | mod_syndicate (3.0.0) | mod_languages (3.0.0) | mod_random_image (3.0.0) | mod_related_items (3.0.0) | mod_banners (3.0.0) | mod_search (3.0.0) | mod_tags_similar (3.1.0) | mod_feed (3.0.0) | mod_articles_archive (3.0.0) | mod_login (3.0.0) | mod_tags_popular (3.1.0) | mod_articles_popular (3.0.0) | mod_stats (3.0.0) | mod_menu (3.0.0) | mod_weblinks (3.0.0) | mod_articles_news (3.0.0) | mod_footer (3.0.0) | mod_whosonline (3.0.0) | mod_articles_categories (3.0.0) | mod_custom (3.0.0) | mod_articles_category (3.0.0) | mod_wrapper (3.0.0) | mod_breadcrumbs (3.0.0) |
Modules :: ADMIN :: mod_quickicon (3.0.0) | mod_multilangstatus (3.0.0) | mod_stats_admin (3.0.0) | mod_title (3.0.0) | mod_feed (3.0.0) | mod_login (3.0.0) | mod_status (3.0.0) | mod_logged (3.0.0) | mod_latest (3.0.0) | mod_menu (3.0.0) | mod_submenu (3.0.0) | mod_toolbar (3.0.0) | mod_custom (3.0.0) | mod_popular (3.0.0) | mod_version (3.0.0) |

Plugins :: SITE :: plg_user_profile (3.0.0) | plg_user_contactcreator (3.0.0) | plg_user_joomla (3.0.0) | plg_editors-xtd_image (3.0.0) | plg_editors-xtd_article (3.0.0) | plg_editors-xtd_readmore (3.0.0) | plg_editors-xtd_pagebreak (3.0.0) | plg_content_finder (3.0.0) | plg_content_vote (3.0.0) | plg_content_pagenavigation (3.0.0) | plg_content_emailcloak (3.0.0) | plg_content_loadmodule (3.0.0) | plg_content_joomla (3.0.0) | plg_content_pagebreak (3.0.0) | plg_search_content (3.0.0) | plg_search_weblinks (3.0.0) | plg_search_contacts (3.0.0) | plg_search_categories (3.0.0) | plg_search_newsfeeds (3.0.0) | plg_extension_joomla (3.0.0) | plg_finder_tags (3.0.0) | plg_finder_content (3.0.0) | plg_finder_weblinks (3.0.0) | plg_finder_contacts (3.0.0) | plg_finder_categories (3.0.0) | plg_finder_newsfeeds (3.0.0) | plg_system_languagefilter (3.0.0) | plg_system_debug (3.0.0) | plg_system_log (3.0.0) | plg_system_redirect (3.0.0) | plg_system_remember (3.0.0) | plg_system_p3p (3.0.0) | plg_system_cache (3.0.0) | plg_system_highlight (3.0.0) | plg_system_logout (3.0.0) | plg_system_sef (3.0.0) | plg_system_languagecode (3.0.0) | plg_editors_tinymce (4.0.18) | plg_editors_codemirror (3.15) | plg_captcha_recaptcha (3.0.0) | plg_twofactorauth_yubikey (3.2.0) | plg_twofactorauth_totp (3.2.0) | plg_authentication_gmail (3.0.0) | plg_authentication_ldap (3.0.0) | plg_authentication_joomla (3.0.0) | plg_authentication_cookie (3.0.0) | plg_quickicon_extensionupdate (3.0.0) | plg_quickicon_joomlaupdate (3.0.0) |
Templates Discovered :: wrote:Templates :: SITE :: protostar (1.0) | beez3 (3.1.0) |
Templates :: ADMIN :: hathor (3.0.0) | isis (1.0) |

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37015
Joined: Sat Apr 05, 2008 9:58 pm

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by Webdongle » Thu Mar 13, 2014 1:45 pm

JonnyB wrote:So, is the only answer to make everything in /var/www/ 777 - this seems a bit of a security risk to say the least :(
No it does NOT mean that.

It means that you need your folders 755 and files 644 Permissions ... and that you need to make sure the Ownership of those files are correct. The 'Owner' uses the permissions of the first bit.

The 'Public' use the Permissions of the third bit. If the Permissions are set 777 then 'Public' has full permissions and that is BAD.

Please read http://forum.joomla.org/viewtopic.php?f ... 8#p3127058 then ask your Host about running as fastcgi
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 2:23 pm

I am the host - it is my server.

I have been Googling all morning for a walk-through to resolve this but cannot find one (at least that is understandable).

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 2:49 pm

So what is it that a commercial Host does to enable fastcgi that I need to implement on my server please?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37015
Joined: Sat Apr 05, 2008 9:58 pm

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by Webdongle » Thu Mar 13, 2014 3:15 pm

JonnyB wrote:So what is it that a commercial Host does to enable fastcgi that I need to implement on my server please?
The fpa reports
"Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No"
So there should not be an Ownership issue.

Try this
  • Delete the folders/files of the Joomla you tried to install.
  • Make sure the database you are using is empty
  • Open your Host's CP panel and navigate to their file manager
  • Open their file manager and in (the correct folder) upload the Joomla full package zip then unpack it there
  • Point your browser at your site and install.
JonnyB wrote:I am the host - it is my server....
No you are not the Host ... you are the person who is paying the Host to use their servers.

JonnyB wrote:...
I have been Googling all morning for a walk-through to resolve this but cannot find one (at least that is understandable).
The links on the post pointed to explain it about as easy as it can be explained.

Very basically
There are 3 Groups
  • Owners
  • Group
  • Public
And there are 3 columns of numbers that represent the Permissions assigned to each group. The folders should be set 755 and the files 644.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 3:36 pm

Webdongle wrote:
JonnyB wrote:I am the host - it is my server....
No you are not the Host ... you are the person who is paying the Host to use their servers.
I AM the host, I built the server from an iso onto bare metal.

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 4:00 pm

OK, I have just reverted my vMware snapshot and will try with the following tutorial for installing suPHP

http://www.debiantutorials.com/installing-suphp/

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Thu Mar 13, 2014 4:49 pm

Found this site:

http://www.tecmint.com/install-joomla-in-linux/

Would this one line solve the issue?

chown -R apache:apache /var/www

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37015
Joined: Sat Apr 05, 2008 9:58 pm

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by Webdongle » Thu Mar 13, 2014 6:24 pm

http://docs.joomla.org/Installing_Jooml ... bian_Linux

I used Ubuntu OS on my box and used xampp but the Chown command works
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Fri Mar 28, 2014 2:48 pm

Thanks, but
JonnyB wrote:Debian Wheezy
Apache 2.2.22
MySQL 5.5.35
PHP 5.4.4
Joomla 3.2.3
The linked article is for Joomla 2.5 on Debian 4 or 5. Using XAMMP. Totally not what I am trying to do.


Further to previous correspondance, I know have a new server build, running SFTP and chroot for three virtual hosts. The documentation I have found and sucessfully followed requires chown of user:group (sftponly) for the public_html directory, into which Joomla 3.2.3 will need to be installed.

Not sure how I can get around this issue of the apache user (www-data) not owning the directory, or maybe no-one uses SFTP (not going anywhere near FTP!) with Joomla?

Also, is it a no-no to run multiple Joomla sites i.e. one each in several virtual hosts on one linux server?

Really missing some key points here, your further input greatly appreciated.

TwoHoot
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 152
Joined: Thu Apr 09, 2009 11:10 pm
Location: Brady, Texas
Contact:

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by TwoHoot » Fri Mar 28, 2014 4:08 pm

http://docs.joomla.org/How_do_UNIX_file ... ns_work%3F

This might help explain the big picture and why installation may require 757 permissions for files and directories. If I read it correctly, the problem is that you may not be the file owner on the server. You may fall in the "Other" category rather than "Owner" on the server.

These permissions are not secure for an online site. Before putting the site online, be sure to change permissions back to 755 for directories and 644 for files.

The configuration.php file in particular must be writable for changes. But it is a target for hackers when it is writable.

Cordially,
TwoHoot

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Mon Mar 31, 2014 2:04 pm

Thanks for the reply. I am familiar with the whole drwxrwxrwx and the 777 notation. What I wasn't aware of was that I had to 777 the public_html directory via ssh as root (after logging in as non-root user as I disabled root access via ssh).

So, I # chmod 777 public_html, the installation concludes but I am still unable to delete the installation directory via the browser-based wizard. So, I did this manually (as root) via SSH.

Interestingly, all the files and folders are 644 and 755 and owned by my FTP username and the FTP User's group EXCEPT for the configuration.php file, which is owned by the www-data user and www-data group.

On logging into the administrator control panel via the web interface, the System Information --> Directory permissions screen is continuing to announce all directories are unwritable. Interestingly, the configuration.php file is writable, thus I am assuming all the other directories need to be owned by www-data.

Adding the www-data user to my FTP user's group (via # usermod -g <mygroup> www-data ) has made no difference, I guess www-data needs to own the directories, not the FTP user account.

I'm going to try # chown -R www-data:www-data on the whole lot and see if that get's me round the issue. I don't need to have my FTP user mess with the files, if I do then I guess I add my FTP user to the www-data group.

Edited: for spelling
Last edited by JonnyB on Mon Mar 31, 2014 3:18 pm, edited 1 time in total.

JonnyB
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Mar 13, 2014 10:10 am

Re: New install 3.2.3 Directory Permissions Unwriteable

Post by JonnyB » Mon Mar 31, 2014 2:15 pm

OK, that seems to have worked....

Via SSH, logged in as server user, then elevated to root

# cd /var/www/webservernamehere/public_html
# chown -R www-data:www-data *

confirm with
# ls -al

All files and folders are still 644/755 (as they should be), but are now owned by www-data (group is www-data also).

Log back into web-based control panel and Joomla reports all directories ARE writeable (i.e. green). So issue is not with permissions but ownership.

I've left ownership of the public_html directory to my user and it's group - I need this to allow SFTP access (FTP disabled, and SSH access for my SFTP user also disabled).

I think I might be getting to actually bang my head against Joomla now :D

Ps. I'd appreciate feedback on any issues with having ALL the Joomla files and directories chown'd to www-data:www-data Thanks!


Locked

Return to “Installation Joomla! 3.x”