New build system (BETA)

Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=no
apache_ver=2.2
or
Code:
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
apache_ver=2.2
same error
There is wrong default PHP in /usr/local/directadmin/customapache/options.conf set


Wael
 
Open you build and do these changes:
After:
Code:
# Read options.conf

You should add:
Code:
DEFPHP=`grep "^default_php=" ${OPTIONS_CONF} | cut -d= -f2`

And after:
Code:
# Check options.conf

Add:
Code:
COUNTDEFPHP=`grep -c -e "^default_php=" ${OPTIONS_CONF}`

And change:
Code:
if [ "${COUNTPHP4_CLI}" -ne 1 ] || [ "${COUNTPHP4_CGI}" -ne 1 ] || [ "${COUNTPHP5_CLI}" -ne 1 ] || [ "${COUNTPHP5_CGI}" -ne 1 ]; then
	echo "${OPTIONS_CONF} is damaged. Please check it."
	exit 1
fi

To:
Code:
if [ "${COUNTDEFPHP}" -ne 1 ] || [ "${COUNTPHP4_CLI}" -ne 1 ] || [ "${COUNTPHP4_CGI}" -ne 1 ] || [ "${COUNTPHP5_CLI}" -ne 1 ] || [ "${COUNTPHP5_CGI}" -ne 1 ]; then
	echo "${OPTIONS_CONF} is damaged. Please check it."
	exit 1
fi
 
Chrysalis, it's using options.conf, there you can set what and how to install. :)
 
Got a question:

I want to use SuPHP. Because then the apache process is under a user. This is a great advantage.

I only want to run apache 1.3.* and PHP5. How do i set this up?
 
Edit your options.conf and set apache_ver to 1.3. php5_cli - no,
php5_cgi - yes :)
 
Edit your options.conf and set apache_ver to 1.3. php5_cli - no,
php5_cgi - yes :)

If i turn CGI mode on. Will this slowdown my webserver? CLI will ofcource be faster, but how much slower is CGI mode?
 
I wanted to build apache 1.3 and php 5.2.1 but he kept all settings for apache 2 so my whole server crashed. I quickly reverted everything so it's ok now.

But building apache 1.3 doesn't work yet... Dont know where the error is... I looked like he didnt parse the 1.3 value in options.conf
 
Back
Top