New build system (BETA)

Oh.. "AddType" should be renamed with "AddHandler", I'll fix it ASAP. About the directadmin-vhosts.conf file - it's being rewritten during the install :)
 
ok, smtalk. Exactly HOW do i need to setup my httpd.conf file to make this options.conf work:
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
plz make it clear since im a bit lost :p
 
Everything should work without problems, as I said - just change AddType to AddHandler in "IfModule mod_php4.c" part :)
 
Everything should work without problems, as I said - just change AddType to AddHandler in "IfModule mod_php4.c" part :)
hmm, ok. Im trying it again now. Still with php4 as the default.

btw, the } bug in ./build was above the proftpd function.
 
Yes, it's above the proftpd function, but it's after doPhp() and it's for doPhp function.
 
uhm, i know :p just wanted to point the exact location but (ofcourse) you got to that already :p
 
ok smtalk lots of work here with my reply but here are the issues I discovered.

1 - the configure script for php4 on suphp has a typo which stops php 4 compiling error is as below.

"--with-gd-dir=/usr/local/lib" \" \
should be
"--with-gd-dir=/usr/local/lib" \

even after this fix the ./configure --help output keeps jumping so there is some errors somewhere but after editing the file it compiles ok.

2 - suphp doesnt compile, this was pointed out earlier in this thread dissapointing left broken.

3 - after doing build php the suphp config gets overwritten, this is bad, but what makes it worse is the config is incorrect see #4.

4 - /usr/local/suphp/etc/suphp.conf is incorrect format causing numerous suphp errors and error 500 in browser.

correct is as below

[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=apache

;Path all scripts have to be in
docroot=/

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false

;Send minor error messages to browser
errors_to_browser=true

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0122

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100

[handlers]
;Handler for php-scripts
;x-httpd-php=php:/usr/bin/php
x-httpd-php5=php:/usr/local/php5/bin/php

;Handler for CGI-scripts
x-suphp-cgi=execute:!self

(editing php5 to php4 if necessary)

5 - ./build php compiles both php4 and 5 which is slow, ideally a question should popup like this.
rebuild php 4.x y/n?
rebuild php 5.x y/n?

so then quicker if only need to build php5 eg.

6 - I compiled apache 2.2 but the /etc/httpd/conf/ips.conf is in 1.x format causing apache to go down the moment I add any account, still trying to figure out how to fix this (do I go back in customapache and run the convert script?)

7 - httpd.conf doesnt have correct handler lines for supporting the php that runs via suphp, missing lines.

8 - all the lines in /etc/httpd/conf/extra/httpd-deflate.conf give an error and I had to disable the include /etc/httpd/conf/extra/httpd-deflate.conf line to get apache to start so maybe a problem with the deflate module.

my config is apache 2.2 php 5 cli php 4 cgi.
 
Chrysialis, thank you for testing, suPHP lines are in /etc/httpd/conf/extra/httpd-suphp.conf, aren't they? What error do you get with httpd-deflate enabled? And why it gives you error 500?
 
ok looks like it also not adding "apache_ver=2.0" to directadmin.conf and I had to rewrite ips and httpd in tasq after as well.
 
6 - I compiled apache 2.2 but the /etc/httpd/conf/ips.conf is in 1.x format causing apache to go down the moment I add any account, still trying to figure out how to fix this (do I go back in customapache and run the convert script?)

apache_ver=2.0 in /usr/local/directadmin/conf/directadmin.conf

/edit

you got this and your ips.conf is still in 1.x format?
 
yes /etc/httpd/conf/extra/httpd-suphp.conf looks like this

<IfModule mod_suphp.c>
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
</Location>
</IfModule>

which is wrong as I am using php 4 cgi and also missing a add handler line, the fixed lines are as below.

suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php4/cgi/
suPHP_AddHandler x-httpd-php4
 
apache_ver=2.0 in /usr/local/directadmin/conf/directadmin.conf

/edit

you got this and your ips.conf is still in 1.x format?

no I had to add it, it wasnt there.

also to verify here is contents of options.conf

default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=yes
php5_cgi=no
apache_ver=2.2
 
Stuff that went wrong my last time:

missing in httpd-suphp.conf

Code:
suPHP_AddHandler x-httpd-php5

and suphp didn't compile by itself


But im so glad php5 in cgi modus finally works :D


config:
Code:
default_php=5
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
 
I'm going to release version 0.1 now.
Changelog:
* Version number has been changed to 0.1.
* Edited showHelp() function.
* Everything is listed in ABC now.
* suphp option has been added.
* Note for experienced users has been added (for y option).
* Added functions for experienced users.​
* "-e /usr/local/mysql/include/mysql.h" has been changed to "-d /usr/local/mysql/include", it should fix issues with "--with-mysql" option.
* Added few fixes for doPhp function.
* Changed the way how httpd-suphp.conf is being written.
* Added suphp option.
* php4-cli, php5-cli, php4-cgi, php5-cgi functions have been added for experienced users. (for these who use both php4 and php5 and want to update only one of them if new version is released).
* Added some checks for doPhp4, doPhp4_suphp, doPhp5 and doPhp5_suphp functions.
* Changed DOVECOT_VER to 1.0rc30.
* Changed CURL_VER to 7.16.2.
 
already testing it ;)

great job

edit:
still having that suphp5 error on mysql :/
 
Last edited:
trying to build with these options on CentOS 4 x86_64:
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2

anyone have it working yet?
 
Last edited:
trying to build with these options on CentOS 4 x86_64:
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2

anyone have it working yet?

working on that with debian sarge x86.
 
Back
Top