[Solved] Joomla Directories All Unwritable

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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
NovusLuna
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 30, 2011 10:45 am

[Solved] Joomla Directories All Unwritable

Post by NovusLuna » Wed Jul 03, 2013 6:53 am

Howdy!

I've been at this for a couple of days now trying to get Joomla 3 installed onto my new VPS. It's been an interesting journey for me being a newbie. With that said, I have finally got the main part of Joomla installed, but now I'm having issues saving settings or uploading any sort of extension. I checked file permissions in System Information - Directory Permissions and everything is Unwritable. Using WinSCP I can see file permissions are: 755 for folders, 644 for files.

I hate to post, because I see 100's of topics with the same issue that I have. I've read up on FTP and Apache/PHP ownerships. But I can't find anything that fixes my problem.

tmp folder in Global Config points correctly.

Thank you so much!

PHP: 5.3.3-22.el6.i686
Apache: 2.2.15
MySQL: 5.1.69
yum installed php-mysql
Forum Post Assistant (v1.2.3) : 3rd July 2013 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.1.1-Stable (Ember) 26-April-2013
Joomla! Platform :: Joomla Platform 12.2.0-Stable (Neil Armstrong) 21-September-2012
Joomla! Configured :: Yes | Read-Only (755) | Owner: 0 (uid: /gid: ) | Group: 0 (gid: ) | 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: | 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: 2.6.32-042stab076.8 | Technology: i686 | Web Server: Apache/2.2.15 (CentOS) | Encoding: gzip, deflate | Doc Root: /var/www/html | System TMP Writable: Yes

PHP Configuration :: Version: 5.3.3 | 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: 50M | Max. POST Size: 50m | Max. Input Time: 60 | Max. Execution Time: 120 | Memory Limit: 128M

MySQL Configuration :: Version: 5.1.69 (Client:5.1.69) | Host: --protected-- (--protected--) | Collation: latin1_swedish_ci (Character Set: latin1) | Database Size: 3.72 MiB | #of Tables: 65
Detailed Environment :: wrote:PHP Extensions :: Core (5.3.3) | date (5.3.3) | ereg () | libxml () | openssl () | pcre () | zlib (1.1) | bz2 () | calendar () | ctype () | hash (1.0) | filter (0.11.0) | ftp () | gettext () | gmp () | session () | iconv () | Reflection ($Revision: 300393 $) | standard (5.3.3) | shmop () | SPL (0.2) | SimpleXML (0.1) | sockets () | exif (1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $) | tokenizer (0.1) | xml () | apache2handler () | mysql (1.0) | curl () | fileinfo (1.0.5-dev) | json (1.2.1) | mysqli (0.1) | PDO (1.0.4dev) | pdo_mysql (1.0.2) | pdo_sqlite (1.0.1) | Phar (2.0.1) | sqlite3 (0.7-dev) | zip (1.9.1) | Zend Engine (2.3.0) |
Potential Missing Extensions :: mbstring | mcrypt | 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 | prefork | http_core | mod_so | mod_auth_basic | mod_auth_digest | mod_authn_file | mod_authn_alias | mod_authn_anon | mod_authn_dbm | mod_authn_default | mod_authz_host | mod_authz_user | mod_authz_owner | mod_authz_groupfile | mod_authz_dbm | mod_authz_default | util_ldap | mod_authnz_ldap | mod_include | mod_log_config | mod_logio | mod_env | mod_ext_filter | mod_mime_magic | mod_expires | mod_deflate | mod_headers | mod_usertrack | mod_setenvif | mod_mime | mod_dav | mod_status | mod_autoindex | mod_info | mod_dav_fs | mod_vhost_alias | mod_negotiation | mod_dir | mod_actions | mod_speling | mod_userdir | mod_alias | mod_substitute | mod_rewrite | mod_proxy | mod_proxy_balancer | mod_proxy_ftp | mod_proxy_http | mod_proxy_ajp | mod_proxy_connect | mod_cache | mod_suexec | mod_disk_cache | mod_cgi | mod_version | mod_php5 | Apache/2.2.15 (CentOS) |
Potential Missing Modules :: 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_redirect (3.0.0) | com_admin (3.0.0) | com_menus (3.0.0) | com_login (3.0.0) | com_plugins (3.0.0) | com_messages (3.0.0) | com_modules (3.0.0) | com_weblinks (3.0.0) | com_config (3.0.0) | com_installer (3.0.0) | com_languages (3.0.0) | com_media (3.0.0) | com_search (3.0.0) | com_cpanel (3.0.0) | com_cache (3.0.0) | com_checkin (3.0.0) | com_users (3.0.0) | com_categories (3.0.0) | com_newsfeeds (3.0.0) | com_content (3.0.0) | com_templates (3.0.0) | com_finder (3.0.0) | com_joomlaupdate (3.0.0) | com_banners (3.0.0) | com_tags (3.1.0) |

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

Plugins :: SITE :: plg_search_content (3.0.0) | plg_search_categories (3.0.0) | plg_search_newsfeeds (3.0.0) | plg_search_contacts (3.0.0) | plg_search_weblinks (3.0.0) | plg_content_pagebreak (3.0.0) | plg_content_joomla (3.0.0) | plg_content_loadmodule (3.0.0) | plg_content_emailcloak (3.0.0) | plg_content_vote (3.0.0) | plg_content_finder (3.0.0) | plg_content_pagenavigation (3.0.0) | plg_editors-xtd_pagebreak (3.0.0) | plg_editors-xtd_image (3.0.0) | plg_editors-xtd_readmore (3.0.0) | plg_editors-xtd_article (3.0.0) | plg_system_languagecode (3.0.0) | plg_system_p3p (3.0.0) | plg_system_remember (3.0.0) | plg_system_debug (3.0.0) | plg_system_log (3.0.0) | plg_system_highlight (3.0.0) | plg_system_logout (3.0.0) | plg_system_redirect (3.0.0) | plg_system_cache (3.0.0) | plg_system_sef (3.0.0) | plg_system_languagefilter (3.0.0) | plg_user_joomla (3.0.0) | plg_user_profile (3.0.0) | plg_user_contactcreator (3.0.0) | plg_quickicon_extensionupdate (3.0.0) | plg_quickicon_joomlaupdate (3.0.0) | plg_extension_joomla (3.0.0) | plg_finder_content (3.0.0) | plg_finder_categories (3.0.0) | plg_finder_newsfeeds (3.0.0) | plg_finder_tags (3.0.0) | plg_finder_contacts (3.0.0) | plg_finder_weblinks (3.0.0) | plg_authentication_joomla (3.0.0) | plg_authentication_ldap (3.0.0) | plg_authentication_gmail (3.0.0) | plg_editors_codemirror (1.0) | plg_editors_tinymce (3.5.6) | plg_captcha_recaptcha (3.0.0) |
Templates Discovered :: wrote:Templates :: SITE :: beez3 (3.1.0) | protostar (1.0) |
Templates :: ADMIN :: isis (1.0) | hathor (3.0.0) |
[Solved]
I cheated. I installed a fresh CentOS along with ZPanel. And I used ZPanel's Joomla installer and everything works great. Thank you.
Last edited by NovusLuna on Fri Jul 05, 2013 7:34 am, edited 1 time in total.

User avatar
ionut
Joomla! Ace
Joomla! Ace
Posts: 1264
Joined: Thu May 27, 2010 1:00 pm
Location: EU

Re: Joomla Directories All Unwritable

Post by ionut » Wed Jul 03, 2013 7:43 am

Did you try to use Joomla's built in FTP Settings ( System - Global Configuration - Server - FTP Settings) ? Enable ftp and insert correct details for ftp user and see if that works for you.

NovusLuna
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 30, 2011 10:45 am

Re: Joomla Directories All Unwritable

Post by NovusLuna » Thu Jul 04, 2013 12:46 am

ionut wrote:Did you try to use Joomla's built in FTP Settings ( System - Global Configuration - Server - FTP Settings) ? Enable ftp and insert correct details for ftp user and see if that works for you.

ionut, thanks for the reply. I installed infoliser FTP. And setup user/pass and directory. I confirmed it works via FileZilla. I couldn't save FTP settings via control panel because configuration.php came back unwritable.

So I added it manually.
Still not able to do anything. File uploads come back with:

Code: Select all

JFTP: :store: Bad response

Warning: Failed to move file!

JFolder: :files: Path is not a folder. Path: /var/www/html/tmp/install_51d4c21bab017

JFolder: :folder: Path is not a folder. Path: /var/www/html/tmp/install_51d4c21bab017

JFolder: :files: Path is not a folder. Path: /var/www/html/tmp/install_51d4c21bab017

JInstaller: :Install: Cannot find Joomla XML setup file
So I still have a fresh Joomla install but am unable to do anything with it.

User avatar
ionut
Joomla! Ace
Joomla! Ace
Posts: 1264
Joined: Thu May 27, 2010 1:00 pm
Location: EU

Re: Joomla Directories All Unwritable

Post by ionut » Thu Jul 04, 2013 7:22 am

Try to change your tmp path in configuration from "/var/www/html/tmp" to "tmp" and see if this helps.

NovusLuna
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 30, 2011 10:45 am

Re: Joomla Directories All Unwritable

Post by NovusLuna » Thu Jul 04, 2013 7:19 pm

Code: Select all

Warning
JFTP: :mkdir: Bad response
JFolder: :files: Path is not a folder. Path: tmp/install_51d5c8eae43c8
JFolder: :folder: Path is not a folder. Path: tmp/install_51d5c8eae43c8
JFolder: :files: Path is not a folder. Path: tmp/install_51d5c8eae43c8
JInstaller: :Install: Cannot find Joomla XML setup file
Error
Archive does not exist
I might try to reinstall the OS at my VPS and start fresh. Right now it's Centos 6 x32. Is there an OS that might do better? I've got access to:
CentOS 5 & 6. both 32 and 64
Debian 6 32 (LAMP)
Debian 6 32 and 64
Suse and Ubuntu 12 both 32 and 64

martyn74
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Oct 23, 2013 5:10 pm

Re: [Solved] Joomla Directories All Unwritable

Post by martyn74 » Thu Oct 24, 2013 11:11 am

I also had trouble with this and asked a developer:

This worked for me:
First check in ssh who owns the /var/www directory by:
"ls -la /var"


Then check what user apache uses
"ps aux | grep apache"

or you can use:
"ps aux | grep http"


apache uses
in my case apache user for /var/www was "www-data"


so after this I made www-data the owner of /var/www by:
"sudo chown -R www-data /var/www"


problem solved!
Last edited by martyn74 on Wed Oct 30, 2013 8:00 am, edited 1 time in total.

User avatar
Grncar
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Jun 30, 2009 7:39 pm
Location: Serbia

Re: [Solved] Joomla Directories All Unwritable

Post by Grncar » Wed Oct 30, 2013 7:51 am

Just as an update for anybody else with the same problem...

I went back to the basics and checked all of the joomla requirements etc.. I discovered that I was using the wrong php handler, so switched to CGI and now everything is hunky dory!

sunyata
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Nov 05, 2013 10:59 pm

Re: [Solved] Joomla Directories All Unwritable

Post by sunyata » Wed Nov 06, 2013 6:52 pm

martyn74's solution worked for me. Thanks!

I had debugged this problem for half a day. Luckily I was a vegetarian, if not, I would have lost patience and redo the installation.

Some additional notes:
1. You do not need to logout and log back in to see the permissions change once you have made the correction.
2. You do not need to enable FTP to fix the permission issue as somes sites has misguided me.
3. Your mileage may vary, try martyn74's method on a single directory first.

martyn74
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Oct 23, 2013 5:10 pm

Re: [Solved] Joomla Directories All Unwritable

Post by martyn74 » Wed Nov 06, 2013 8:23 pm

@sunyata: good to hear that!


Locked

Return to “Installation Joomla! 3.x”