mrhat:/usr/local/directadmin/custombuild# /etc/init.d/httpd stop
Stopping httpd:
mrhat:/usr/local/directadmin/custombuild# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 387 of /etc/httpd/conf/httpd.conf: Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf: No such file or directory
mrhat:/usr/local/directadmin/custombuild# ln -s /etc/httpd/conf.2.2.backup/ips.conf /etc/httpd/conf/
mrhat:/usr/local/directadmin/custombuild# /etc/init.d/httpd start
Starting httpd: [Fri Apr 06 13:27:47 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!
[Fri Apr 06 13:27:47 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!
Syntax error on line 99 of /etc/httpd/conf/extra/httpd-ssl.conf:
SSLCertificateFile: file '/etc/httpd/conf/server.crt' does not exist or is empty
mrhat:/usr/local/directadmin/custombuild# cat /etc/httpd/conf/extra/httpd-vhosts.conf |grep "IP"
# IP addresses. This is indicated by the asterisks in the directives below.
<VirtualHost |IP|:80>
<VirtualHost |IP|:80>
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
##########################################################
# Use name-based virtual hosting. #
# All NameVirtualHost lines are in this file #
# Don't remove this line or apache will generate errors. #
##########################################################
Include /etc/httpd/conf/ips.conf
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost |IP|:80>
ServerAdmin webmaster@localhost
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /var/www/htdocs
ServerName localhost"
ScriptAlias /cgi-bin/ /var/www/cgi-bin/"
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>
<VirtualHost |IP|:80>
ServerAdmin webmaster@localhost
AliasMatch ^/~([^/]+)(/.*)* "/home/$1/public_html$2"
DocumentRoot /var/www/htdocs
ServerName localhost
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>
mrhat:/etc/httpd/conf/extra# /etc/init.d/httpd start
Starting httpd: Syntax error on line 27 of /etc/httpd/conf/extra/httpd-deflate.conf:
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
#Header append Vary User-Agent env=!dont-vary
# Log compression ratio on each request
#DeflateFilterNote Input instream
#DeflateFilterNote Output outstream
#DeflateFilterNote Ratio ratio
#LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
#CustomLog /var/log/httpd/deflate_log deflate
mrhat:/etc/httpd/conf# cat * |grep php
cat: extra: Is a directory
cat: original: Is a directory
LoadModule php5_module /usr/lib/apache/libphp5.so
mrhat:/etc/httpd/conf# cat extra/* |grep php
<FilesMatch "\.(cgi|shtml|phtml|php)$">
So what error do you get now?
<IfModule mod_suphp.c>
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
suPHP_AddHandler x-httpd-php
</Location>
</IfModule>
Just add:
Code:<IfModule mod_suphp.c> <Location /> suPHP_Engine on suPHP_ConfigPath /usr/local/etc/php5/cgi/ suPHP_AddHandler x-httpd-php </Location> </IfModule>
To you /etc/httpd/conf/httpd.conf, after the changes restart the apache service.
Found /usr/local/directadmin/custombuild/suphp-0.6.2.tar.gz
Extracting ...
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
Done.
./build: line 1179: cd: suphp-0.6.2: No such file or directory
Configuring suphp-0.6.2...
/usr/local/directadmin/custombuild/configure/suphp/configure.suphp: line 3: ./configure: is a directory
*** There was an error while trying to configure suPHP. Check the configure.suphp file
well, its doesn't parse php files. Like i said, the only reference to "php" is that it loads the php5 module, nothing more..
however, im going to build it this time with php4 as default and php5 as cgi
ill be back in an hour
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /tmp/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
*** There was an error while trying to configure php. Check the configure.php5_suphp file