var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
How can I correct perms after phpsuexec uninstall?
I remove PHPsuexec support from my cpanel server. But some scripts are not running, how can I fix the groups, files?
Warning: fopen(galeria.php) [function.fopen]: failed to open stream: Permission denied in /home/fdf/public_html/crnl/fdf.php on line 56
-rw-r--r-- 1 fdf nobody 3163 Sep 26 03:47 fdf.php
bump. I need to know how to fix this too
What is the error message that you are getting?
unlink(/home/console/public_html/components/com_remository_files/file_image_9186/img_9186_01.jpg) [function.unlink]: Permission denied in /home/console/public_html/components/com_remository/remository.class.php on line 2575
-rw-r--r-- 1 console console 56888 Sep 16 13:18 img_9186_01.jpg
How is php running on the server as apache or cgi?
Good question. How to I find out?
php.Info says this
Server API Apache
Yes it is apache. Try changing the ownership of the file img_9186_01.jpg to nobody.nobody
Thanks, I had to do the folder too. Obviously I have tons of folders and files now I need to change. Is there an easy way to chown them all?
To chown all the folders and contents recursively, run this following command.
chown -R nobody.nobody /path/to/folder
Thanks for that, i'll give that a go later
Will new files uploaded be automatically assigned to nobody?
Is it wise for me to chown all the files from public_html downwards?
If you are uploading using ftp the files will not be having user ownership. You will need to change the ownership to nobody.
So if I upload a file via ftp I have to chown it so that it can be deleted via php at a later date? That seems a very odd way of doing things. Should there not be a default ownership that all new files get assigned?
Yes it will be the case. If you are uploading using a php script the ownership will be nobody, provided the php on the server is Apache.
So now I have a big issue. If I chown the files and folders to nobody, I cannot see them when logged in via ftp using my accountname. So having the filed owned by nobody blocks me from seeing them.
You can give jail shell access to the account and access the files using shell access.
I think I may have fixed the issue.
Basically in my httpd.conf the user and group was set to nobody:nobody, but my account name is 'console' so I couldnt access the site via ftp or http
So what I have done is set user and group to 'console' inside the httpd.conf, then chownd all files in my home folder like so.
chown -R /home/console/
This seems to be working, but is this secure or have I opened up a security issue?
No, you have done the right thing. User/group in the httpd.conf should be in the manner you have set.
Thanks a lot for all your help