View Single Post
  #8  
Old 12th August 2012, 09:41
centurianii centurianii is offline
Junior Member
 
Join Date: Mar 2009
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Sorry for my delayed reply,

here is my data:
1) <root># cat /var/www/php-fcgi-scripts/john/php-fcgi-starter
Code:
#!/bin/sh
#in case we activate a per user php.ini
#PHPRC=/var/www/john/
PHPRC=/etc/php5/cgi/
export PHPRC
export PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_CHILDREN=8
exec /usr/lib/cgi-bin/php
2) <root># apache2ctl -S
Code:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server superbhosting.com (/etc/apache2/sites-enabled/000-default:1)
         port 80 namevhost superbhosting.com (/etc/apache2/sites-enabled/000-default:1)
         port 80 namevhost www.alice.com (/etc/apache2/sites-enabled/alice:1)
         port 80 namevhost www.john.com (/etc/apache2/sites-enabled/john:1)
Syntax OK
Attention: my testing refers to www.john.com which in fact is another domain officially registered and activated (NS, A, CNAME records).
When I hit my browser at www.john.com I can see:
Code:
Index of /
[ICO]	Name	Last modified	Size	Description
[ ]	info.php	08-Aug-2012 09:53 	38
When I hit at www.john.com/info.php there is an error!

3) cat /etc/apache2/mods-available/fcgid.conf
Code:
<IfModule mod_fcgid.c>
  AddHandler    fcgid-script .fcgi
  FcgidConnectTimeout 20
  PHP_Fix_Pathinfo_Enable 1
</IfModule>
4) what is installed?
<root># dpkg-query -l '*apache2*'
Code:
Desired=Unknown/Install/Remove/Purge/Hold 
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend 
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) 
||/ Name                           Version                        Description 
+++-==============================-==============================-============================================================================ 
ii  apache2                        2.2.20-1ubuntu1.2              Apache HTTP Server metapackage 
un  apache2-common                 <none>                         (no description available) 
un  apache2-doc                    <none>                         (no description available) 
un  apache2-mpm                    <none>                         (no description available) 
un  apache2-mpm-event              <none>                         (no description available) 
un  apache2-mpm-itk                <none>                         (no description available) 
un  apache2-mpm-prefork            <none>                         (no description available) 
ii  apache2-mpm-worker             2.2.20-1ubuntu1.2              Apache HTTP Server - high speed threaded model 
ii  apache2-suexec                 2.2.20-1ubuntu1.2              Standard suexec program for Apache 2 mod_suexec 
un  apache2-suexec-custom          <none>                         (no description available) 
ii  apache2-utils                  2.2.20-1ubuntu1.2              utility programs for webservers 
ii  apache2.2-bin                  2.2.20-1ubuntu1.2              Apache HTTP Server common binary files 
ii  apache2.2-common               2.2.20-1ubuntu1.2              Apache HTTP Server common files 
un  libapache2-mod-apparmor        <none>                         (no description available) 
un  libapache2-mod-auth-kerb       <none>                         (no description available) 
ii  libapache2-mod-fcgid           1:2.3.6-1+squeeze1build0.11.10 an alternative module compat with mod_fastcgi
<root># dpkg-query -l '*php*'
Code:
Desired=Unknown/Install/Remove/Purge/Hold 
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend 
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) 
||/ Name                              Version                           Description 
+++-=================================-=================================-================================================================================== 
un  php-pear                          <none>                            (no description available) 
ii  php5-cgi                          5.3.6-13ubuntu3.7                 server-side, HTML-embedded scripting language (CGI binary) 
ii  php5-common                       5.3.6-13ubuntu3.7                 Common files for packages built from the php5 source 
un  php5-json                         <none>                            (no description available) 
un  php5-mhash                        <none>                            (no description available) 
un  php5-suhosin                      <none>                            (no description available) 
un  phpapi-20090626                   <none>                            (no description available)
Hope this helps!
Reply With Quote