New build system (BETA)

problem is i don't use suphp so no need for php as cgi, am i right ? any clue why i get white pages on php ?
 
thanks for your help - the problem was APC. commented the module in php.ini and everything is great
 
Turned out suphp wasnt compiling so i forced it, and now i get an error 500 on all the pages handled by php5(cgi).

Code:
ParsingException in IniFile.cpp:113: Option line "webserver_user=apache" before first section
 
Turned out suphp wasnt compiling so i forced it, and now i get an error 500 on all the pages handled by php5(cgi).

Code:
ParsingException in IniFile.cpp:113: Option line "webserver_user=apache" before first section

You can't run PHP as CGI without suPHP. It's possible, but not with the build script. Run PHP as CLI if you don't want to use suPHP.
 
Yes i know i compiled php5(cgi) and suphp with the build script and they produce the error in my above post
 
Check your /usr/local/suphp/etc/suphp.conf if everything is okay. P.S. when do you get this error?
 
I still having some problems after upgrading to apache 2.2.4 and PHP5 (cli)

2007:04:09-14:55:27: Unable to get lock on /etc/httpd/conf/extra/directadmin-vhosts.conf to add /usr/local/directadmin/data/users/sparkle/httpd.conf

I created the file directadmin-vhosts.conf but it still isn't writing anything into it??
 
Check your /usr/local/suphp/etc/suphp.conf if everything is okay. P.S. when do you get this error?

everything seems ok in suphp.conf i get this error when i try to view a php5 file. It gives a error 500 and in my error.log i get this message
 
May I take a look at your server? If yes - please contact me at Skype, ICQ or MSN.
 
All the reported (known) bugs has been fixed in the latest release of custombuild.
 
needo:) im gonna download en start over once more right away :p
edit:
not uploaded yet?
 
ah, so i should have got the new files when i just did a build update_data 1 minute ago :p
 
noticed you uploaded a tar.gz but the build script isnt executable (not a problem since you can just sh that) but suphp fails to be downloaded (again?)

edit:
got suphp from here:
http://www.suphp.org/download/suphp-0.6.2.tar.gz

now building it all :)

edit2:
Code:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/sbin/apxs follows:
/usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/sbin/httpd'..
configure: error: Aborting

*** There was an error while trying to configure php. Check the configure/ap2/configure.php4 file
not good :(
trying it with these options:
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
 
Last edited:
Tried your new build script.

It still doesnt seem to compile suphp by itself.

And it forgot the following line in httpd-suphp.conf:

Code:
suPHP_AddHandler x-httpd-php5

The rest seems to work great now

But in the end i still get this in my error.log, when trying to view a .php5 file

Code:
[Mon Apr 09 23:18:32 2007] [error] [client 80.126.124.2] ParsingException in IniFile.cpp:113: Option line "webserver_user=apache" before first section
[Mon Apr 09 23:18:32 2007] [error] [client 80.126.124.2] Premature end of script headers: test.php

Nice work :)
 
It shouldn't forget too add this, because of this:
Code:
if [ "grep -c x-httpd-php5= ${SUPHP_CONF_FILE}" = "1" ]; then
	echo "suPHP_AddHandler x-httpd-php5" >> ${SUPHP_HTTPD}
fi

Maybe x-httpd-php5 doesn't exist in /usr/local/suphp/etc/suphp.conf ? :)
 
Its there, so dont know why it wasnt in httpd-suphp.com

/usr/local/suphp/etc/suphp.conf:
Code:
webserver_user=apache
docroot=/
check_vhost_docroot=false
[handlers]
x-httpd-php5=php:/usr/local/php5/bin/php
 
Back
Top