This morning, I saw there was still something wrong with the ownership en directory/file permissions. After some search at the web, I saw the following tutorial here on DA forum, for suPHP (which I run now for almost 4 days), and executed this command:
Which gave me the following output:
After this, not a single website or mail was working anymore. I tried several things, like:
But it didn't worked. Also I ran './set_permissions all', which didn't worked either. When I go to a website that's hosted on my server, I get a 403 error, with in the logs the following error message:
What should I do now? I totally screwed up.
Code:
ls -l /home | grep '^d' | awk '{system("chown -R " $3 ":" $4 " /home/" $9 "/domains")}'
Which gave me the following output:
Code:
chown: cannot access `/home/ftp/domains': No such file or directory
chown: cannot access `/home/tmp/domains': No such file or directory
After this, not a single website or mail was working anymore. I tried several things, like:
Code:
Chown -R $user:$user /home/$user
But it didn't worked. Also I ran './set_permissions all', which didn't worked either. When I go to a website that's hosted on my server, I get a 403 error, with in the logs the following error message:
Code:
[Tue Jan 24 00:32:16 2012] [crit] [client 86.93.46.73] (13)Permission denied: /home/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
What should I do now? I totally screwed up.