Provide write access for web accout users and forum/CMS packages
Hi
I have noticed that some hosting provides have been able to set folders to 755 and files 644 but still permit both the Web interface user and the CMS/Forum etc scripts to have write access to the web root of the account. I will provide and example to clarify this more. As the web interface user, I can write to the root of my web account as expected via the cpanel File manager or FTP. On the other hand scripts such as Joomla! and phpBB also have write permissions with the 755/644 settings. So when they are installed or extended, they don't complain about folders being unwriteble which can occur on other servers with the 755/644 directory/file settings. Does anyone know how this is done or what tool is used to accomplish this on an Linux Apache/PHP server? Using: Apache 2.2.11, MySQL 5.0.67 and PHP 5.2.8 on Slack 12.2. Regards |
suPHP/suexec type programs typically which let the script processes run as the user instead of the webserver user (nobody, apache, httpd, etc).
If you want to know for sure make a file called index.php and put this in it Code:
<?php passthru("whoami"); ?> |
Great stuff rweaver, thanks for the information.
|
All times are GMT -5. The time now is 04:44 PM. |