View Single Post
  #5  
Old 2nd August 2012, 20:18
centurianii centurianii is offline
Junior Member
 
Join Date: Mar 2009
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

1)
Quote:
Originally Posted by falko View Post
You're mixing things up - /var/www/ is the document root where you must upload your HTML, PHP files, images, etc. while httpd.conf (or apache2.conf) are configuration files for Apache.
Yes, indeed!!
Correcting myself: you suggested to create files at /etc/apache2/sites-available/ in the form:
Code:
<VirtualHost *:80>
...
</VirtualHost>
whereas Apache suggests writing at httpd.conf....(?)
2)
At the wrapper script at /var/www/php-fcgi-scripts/web1/php-fcgi-starter, you wrote:
Code:
...
exec /usr/lib/cgi-bin/php
but look at my installation:
Code:
xxx@xxx:~$ ls -al /usr/lib/cgi-bin
total 7952
drwxr-xr-x  2 root root    4096 2012-06-11 22:24 .
drwxr-xr-x 56 root root   12288 2012-07-15 13:56 ..
lrwxrwxrwx  1 root root      29 2012-06-11 22:24 php -> /etc/alternatives/php-cgi-bin
-rwxr-xr-x  1 root root 8112496 2012-05-04 02:01 php5
and
Code:
xxx@xxx:~$ ls -al /usr/bin
...
-rwxr-xr-x  1 root   root    8112496 2012-05-04 02:01 php5-cgi
lrwxrwxrwx  1 root   root         25 2012-06-11 22:24 php-cgi -> /etc/alternatives/php-cgi
...
...why calling /etc/alternatives/php-cgi-bin and not:
Code:
exec /usr/lib/cgi-bin/php5
or,
Code:
exec /usr/bin/php5-cgi
instead??
Reply With Quote