New build system (BETA)

Fix for server.crt and server.key is:
Code:
mkdir /etc/httpd/conf/ssl.key
mkdir /etc/httpd/conf/ssl.crt
/usr/bin/openssl req -x509 -newkey 
rsa:1024 -keyout /etc/httpd/conf/ssl.key/server.key -out /etc/httpd/conf/ssl.crt/server.crt -days 
9999 -nodes -config ./configure/ap2/cert_config

I'm looking at the other issues now, about suPHP, add this to httpd-suphp.conf (at the first line of it)
Code:
LoadModule suphp_module /usr/lib/apache/mod_suphp.so
 
Code:
httpd: Syntax error on line 296 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-php-handlers.conf: Cannot load /usr/lib/apache/mod_suphp.so into server: /usr/lib/apache/mod_suphp.so: cannot open shared object file: No such file or directory

these are the options used, a bit different than i used before:
Code:
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=yes
php5_cgi=no
apache_ver=2.2
dovecot=no
 
so 1.0-pre-rc1 :p

anyway, could you sum up the fixed planned in the new release ?
 
I think I should mention that (about that we were talking with smtalk today). If you upgrade with suPHP then webmail and squirrelmail will not work because files are owned to root. You must create user webmail and squirrelmail (or for both the same username) and then chown this files with mentioned usernames.

Also now apache is searching for squirrelmail in /var/www/html/webmail dir so you should also get 404. You can modify apache conf or create a sysmlink to squirrelmail with

Code:
cd /var/www/html/webmail;ln -s /var/www/html/squirrelmail squirrelmail

I hope this will help somebody....
 
Code:
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: test.php5

If you think this is a server error, please contact the webmaster.
Error 500
Code:
LoadModule suphp_module /usr/lib/apache/mod_suphp.so
<IfModule mod_suphp.c>
AddHandler x-httpd-php .inc .php .php3 .php5 .phtml
AddHandler x-httpd-php .php4
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
suPHP_AddHandler x-httpd-php
suPHP_AddHandler x-httpd-php4
</Location>
</IfModule>
doenst look good, some double code :/

anyway, your the man smtalk so i guess youll know :p
 
Last edited:
Found a mistype :) It will be fixed into RC2 version of the custombuild script which will be released soon.
 
Code:
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=yes
php5_cgi=no
apache_ver=2.2
dovecot=no
php4 still doesn't work :(

Code:
mrhat:/usr/local/directadmin/custombuild# /usr/local/directadmin/custombuild/phpopt
/usr/local/directadmin/custombuild/phpopt: line 1: 2: command not found
 
Code:
cat /usr/local/directadmin/custombuild/phpopt
and not /usr/local/directadmin/custombuild/phpopt ;) I need an ouput of these files too: /usr/local/suphp/etc/suphp.conf and /etc/httpd/conf/extra/httpd-suphp.conf

P.S. make sure that you're running the latest version of custombuild script (rc2)
 
Code:
cat /usr/local/directadmin/custombuild/phpopt
and not /usr/local/directadmin/custombuild/phpopt ;) I need an ouput of these files too: /usr/local/suphp/etc/suphp.conf and /etc/httpd/conf/extra/httpd-suphp.conf

P.S. make sure that you're running the latest version of custombuild script (rc2)

i always run the most up2date version ;)

anyway:
cat /usr/local/directadmin/custombuild/phpopt
Code:
2

cat /usr/local/suphp/etc/suphp.conf
Code:
[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=/

; 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=false

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

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

;Minimum UID
min_uid=100

;Minimum GID
min_gid=100

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

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

cat /etc/httpd/conf/extra/httpd-suphp.conf
Code:
currently rebuilding :( sry
 
If you have:
Code:
suPHP_AddHandler x-httpd-php4

In /etc/httpd/conf/extra/httpd-suphp.conf then everything should be okay, but I found one more mistype.. If you have AddHandler x-httpd-php .php4 change it to AddHandler x-httpd-php4 .php4
 
If you have:
Code:
suPHP_AddHandler x-httpd-php4

In /etc/httpd/conf/extra/httpd-suphp.conf then everything should be okay, but I found one more mistype.. If you have AddHandler x-httpd-php .php4 change it to AddHandler x-httpd-php4 .php4

Code:
mrhat:/usr/local/directadmin/custombuild# cat /etc/httpd/conf/extra/httpd-suphp.conf
gives:
Code:
LoadModule suphp_module /usr/lib/apache/mod_suphp.so
<IfModule mod_suphp.c>
AddHandler x-httpd-php .php4
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
suPHP_AddHandler x-httpd-php4
</Location>
</IfModule>

edit:
i just changed that AddHandler x-httpd-php .php4 to x-httpd-php4 but now a .php4 file gives an internall server error.
Code:
Error message:
Premature end of script headers: test.php4
 
Last edited:
It works :) Maybe the file is wrongly chmodded, try 644 chmod for it.
 
I tried build with options
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
dovecot=no

build completed without problem but I uploaded a .php file, it doesn't parse,
asked me to download the file...

however when I renamed it to .php5, it worked.

I edited httpd-php-handlers.conf
it was
Code:
<IfModule mod_php4.c>
AddHandler application/x-httpd-php .inc .php .php4 .phtml
AddHandler application/x-httpd-php-source .phps
</IfModule>

I commented out the ifModule
Code:
#<IfModule mod_php4.c>
AddHandler application/x-httpd-php .inc .php .php4 .phtml
AddHandler application/x-httpd-php-source .phps
#</IfModule>

now .php parse correctly.

Does this affect normal use?
 
Last edited:
Back
Top