The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Where is problem.
mod_fcgid: can’t apply process slot for /home/crohq/fcgi-bin/php5.fcgi
this is showing like error, if i change from fcgid nothing work anymore, website is working but nothing else like login to forum and something like that …
[Wed May 30 17:49:58 2012] [error] [client 66.249.67.20] File does not exist: /home/lookkawa/public_html/modules
[Thu May 31 01:10:55 2012] [error] [client 69.57.234.223] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 01:12:01 2012] [warn] [client 69.57.234.223] mod_fcgid: can’t apply process slot for /home/lookkawa/public_html/voipphone/admin/index.php, referer: http://lookkawa.com/voipphone/
[Thu May 31 01:12:01 2012] [error] [client 69.57.234.223] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 01:13:04 2012] [error] [client 69.57.234.223] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 01:14:09 2012] [warn] [client 69.57.234.223] mod_fcgid: can’t apply process slot for /home/lookkawa/public_html/voipphone/panel/index.php, referer: http://lookkawa.com/voipphone/
[Thu May 31 01:14:10 2012] [error] [client 69.57.234.223] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 01:22:01 2012] [error] [client 69.57.234.223] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 01:23:06 2012] [warn] [client 69.57.234.223] mod_fcgid: can’t apply process slot for /home/lookkawa/public_html/voipphone/admin/index.php, referer: http://lookkawa.com/voipphone/
[Thu May 31 01:23:06 2012] [error] [client 69.57.234.223] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 01:26:52 2012] [warn] [client 69.57.234.223] mod_fcgid: can’t apply process slot for /home/lookkawa/public_html/voipphone/ admin/index.php
If you change your PHP Execution Mode to CGI (which you can do in Server Configuration -> Website Options), what error (if any) do you see in your logs when trying to access your site?
[Thu May 31 17:24:55 2012] [error] [client 76.76.179.184] File does not exist: /home/lookkawa/public_html/voipphne
[Thu May 31 17:24:56 2012] [error] [client 76.76.179.184] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 17:25:03 2012] [error] [client 76.76.179.184] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 17:25:06 2012] [error] [client 76.76.179.184] suexec policy violation: see suexec log for more details, referer: http://lookkawa.com/voipphone/
[Thu May 31 17:25:06 2012] [error] [client 76.76.179.184] Premature end of script headers: php5.cgi, referer: http://lookkawa.com/voipphone/
[Thu May 31 18:10:05 2012] [error] [client 66.249.73.20] File does not exist: /home/lookkawa/public_html/robots.txt
[Thu May 31 18:10:05 2012] [error] [client 66.249.73.20] File does not exist: /home/lookkawa/public_html/modules
[Thu May 31 18:22:17 2012] [error] [client 76.76.179.184] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 18:22:18 2012] [error] [client 76.76.179.184] suexec policy violation: see suexec log for more details, referer: http://lookkawa.com/voipphone/
[Thu May 31 18:22:18 2012] [error] [client 76.76.179.184] Premature end of script headers: php5.cgi, referer: http://lookkawa.com/voipphone/
[Thu May 31 18:22:19 2012] [error] [client 76.76.179.184] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 18:30:23 2012] [error] [client 66.249.73.20] File does not exist: /home/lookkawa/public_html/modules
[Thu May 31 19:05:28 2012] [error] [client 66.249.73.20] File does not exist: /home/lookkawa/public_html/modules
[Thu May 31 19:23:24 2012] [error] [client 66.249.73.20] File does not exist: /home/lookkawa/public_html/modules
[Thu May 31 19:57:41 2012] [error] [client 66.249.73.20] File does not exist: /home/lookkawa/public_html/modules
[Thu May 31 19:58:03 2012] [error] [client 95.108.151.244] File does not exist: /home/lookkawa/public_html/robots.txt
[Thu May 31 20:32:14 2012] [error] [client 76.76.176.18] File does not exist: /home/lookkawa/public_html/favicon.ico
[Thu May 31 20:32:18 2012] [error] [client 76.76.176.18] suexec policy violation: see suexec log for more details, referer: http://lookkawa.com/voipphone/
[Thu May 31 20:32:18 2012] [error] [client 76.76.176.18] Premature end of script headers: php5.cgi, referer: http://lookkawa.com/voipphone/
[Thu May 31 20:32:18 2012] [error] [client 76.76.176.18] File does not exist: /home/lookkawa/public_html/favicon.ico
Here the output with a little more stuff as I played around. Suexec was interesting as it said “user asterisk not allowed” .
I had copied this folder voipphone from /var/www to /home/lookkawa/public_html
The reason was that after I created multiple virtual servers, the default server became lookkawa.com and it was pulling data from /home/lookkawa/public_html
I had intalled Asterisk and the article I was following created files in /var/www Since my external IP was taking me to /home/lookkawa/public_html. I thought, let me copy this folder into /home/lookkawa/public_html
If I go to http://lookkawa.com/voipphone I can see the index page. However, when I click on a link that’s when it gets messed up.
Thanks for all your help. I am still learning linux.
Cheers
login as: root
root@184.82.92.171's password:
Linux server.davy.in 2.6.32-37-generic-pae #81-Ubuntu SMP Fri Dec 2 22:24:22 UTC 2011 i686 GNU/Linux
Ubuntu 10.04.3 LTS
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
Last login: Thu May 31 12:47:30 2012 from adsl-76-76-179-184.bras.anguillanet.co m
root@server:~# cd /home/lookkawa/public_html/voipphone/
root@server:/home/lookkawa/public_html/voipphone# ls -la index*
-rwxr-xr-x 1 asterisk asterisk 602 May 31 01:10 index.html
root@server:/home/lookkawa/public_html/voipphone# la -la
total 48
drwxr-xr-x 8 asterisk asterisk 4096 May 31 01:10 .
drwxr-xr-x 4 lookkawa lookkawa 4096 May 31 01:08 ..
drwxr-xr-x 2 asterisk asterisk 4096 May 31 01:10 _asterisk
drwxr-xr-x 8 asterisk asterisk 4096 May 31 01:10 admin
drwxr-xr-x 2 asterisk asterisk 4096 May 31 01:10 asterisk
-rwxr-xr-x 1 asterisk asterisk 602 May 31 01:10 index.html
-rwxr-xr-x 1 asterisk asterisk 4542 May 31 01:10 mainstyle.css
drwxr-xr-x 6 asterisk asterisk 4096 May 31 01:10 panel
drwxr-xr-x 7 asterisk asterisk 4096 May 31 01:10 recordings
-rwxr-xr-x 1 asterisk asterisk 361 May 31 01:10 robots.txt
lrwxrwxrwx 1 asterisk asterisk 5 May 31 01:10 voip -> voip/
drwxr-xr-x 2 asterisk asterisk 4096 May 31 01:10 webalizer
root@server:/home/lookkawa/public_html/voipphone# cd /usr/sbin/suexec
-bash: cd: /usr/sbin/suexec: No such file or directory
root@server:/home/lookkawa/public_html/voipphone# tail -n 20 /var/log/apache2/su exec.log
[2012-05-31 12:55:15]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 12:55:18]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 12:58:49]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 13:01:31]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 13:31:53]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 13:31:58]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 17:25:06]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 18:22:18]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 20:32:18]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 20:59:57]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 21:07:37]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
[2012-05-31 21:13:55]: User asterisk not allowed: Could not open config file /et c/apache2/suexec/asterisk
root@server:/home/lookkawa/public_html/voipphone# ^C
root@server:/home/lookkawa/public_html/voipphone# la -la /et c/apache2/suexec/asterisk
ls: cannot access /et: No such file or directory
ls: cannot access c/apache2/suexec/asterisk: No such file or directory
root@server:/home/lookkawa/public_html/voipphone# la -la /etc/apache2/suexec/ total 12
drwxr-xr-x 2 root root 4096 May 30 00:36 .
drwxr-xr-x 8 root root 4096 May 31 10:30 ..
-rw-r--r-- 1 root root 254 May 30 00:36 www-data
root@server:/home/lookkawa/public_html/voipphone# la -la /etc/apache2/
total 96
drwxr-xr-x 8 root root 4096 May 31 10:30 .
drwxr-xr-x 99 root root 4096 May 31 10:30 ..
-rw-r--r-- 1 root root 8159 May 30 03:23 apache2.conf
-rw-r--r-- 1 root root 8180 May 30 03:23 apache2.conf_orig
drwxr-xr-x 2 root root 4096 May 30 00:08 conf.d
-rw-r--r-- 1 root root 725 Nov 3 2011 envvars
-rw-r--r-- 1 root root 0 Jan 16 15:41 httpd.conf
-rw-r--r-- 1 root root 31063 Nov 3 2011 magic
drwxr-xr-x 2 root root 12288 May 30 00:36 mods-available
drwxr-xr-x 2 root root 4096 May 30 00:36 mods-enabled
-rw-r--r-- 1 root root 21 May 30 00:36 ports.conf
drwxr-xr-x 2 root root 4096 May 31 10:30 sites-available
drwxr-xr-x 2 root root 4096 May 30 02:50 sites-enabled
drwxr-xr-x 2 root root 4096 May 30 00:36 suexec
root@server:/home/lookkawa/public_html/voipphone# ^C
root@server:/home/lookkawa/public_html/voipphone# cd ..
root@server:/home/lookkawa/public_html# ls -la
total 20
drwxr-xr-x 4 lookkawa lookkawa 4096 May 31 01:08 .
drwxr-xr-x 12 lookkawa lookkawa 4096 May 30 03:53 ..
lrwxrwxrwx 1 lookkawa lookkawa 23 May 30 02:43 awstats-icon -> /usr/share/awstats/icon
lrwxrwxrwx 1 lookkawa lookkawa 23 May 30 02:43 awstatsicons -> /usr/share/awstats/icon
lrwxrwxrwx 1 lookkawa lookkawa 23 May 30 02:43 icon -> /usr/share/awstats/icon
-rwxr-xr-x 1 root root 29 May 30 12:55 index.html
drwxr-xr-x 2 lookkawa lookkawa 4096 May 30 03:41 stats
drwxr-xr-x 8 asterisk asterisk 4096 May 31 01:10 voipphone
mod_php is not the solution, it is a bad choice of a workaround.
the solution is to chown the files to the correct owner (as I said in my prevoius post right away) so you learn to do things the correct way while learning how to read/interpret logfiles and how to limit unauthorised acces to your machine at the same time.
Although mod_php is fully legitimate, it is the most insecure way of running websites especially in a shared hosting environment, not only in my opninion.
you see that lookkawa was not able to execute files belonging to asterisk and that is exactly how the world should be.
Now with mod_php it doesnt matter anymore as Apache can run any script from anyone. It owns all and it can be owned by the wrong people too. Scared?
Also, note that Jamie just added a feature to Virtualmin that fixes directory permissions like you’re seeing.
So, if you don’t like the chown commands – you can fix that from within Virtualmin by going into Limits and Validation -> Validate Virtual Servers -> Fix Permissions. From there, you can correct the file permissions of one or more Virtual Servers.