New build system (BETA)

Code:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... /tmp/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

*** There was an error while trying to configure php. Check the suphp/configure.php5 file
....

Edit configure.php5_suphp and set --with-mysql=/usr/local/mysql
 
Last edited:
Everytime i try i get this error:

Code:
/usr/local/directadmin/custombuild/php-4.4.6/libtool: line 351: syntax error near unexpected token `('
/usr/local/directadmin/custombuild/php-4.4.6/libtool: line 351: `TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"'
make: *** [sapi/cgi/php] Error 2

its on a fresh da install

This is the config im using:

Code:
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
apache_ver=2.2

Btw does this install Proftpd aswell?

//edit

This is what i get when i just set php5_cgi=yes:

Code:
/sbin/service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 16 of /etc/httpd/conf/ips.conf:
User cannot occur within <VirtualHost> section  [FAILED]

//edit2

made sure it said apache 2 in direcadmin.conf and restarted directadmin

Code:
Starting httpd: [Sun Apr 08 09:31:18 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!
[Sun Apr 08 09:31:18 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!
Syntax error on line 27 of /etc/httpd/conf/extra/httpd-deflate.conf:
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

commented out those lines, then i got:

Code:
Starting httpd: [Sun Apr 08 09:34:18 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!
[Sun Apr 08 09:34:18 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!
Syntax error on line 29 of /usr/local/directadmin/data/users/username/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

And now i get:

Code:
Starting httpd: [Sun Apr 08 09:43:18 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!
[Sun Apr 08 09:43:18 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!
[Sun Apr 08 09:43:18 2007] [warn] NameVirtualHost xx.xx.xx.xx:443 has no VirtualHosts
[Sun Apr 08 09:43:18 2007] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
[Sun Apr 08 09:43:18 2007] [warn] NameVirtualHost xx.xx.xx.xx:443 has no VirtualHosts
[Sun Apr 08 09:43:18 2007] [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts
[Sun Apr 08 09:43:18 2007] [warn] NameVirtualHost xx.xx.xx.xx:443 has no VirtualHosts

this results in my main domain not working. It gives me a Error 403, it seems to be pointing to the wrong directory.
 
Last edited:
may have found a small bug

Appending installation info to /usr/local/lib/perl5/5.8.8/mach/perllocal.pod
+--------------------------------------------------------------+
| |
| For details on getting started with mod_perl 2, see: |
| |
| http://perl.apache.org/docs/2.0/user/intro/start_fast.html |
| |
| |
| Found a bug? File a bug report: |
| |
| http://perl.apache.org/bugs/ |
| |
+--------------------------------------------------------------+
Done mod_perl.
chown: root: Invalid argument




*************************************
* *
* All parts have been installed *
* *
*************************************

Type: /usr/local/etc/rc.d/httpd restart
server# /usr/local/etc/rc.d/httpd restart
Stopping httpd: [ FAILED ]
Starting httpd: [ OK ]
server# [Sun Apr 08 18:23:00 2007] [error] (EAI 8)hostname nor servname provided, or not known: Could not resolve host name |IP| -- ignoring!
[Sun Apr 08 18:23:00 2007] [error] (EAI 8)hostname nor servname provided, or not known: Could not resolve host name |IP| -- ignoring!
Syntax error on line 27 of /etc/httpd/conf/extra/httpd-deflate.conf:
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
 
Code:
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
apache_ver=2.2

Btw does this install Proftpd aswell?
wont work, its php4 cli and php5 cgi OR vice versa.

This is what i get when i just set php5_cgi=yes:

Code:
/sbin/service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 16 of /etc/httpd/conf/ips.conf:
User cannot occur within <VirtualHost> section  [FAILED]
im guessing you should do a rewrite of the ips.conf file... some post before smtalk stated how to do that.

@smtalk and jackc:
im rebuilding atm :)

and btw: Etch is stable :D
 
wont work, its php4 cli and php5 cgi OR vice versa.

yes found that out and rebuild with php4 cli and php5 cgi

im guessing you should do a rewrite of the ips.conf file... some post before smtalk stated how to do that.

rewriting ips.conf wasnt working until i added a line to directadmin.conf.

Now im still stuck with:

Code:
Starting httpd: [Sun Apr 08 18:59:33 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!
[Sun Apr 08 18:59:33 2007] [error] (EAI 2)Name or service not known: Could not resolve host name |IP| -- ignoring!

All sites give a 403 error now.

Squirelmail wasnt working anymore either, but that was quickly fixed.
 
hmm, you could do
Code:
mv /etc/httpd /etc/httpd.old.one
then
Code:
./build clean ; ./build all d
and when its finished copy back the directadmin.vhosts.conf from your old httpd/extras (?) and recreate the ips file.

my compile is at php5 atm :)
 
My old httpd.conf had this in it:

Code:
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

The one that has been made by the build script has the following:

Code:
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

That seems to be were the 403 errors come from.

But now i cant seem to get php to work ^^ it shows as plain text

Code:
<IfModule mod_suphp.c>
<Location />
        suPHP_Engine on
        suPHP_ConfigPath /usr/local/etc/php5/cgi/
        suPHP_AddHandler x-httpd-php
        suPHP_AddHandler x-httpd-php5
</Location>
</IfModule>

Code:
/usr/local/php5/bin/php -v
PHP 5.2.1 (cgi-fcgi) (built: Apr  8 2007 16:58:02)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
 
Code:
mrhat:/usr/local/directadmin/custombuild# /etc/init.d/httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Code:
mrhat:/usr/local/directadmin/custombuild# /usr/local/php5/bin/php -v
PHP 5.2.1 (cgi-fcgi) (built: Apr  8 2007 21:41:26)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Code:
mrhat:/usr/local/directadmin/custombuild# php -v
PHP 4.4.6 (cli) (built: Apr  8 2007 20:57:35)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
and it still doesn't parse php files :/

reference to 'php' in /etc/httpd/conf/httpd.conf:
Code:
#LoadModule php5_module        /usr/lib/apache/libphp5.so
LoadModule php4_module        /usr/lib/apache/libphp4.so

added this to httpd.conf:
Code:
<IfModule mod_suphp.c>
<Location />
	suPHP_Engine on
	suPHP_ConfigPath /usr/local/etc/php5/cgi/
	suPHP_AddHandler x-httpd-php
</Location>
</IfModule>
but this didn't make a difference... phpmyadmin/index.php still doesnt get parsed.

edit:
@sdgm:
im (still) having the exact same error:)

i think .php files are not asociated with the php executables..
 
Code:
AddHandler application/x-httpd-php .php .php4
AddHandler application/x-httpd-php-source .phps
AddHandler application/x-httpd-php5 .php5
match this as well:
Code:
<IfModule dir_module>
    DirectoryIndex index.html index.php index.php5
</IfModule>
now create a test.php and test.php5 file in /var/www/htdocs/ and check the output :D
except the php5 part :/

edit:
ok, my httpd.conf end with these lines now:
Code:
#<IfModule mod_suphp.c>
<Location />
        suPHP_Engine on
        suPHP_ConfigPath /usr/local/etc/php5/cgi/
        suPHP_AddHandler x-httpd-php
        suPHP_AddHandler x-httpd-php5
</Location>
#</IfModule>

AddHandler application/x-httpd-php .php .php4
AddHandler application/x-httpd-php-source .phps
AddHandler application/x-httpd-php5 .php5
Code:
mrhat:/usr/local/directadmin/custombuild# killall httpd ; /etc/init.d/httpd start
Code:
Starting httpd: Syntax error on line 412 of /etc/httpd/conf/httpd.conf:
Invalid command 'suPHP_Engine', perhaps misspelled or defined by a module not included in the server configuration
hmmm is suphp com,piled correctly with apache?

edit2:
Code:
mrhat:/usr/local/directadmin/custombuild# apachectl -D DUMP_MODULES | grep more
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Loaded Modules:
 core_module (static)
 authn_file_module (static)
 authn_default_module (static)
 authz_host_module (static)
 authz_groupfile_module (static)
 authz_user_module (static)
 authz_default_module (static)
 auth_basic_module (static)
 include_module (static)
 filter_module (static)
 deflate_module (static)
 log_config_module (static)
 logio_module (static)
 env_module (static)
 unique_id_module (static)
 setenvif_module (static)
 ssl_module (static)
 mpm_prefork_module (static)
 http_module (static)
 mime_module (static)
 dav_module (static)
 status_module (static)
 autoindex_module (static)
 asis_module (static)
 suexec_module (static)
 cgi_module (static)
 dav_fs_module (static)
 dav_lock_module (static)
 negotiation_module (static)
 dir_module (static)
 actions_module (static)
 userdir_module (static)
 alias_module (static)
 rewrite_module (static)
 so_module (static)
 php4_module (shared)
Syntax OK
doesn't look like it :/
 
Last edited:
my options file:
Code:
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
and indeed, i think it is the suexec :)
however, then why is it failing when i comment the "<IfModule mod_suphp.c>" line?
 
urgent help needed

/etc/init.d/httpd restart
Stopping httpd:
Starting httpd: [Mon Apr 9 09:29:26 2007] [error] Cannot resolve host name |IP| --- ignoring!
[Mon Apr 9 09:29:26 2007] [error] Cannot resolve host name |IP| --- ignoring!
Syntax error on line 10 of /etc/httpd/conf/extra/httpd-manual.conf:
Regular expression could not be compiled.


getting this error . any solutions for this. my site is down for a few hours now :(
 
/etc/init.d/httpd restart
Stopping httpd:
Starting httpd: [Mon Apr 9 09:29:26 2007] [error] Cannot resolve host name |IP| --- ignoring!
[Mon Apr 9 09:29:26 2007] [error] Cannot resolve host name |IP| --- ignoring!
Syntax error on line 10 of /etc/httpd/conf/extra/httpd-manual.conf:
Regular expression could not be compiled.


getting this error . any solutions for this. my site is down for a few hours now :(

What does is say on line 10 of /etc/httpd/conf/extra/httpd-manual.conf: ?
 
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru))?(/.*)?$ "/var/www/manual$1"



this is the line

right now i'm rebuilding but i think it will give me the same error. any ideas?
 
make[1]: *** [libperl.so] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/mod_perl-1.30/apaci'
make: *** [apxs_libperl] Error 2


this is how build all ends. and i'm getting the same error while trying to restart apache:

/etc/init.d/httpd restart Stopping httpd:
Starting httpd: [Mon Apr 9 10:21:48 2007] [error] Cannot resolve host name |IP| --- ignoring!
[Mon Apr 9 10:21:48 2007] [error] Cannot resolve host name |IP| --- ignoring!
Syntax error on line 10 of /etc/httpd/conf/extra/httpd-manual.conf:
Regular expression could not be compiled.
 
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru))?(/.*)?$ "/var/www/manual$1"


this is the line

right now i'm rebuilding but i think it will give me the same error. any ideas?

Code:
apachectl -D DUMP_MODULES | grep more

Check if mod_alias is in the list, i guess so, otherwise i would expect some error saying the AliasMatch command isnt recognized.

If you want your system up and dont need the apache manual for now you could comment the line, and see if it starts then.

btw apache 1.3 or 2.2?

//edit

make[1]: *** [libperl.so] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/mod_perl-1.30/apaci'
make: *** [apxs_libperl] Error 2

did it end like this the time before aswell?
 
Last edited:
mod_alias is in the list.
commented the whole manual conf - no getting this :
/etc/init.d/httpd restart
Stopping httpd:
Starting httpd: [Mon Apr 9 10:34:05 2007] [error] Cannot resolve host name |IP| --- ignoring!
[Mon Apr 9 10:34:05 2007] [error] Cannot resolve host name |IP| --- ignoring!
Syntax error on line 55 of /etc/httpd/conf/extra/httpd-default.conf:
Unrecognised ServerTokens keyword: Major


:confused:
 
Back
Top