PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, February 11, 2022

[FIXED] Joomla extensions, file permissions

 February 11, 2022     joomla, lamp, linux     No comments   

Issue

I am having a lot of trouble installing extensions in Joomla, after looking into it a bit, I realise that I think I need to change my files permissions, I have no idea how to do this. In Joomla, System Information, Directory Permissions, all my permissions are set to unwritable apart from "configuration.php". I have no idea how to change this on linux. I am running Joomla 1.7.3 and Ubunutu 11.10.Can anybody shine any lightn on how to change the permissions?


Solution

Your problem is very likely to be OWNERSHIP rather than PERMISSIONS per se.

The problem is that there are two main ways to run PHP on a web server. One runs PHP as part of Apache and has these problems. The difficulty is that you put the files in place as one user, but the Apache web server accesses the files as a different user. In your case Apache/PHP created the configuration.php file so it is the owner and can write to it. Other files were put in place by you so Apache/PHP can't touch them.

There are two possible solutions:

1) Change the ownership of the Joomla files (recursively) to the user that Apache/PHP operates as.

chown -R user:group *

Where 'user' and 'group' should be replaced with the actual username and groupname that Apache operates as. Make sure you are in the root folder of your webspace before running this command.

2) Install and configure PHP to run through CGI using fast-cgi and SUExec.

If you go with the first option - things will work - but you will experience difficulties if you want to edit any files manually, eg template and css files.

Option 2 is a lot of work for the inexperienced but does away with these permissions difficulties as PHP will access the files as you.



Answered By - Dean Marshall
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing