New build system (BETA)

Ah.. yes, thank you for the report. I'm fixing it now :) Any other problems with it?
 
Now the apache after build is readin from /var/www and not from user homes. Again the same story. Alo in options I have set to yes just php5-cgi and apache 2. After build there is running apache 1 and php 4. Always something :/
 
LionRock, make sure you have REALLY the options you want in options.conf file, then do: ./build all d
 
I have do that. And also rm -rf /etc/httpd and clean build script for about 3 times and nothing better.
 
LionRock, you're really doing something wrong. Please contact me on MSN, ICQ or Skype and I will help you.
 
BUILDSCRIPT_VER=1.0.rc4

OS: Debian 3.1

### option.conf ###
default_php=4
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
apache_ver=1.3
dovecot=no

### ERROR 1 ###
configure: error: Cannot find libzzip
*** There was an error while trying to configure php. Check the configure/suphp/configure.php4 file

### Solution ###
./build zzip

Question, why ./build all not first build this ?



### ERROR 2 ###
Type: /etc/init.d/httpd restart

Stopping httpd:
Starting httpd: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-suphp.conf:
Cannot add module via name 'mod_suphp.c': not in list of loaded modules

### Solution ###

edit -> /etc/httpd/conf/extra/httpd-suphp.conf

and remove line: AddModule mod_suphp.c

#ORGINAL#
AddModule mod_suphp.c
LoadModule suphp_module /usr/lib/apache/mod_suphp.so
<IfModule mod_suphp.c>
AddHandler x-httpd-php5 5
AddHandler x-httpd-php4 .inc .php .php3 .php4 .phtml
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
suPHP_AddHandler x-httpd-php5
suPHP_AddHandler x-httpd-php4
</Location>
</IfModule>

#EDITED#
LoadModule suphp_module /usr/lib/apache/mod_suphp.so
<IfModule mod_suphp.c>
AddHandler x-httpd-php5 5
AddHandler x-httpd-php4 .inc .php .php3 .php4 .phtml
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
suPHP_AddHandler x-httpd-php5
suPHP_AddHandler x-httpd-php4
</Location>
</IfModule>

### ERROR 3 ###
suphp.conf umask wrong !

orginal: umask=0077

### Solution ###

nano -w /usr/local/suphp/etc/suphp.conf

change ex: umask=0122


### ERROR 4 ###

Typo: /etc/httpd/conf/extra/httpd-suphp.conf

AddHandler x-httpd-php5 5

### solution ###

Fix: AddHandler x-httpd-php5 .php5

Also why php not complied with openssl ??? (ORGINAL DA/CUSTOMAPACHE USES)

--with-openssl
 
Last edited:
Zoner, about zzip, it's included into all doPhp() functions (checkZZip), if /usr/local/lib/libzzip.so doesn't exist it builds zzip by default. All the other problems are fixed and a new script will be uploaded soon. umask will be 0022 and not 0122, why do you want 0122?
 
Zoner, about zzip, it's included into all doPhp() functions (checkZZip), if /usr/local/lib/libzzip.so doesn't exist it builds zzip by default. All the other problems are fixed and a new script will be uploaded soon. umask will be 0022 and not 0122, why do you want 0122?

umask=0122, if created on the fly file, it not have default to execute rights. Ex. some hacks user and create/make/upload with exploid code own .php file to server, then have default permission execute file. (slow down littlebit)

Usually user create own file, just need read/write and apache to read 644.
 
Zoner, about zzip, it's included into all doPhp() functions (checkZZip), if /usr/local/lib/libzzip.so doesn't exist it builds zzip by default.

So, why checkit not worked ? i needed manually build it, then ./build all going to end without errors
 
umask 022 creates files with permissions of 644 (rwxrw-rw-) and directories with permissions of 755 (rwxr-xr-x). suPHP (PHP as CGI) can not work with chmod >755, and it's not secure to create every file with permissions of >644.
 
Don't you see a zzip entry when executing "./build all"?

i uses ./build all d, but not ask zzip anything, in build script it:

echo -n "zZip is already installed. Do you want to build it again? (y/n) :";

not ask anything ...
 
Also mod_perl:

Configuring mod_perl-1.30...
Will configure via APXS (apxs=/usr/sbin/apxs)
************* WARNING *************

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


************* WARNING *************
************* WARNING *************

Your Perl is linked with -lpthread, make sure that your httpd is built with LIBS=-lpthread


************* WARNING *************

Build script should do:

ln -s /usr/lib/libgdbm.so.3.0.0 /usr/lib/libgdbm.so
 
There is no libgdbm.so.3.0.0 on all systems, because version numbers are different, also, the path can be different too.
 
There is no libgdbm.so.3.0.0 on all systems, because version numbers are different, also, the path can be different too.

Yeah, but why not check, if it debian version and if it, make symbolic link ...

Also:

./build mod_perl

Now please type 'make' to build libperl.so
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......failed
Can't locate LWP/UserAgent.pm in @INC (@INC contains: ./lib /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at Makefile.PL line 1179.

The libwww-perl library is needed to run the test suite.
Installation of this library is recommended, but not required.

Checking for HTML::HeadParser....failed
Can't locate HTML/HeadParser.pm in @INC (@INC contains: ./lib /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at Makefile.PL line 1199.

Missing this check / install on debian system:

apt-get install libwww-perl
 
Back
Top