New build system (BETA)

and im still stuck with

"fork: Cannot allocate memory"

though its got nothing todo with DA and everything with openvz :mad:
 
Code:
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
whoops :/

edit:
Code:
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
got this after trying a symlink :)

so, whats up with that /extra dir in /etc/http/conf ??
Code:
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>
^^ doesn't look good and i even think the whole file is useless since we have directadmin-vhosts.conf....

edit2:
contents of that file:
Code:
#
# 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>

edit3:
after commenting out all lines in this file it fails only ssl related stuff. And thats no surprise since the build script should be making a new certificate right ;)

edit4:
just commented the lines in the httpd-ssl.conf file regarding a .key and .crt file and now i end up with this:
Code:
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

edit5:
ok, the file flips on these lines so i commented them:
Code:
#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
now apache starts.... errr, not wait it doesnt spawn a httpd process :/
netstat doesn't show it either :/

Your turn now smtalk ;)
 
Last edited:
nzyme
Code:
echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue
 
ah ok, that indeed gives me an ips.conf file. Apache still doesn't listen though...
edit:
currently rebuilding the whole thing :p

edit2:
ok, everyting seems to be working... Or does it..

i have /var/www/html AND /var/www/htdocs
however, apache uses /var/www/htdosc as default instead of /var/www/html....

also, php isnt being parsed :( instead it just outputs the contents of such a file.

edit3:
hmmmmm, there is no mentioning of index.php or some other php file eg. the only thing regarding php is de loadmodule line :/
Code:
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)$">
 
Last edited:
So what error do you get now? :)

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 :p
 
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.
 
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.

and thats for default_php=5 ?

anywayz, when trying default=4 and php5=cgi it fails on suphp.tar.gz (again!)

Code:
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
 
Code:
cd /usr/local/directadmin/custombuild
wget http://suphp.org/download/suphp-0.6.2.tar.gz

That will fix your problem.
 
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 :p


I still have this problem, all the other problems where solved.

But now, .php files are not executed instead a pop up comes up to download the php file...

The only thing referencing to PHP in the httpd.conf is the LoadModule.

I've already edited the "DirectoryIndex" line because only index.html was in there.

Any idea on how to fix the PHP problem?

PHP5 as CLI was configured
 
SparkleIT, you're sure that it's configured as CLI and not CGI?
 
yup i'm sure:

# php -v
PHP 5.2.1 (cli) (built: Apr 6 2007 17:15:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.2.6, Copyright (c) 1998-2007, by Zend Technologies
 
/usr/local/php5/bin/php doesn't exist ???

I just recompiled PHP and it still isn't there perhaps i'm doing something wrong or missing something here?
 
Please let me take a look at your server. Contact me by IM (instant messenger).
 
Code:
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
....
 
anybody tried with these options?

default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=1.3
 
Back
Top