New build system (BETA)

What version of MySQL you are using?

Default directadmin mysql installiaton:

#:/usr/local/bin# mysql -V
mysql Ver 14.7 Distrib 4.1.10, for pc-linux-gnu (i686)

# find / -iname "mysql_config"
/usr/local/mysql-standard-4.1.10-pc-linux-gnu-i686/bin/mysql_config

### EDITED ###
Also i found it in:
/usr/local/mysql/bin# ls -lt mysql_config
-rwxr-xr-x 1 root mysql 4580 Feb 13 2005 mysql_config

Weird that find not found :( (/usr/local/mysql is symbolic link to mysql-standard-4.1.10-pc-linux-gnu-i686)

SO in build script for debian are wrong path or typo:

doPHP5; (same problem dophp4; dophp4_suphp; and dophp5_suphp)
Orginal:
#we need to make sure that the mysqli path is set.
MYSQLI_BIN="";
if [ -e /usr/local/bin/mysql_config ]; then
MYSQLI_BIN=/usr/local/bin/mysql_config
fi

Edited: (missing in path mysql)
MYSQLI_BIN="";
if [ -e /usr/local/mysql/bin/mysql_config ]; then
MYSQLI_BIN=/usr/local/mysql/bin/mysql_config
fi
 
Last edited:
What errors did you get?

These ones :S

Starting httpd: Syntax error on line 19 of /usr/local/directadmin/data/users/ezet/httpd.conf:
Invalid command 'ScriptAlias', perhaps mis-spelled or defined by a module not included in the server configuration


Starting httpd: Syntax error on line 15 of /etc/httpd/conf/extra/httpd-dav.conf:
Invalid command 'DavLockDB', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]

Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 49 of /etc/httpd/conf/extra/httpd-ssl.conf:
Invalid command 'AddType', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]

And... i dont get errors by restarting apache but when i make a new accout in DA then i get the same error :S
 
Last edited:
What is the output of:
Code:
grep alias /etc/httpd/conf/httpd.conf
?
 
Default directadmin mysql installiaton:

#:/usr/local/bin# mysql -V
mysql Ver 14.7 Distrib 4.1.10, for pc-linux-gnu (i686)

# find / -iname "mysql_config"
/usr/local/mysql-standard-4.1.10-pc-linux-gnu-i686/bin/mysql_config

### EDITED ###
Also i found it in:
/usr/local/mysql/bin# ls -lt mysql_config
-rwxr-xr-x 1 root mysql 4580 Feb 13 2005 mysql_config

Weird that find not found :( (/usr/local/mysql is symbolic link to mysql-standard-4.1.10-pc-linux-gnu-i686)

SO in build script for debian are wrong path or typo:

doPHP5;
Orginal:
#we need to make sure that the mysqli path is set.
MYSQLI_BIN="";
if [ -e /usr/local/bin/mysql_config ]; then
MYSQLI_BIN=/usr/local/bin/mysql_config
fi

Edited: (missing in path mysql)
MYSQLI_BIN="";
if [ -e /usr/local/mysql/bin/mysql_config ]; then
MYSQLI_BIN=/usr/local/mysql/bin/mysql_config
fi

I'm fixing it now.
 
Edited last message, check all dophp4, dophp5, dophp4_suphp and dophp5_suphp.

Same problem them ...
 
Also perl or what is:

Your Perl is configured to link against libgdbm,
but libgdbm.so was not found.
You could just symlink it to /usr/lib/libgdbm.so.3.0.0

So need itself add

#cd /usr/lib/
:/usr/lib# ln -s libgdbm.so.3.0.0 libgdbm.so
 
Yes, I know and I've fixed that. A new version of the script should be uploaded soon.
 
Also now complied ok, but got very much problems to rtart apache 1.3 version:

Starting httpd: Syntax error on line 42 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libperl.so into server: /usr/lib/apache/libperl.so: undefined symbol: Perl_Ipatchlevel_ptr

Need Comment out:
#LoadModule perl_module /usr/lib/apache/libperl.so

/etc/init.d/httpd start
Starting httpd: Syntax error on line 73 of /etc/httpd/conf/httpd.conf:
Cannot add module via name 'mod_perl.c': not in list of loaded modules

Need Comment out:
#AddModule mod_perl.c

Starting httpd: Syntax error on line 21 of /etc/httpd/conf/extra/httpd-manual.conf:
Regular expression could not be compiled.

Starting httpd: Syntax error on line 55 of /etc/httpd/conf/extra/httpd-default.conf:
Unrecognised ServerTokens keyword: Major
### Edited httpd.conf ###
http://httpd.apache.org/docs/1.3/mod/core.html#servertokens

For apache 1.3 -> ServerTokens Prod


Starting httpd: fopen: No such file or directory
httpd: could not open document config file /usr/local/directadmin/data/users/admin/httpd.conf

### Question ###
Is httpd.conf right to apache 1.3 version ?
 
Last edited:
About perl, just do this:
Code:
apt-get install libperl-dev

The fix to apache:
Code:
perl -pi -e 's/Major/Full/' /etc/httpd/conf/extra/httpd-default.conf
echo > /etc/httpd/conf/extra/httpd-manual.conf
 
Dear smtalk,
in /conf/extra file httpd-vhosts.conf
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/html
    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/html
    ServerName localhost
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
    CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

you need port 80 & 443
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/html
    ServerName localhost"
    ScriptAlias /cgi-bin/ /var/www/cgi-bin/"
    CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost |IP|:443>
    ServerAdmin webmaster@localhost
    AliasMatch ^/~([^/]+)(/.*)* "/home/$1/public_html$2"
    DocumentRoot /var/www/html
    ServerName localhost
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
    CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

you miss port 443


Wael
 
Now what need then configure correct to work suphp4 and suphp5 in apache 1.3 configuration ?

Got errors still more:

Starting httpd: Syntax error on line 31 of /usr/local/directadmin/data/users/gigazone/httpd.conf:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration

Looks like, php not working ?

This using DA orginal config file, littlebit modified, now have apache 2/ 2.2 config ?
http://directadmin.com/forum/showthread.php?t=13953&highlight=suphp
 
Ah.. This is because you have both php4 and php5 as suphp :) This is a known issue because of DirectAdmin templates, they will be changed in the next release of DirectAdmin.
 
Do I need to upgrade apache 1.3 to 2.2 first before using the new build system? I thought the new build system automatically build and upgrade apache to 2.2, but I could be wrong.
Is suphp installed by default or only install with one of the cli php version?
Want to make sure of these two thing.

Thanks.
 
suPHP is installed by default if you have any cgi version of PHP in options.conf. No, you don't need to upgrade apache 1.3 to 2.2.
 
I tried this script on centos 4.4 64bit. Works wonderfull!!! thanks for this smtalk.

One small problem with mod_perl though:

Code:
Configuring mod_perl-2.0.3...
Reading Makefile.PL args from @ARGV
   MP_APXS = /usr/sbin/apxs
mod_perl/1.99_17 installation detected... not ok

Cannot install mod_perl/2.0.3 on top of mod_perl/1.99_17
due to a major API change between mod_perl 1.999_21 and 1.999_22.

Conflicting file: /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/Apache2.pm
Conflicting dir: /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/Apache2

Please nuke the prior mod_perl installation from your site_lib,
use a different perl to run the installation process, or use the
PREFIX option when creating your Makefile.  See:

  http://perl.apache.org/docs/2.0/rename.html

for more details.

aborting...
Done. Making mod_perl-2.0.3...
Trying to make mod_perl...
make: *** No targets specified and no makefile found.  Stop.
 
Last edited:
Mr. Jinx:
Code:
rm -rf /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/Apache2*
./build mod_perl
 
Back
Top