PDA

View Full Version : Discussion about CustomBuild



Pages : [1] 2 3 4

nobaloney
06-07-2007, 09:36 AM
Martynas,

How about a nice description somewhere of what CustomBuild does and why we should use it?

And also ...

Anything we have to know special when switching to it and running it the first time.

I want to try it on a testbed soon :) .

Jeff

smtalk
06-07-2007, 01:03 PM
Nothing special to know :) I've just edited my 1st post.

smtalk
06-08-2007, 01:49 AM
FAQ has been updated :)

GMT
06-18-2007, 03:34 AM
Is there a way I can install this using apache 1.3. Possibly using ./build versions?

I'd really like the functionallity of running php4 and 5 concurrently but have already found out the hard way that my system is incconpatable with apache 2?

I don;t want to try an install without being able to make sure the apache doesn't get upgraded!

smtalk
06-18-2007, 04:41 AM
I'm sure it's compatible :) But.. if you want apache 1.3, set apache_ver to 1.3 (instead of 2.2) in options.conf.

admonet
06-28-2007, 09:26 AM
In my honest opinion there needs to be a pros and cons of PHP CLI and PHP CGI. I was a tard and forgot to build with php as a CGI and was scratching my head for a long while as to why it was not working even though I manually uncommented the Addmodule line etc etc....

P.S.
Maybe throw a file in logrotate.d to auto-rotate suphp.log

Just my 2c

Adam

smtalk
06-29-2007, 01:25 AM
John added it to the apache logrotate and the freebsd /etc/syslog.conf.

smtalk
07-06-2007, 11:23 AM
FAQ has been updated.

mirage
07-07-2007, 11:08 AM
Fresh CentOs installation with DA. I tried this script.

10. I have installed PHP5 (or PHP4) as CGI. How do I need configure them?
PHP4 configuration file is located here: /usr/local/etc/php4/cgi/php.ini
PHP5 configuration file is located here: /usr/local/etc/php5/cgi/php.ini

10. I have installed PHP5 (or PHP4) as CGI. Where can I find the bin file?
PHP4: /usr/local/php4/bin/php
PHP5: /usr/local/php5/bin/php

I get none of the above files after everything is compiled. DA wont restart. Apache wont restart.

My options.conf
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
apache_ver=2.2
mail-header-patch=yes
dovecot=no

smtalk
07-07-2007, 11:21 AM
Because you have PHP as CLI :) Your php.ini file is here: /usr/local/lib/php.ini. What error do you get?

mirage
07-07-2007, 11:32 AM
Thanks for your response. I tried to run the script again because none of my mysql/php based forums are working. Now I have ran it again and directadmin starts but http does not start.

" [warn] module php5_module is already loaded, skipping
Syntax error on line 29 of /etc/httpd/conf/extra/httpd-vhosts.conf:
The address or port is invalid"

This did not happen the first time I ran the script though.

smtalk
07-07-2007, 11:49 AM
What version of custombuild are you using? Please post me 29 line of /etc/httpd/conf/extra/httpd-vhosts.conf file.

mirage
07-07-2007, 11:57 AM
What version of custombuild are you using? Please post me 29 line of /etc/httpd/conf/extra/httpd-vhosts.conf file.

I got it from the first post you made here. http://www.directadmin.com/forum/showthread.php?t=19221&highlight=custombuild


the conf file

<VirtualHost :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>

admonet
07-07-2007, 01:38 PM
Just a quick question- Why doesn't custombuild use --with-imap ? How do I get imap installed with the new custombuild script?

Adam

smtalk
07-07-2007, 01:40 PM
You need to have <VirtualHost IP:80>.

mirage
07-07-2007, 01:45 PM
You need to have <VirtualHost IP:80>.

But it is there. IApache was working before I installed the script, so I don't know what changed or what I should change without breaking everything.



Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 29 of /etc/httpd/conf/extra/httpd-vhosts.conf:
The address or port is invalid
[FAILED]


<VirtualHost :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>

How can I roll back?

smtalk
07-07-2007, 02:11 PM
Try:


./build rewrite_confs


P.S. make sure you have your hostname in /etc/hosts (with an IP of it) before running this command.

admonet
07-07-2007, 02:40 PM
Anyone have an idea for my question?


Just a quick question- Why doesn't custombuild use --with-imap ? How do I get imap installed with the new custombuild script?

Adam

jjbakker
07-07-2007, 03:04 PM
When i run the ./build update_all d command within a VPS.
The ssh session is terminated when php5 is compiled.

Any idea why?

iceuk626
07-07-2007, 03:35 PM
When i run the ./build update_all d command within a VPS.
The ssh session is terminated when php5 is compiled.

Any idea why?

ive run this script over 10 times now and this has happend to me twice, so your not on your own. i actually have to reboot the server to gain access to it again.

jjbakker
07-07-2007, 03:38 PM
i actually have to reboot the server to gain access to it again.

Restarting the SSHD is enough to gain access again overhere.
But i tried it 3 times now. And 3 times it juist close my session.

smtalk
07-08-2007, 01:14 AM
Anyone have an idea for my question?

Because there are no plans for it in CustomBuild 1 plans :) Maybe in 1.1 we will have it as default or addition.

smtalk
07-08-2007, 01:23 AM
When i run the ./build update_all d command within a VPS.
The ssh session is terminated when php5 is compiled.

Any idea why?

There is no command "update_all", maybe you are using "./build all d". This issue is probably caused because of zlib recompile, because both PHP and SSHd are using it :)

jjbakker
07-08-2007, 04:58 AM
There is no command "update_all", maybe you are using "./build all d". This issue is probably caused because of zlib recompile, because both PHP and SSHd are using it :)

Lol yeah sorry, i meant ./build all d.

How can i recompile zlib without being disconnected. i have no clue if the build finished as it should.. or temporarily telnet access or something? Isn't that affected?

admonet
07-08-2007, 11:14 AM
Because there are no plans for it in CustomBuild 1 plans :) Maybe in 1.1 we will have it as default or addition.

Is there any way that this upgrade broke frontpage extensions? All my FP customers are complaining.

** edit **

Uncomment the AddModule mod_frontpage.c line

Adam

jjbakker
07-09-2007, 03:22 AM
I'm now connected with telnet. The script runs well now.. except:

Writing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/mod_perl2/.p
acklist
Appending installation info to /usr/lib/perl5/5.8.5/i386-linux-thread-multi/perl
local.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.
Another instance of custombild is running, please delete the .custombuild file i
f you want to use custombuild.
Quit at position: doDovecot

What do i have to do, to continue.. I started with: ./build all d

Rich-Boy
07-11-2007, 04:34 AM
How do i get frontpage extensions working again? I can see that the dav module is loaded and configured with apache 2.2 thanks to the build script but when i try to enable extensions from inside DA i get this error;


Error executing your request

Details
Error setting up your web: Error: Cannot open "srm.conf": no such file or folder.

Rich-Boy
07-11-2007, 04:40 AM
How do i get frontpage extensions working again? I can see that the dav module is loaded and configured with apache 2.2 thanks to the build script but when i try to enable extensions from inside DA i get this error;


Error executing your request

Details
Error setting up your web: Error: Cannot open "srm.conf": no such file or folder.


I should have searched the forum first! For those with this problem just create the file manually like this...


touch /etc/httpd/conf/srm.conf

mirage
07-12-2007, 10:02 PM
Martynas can you tell me how to uninstall suPHP.? A lot of php sites are having big permission problems and I don't have the time to troubleshoot it until after the next few weeks. So I want to deinstall it and then when I have the time I'll try the install again and configure it. These are mostly sites running php based forums. So I just want to get rid of suPHP for now.

Thanks for all your efforts;

smtalk
07-13-2007, 12:35 AM
Just install PHP as CLI :) Set php4(php5)_cli to on and php4(php5)_cgi to off :) Then run:


./build clean
./build php n

mirage
07-13-2007, 12:42 AM
Thanks for replying :)

This is my options.conf. I didnt have php-cgi ON. Perhaps this was the problem?

default_php=5
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
apache_ver=2.2
mail-header-patch=yes
dovecot=no


Anyway, I'll execute those commands you gave me.
Should I rewrite confs after that?

smtalk
07-13-2007, 02:39 AM
No, it will rewrite needed configs automatically :)

CrazyLane
07-13-2007, 02:36 PM
When i run the ./build update_all d command within a VPS.
The ssh session is terminated when php5 is compiled.

Any idea why?


I am having the same problem, have you got this to work? if so how?

CrazyLane
07-13-2007, 05:02 PM
I am able to get custom build to work, however only if I install each part separately, for php I used:

./build clean
./build php n

I have to do the same for apache etc..., php fails if I use ./build all d

Is there a way to skip php and then do it manually?

Thanks

smtalk
07-13-2007, 05:08 PM
Yes, you can edit the script, find "doAll()" and add # to the beggining of command. E.g. "doPhp n;"

CrazyLane
07-13-2007, 05:30 PM
Tried again but it died here:

Trying to make libz...
gcc -fPIC -O3 -DUSE_MMAP -c -o example.o example.c
gcc -fPIC -O3 -DUSE_MMAP -c -o adler32.o adler32.c
gcc -fPIC -O3 -DUSE_MMAP -c -o compress.o compress.c
gcc -fPIC -O3 -DUSE_MMAP -c -o crc32.o crc32.c
gcc -fPIC -O3 -DUSE_MMAP -c -o gzio.o gzio.c
gcc -fPIC -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c
gcc -fPIC -O3 -DUSE_MMAP -c -o deflate.o deflate.c
gcc -fPIC -O3 -DUSE_MMAP -c -o trees.o trees.c
gcc -fPIC -O3 -DUSE_MMAP -c -o zutil.o zutil.c
gcc -fPIC -O3 -DUSE_MMAP -c -o inflate.o inflate.c
gcc -fPIC -O3 -DUSE_MMAP -c -o infback.o infback.c
gcc -fPIC -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c
gcc -fPIC -O3 -DUSE_MMAP -c -o inffast.o inffast.c
gcc -shared -Wl,-soname,libz.so.1 -o libz.so.1.2.3 adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
rm -f libz.so libz.so.1
ln -s libz.so.1.2.3 libz.so
ln -s libz.so.1.2.3 libz.so.1
gcc -fPIC -O3 -DUSE_MMAP -o example example.o -L. libz.so.1.2.3
gcc -fPIC -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c
gcc -fPIC -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.so.1.2.3
cp zlib.h zconf.h /usr/local/include
chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h
cp libz.so.1.2.3 /usr/local/lib

Any thoughts?

smtalk
07-14-2007, 01:24 AM
As I said:


This issue is probably caused because of zlib recompile, because both PHP and SSHd are using it :)

Rich-Boy
07-14-2007, 04:37 AM
Now that ive fixed out mod_dav the frontpage extensions can be enabled inside DA without errors. However acording to one of my clients you still can't connect to the server using frontpage to upload your website like you used to be able to. I've tried altering the settings a bit but tbh i don't fully understand the config httpd-dav.conf;

Alias /uploads "/etc/httpd/uploads"

<Directory "/etc/httpd/uploads">
Dav On

Order Allow,Deny
Allow from all

AuthType Digest
AuthName DAV-upload
# You can use the htdigest program to create the password database:
# htdigest -c "/etc/httpd/user.passwd" DAV-upload admin
AuthUserFile "/etc/httpd/user.passwd"

# Allow universal read-access, but writes are restricted
# to the admin user.
<LimitExcept GET OPTIONS>
require user admin
</LimitExcept>
</Directory>


Does this mean that http://mydomain.com/uploads should be used to connect via frontpage? And can only certain accounts use the frontpage feature at the moment?

Any help with this is appreciated, thanks.
Chris

binjured
07-14-2007, 12:48 PM
So, if I install DirectAdmin then use this script, will I not have IMAP support?

smtalk
07-16-2007, 02:12 AM
binjured, you will have IMAP, but if you're talking about PHP support for IMAP - you will need to add it manually.

hostpc.com
07-17-2007, 07:11 PM
I gotta tell you, I've had nothing but problems with this new build script.

1. We run all servers on Dovecot - by default, unless you look at the configuration specifically, it's setup with Dovecot=Off :( So everyone had screwed up mail when it was done, and we spent a couple hours tracking it down.

2. We've converted nine servers to php5 using this script, and every one has had an issue during the conversion.


> Starting httpd: httpd: Syntax error on line 17 of
> /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/libphp5.so into
> server: libpng.so.0: cannot open shared object file: No such file or
> directory


and



> Starting httpd: Syntax error on line 30 of
> /usr/local/directadmin/data/users/scotiany/httpd.conf:
> Invalid command 'php_admin_flag', perhaps misspelled or defined by a
> module not included in the server configuration


We've ended up with totally fubar'd httpd.conf files - nothing that's not fixable, but still a PITA.

These errors are corrected, and the fixes are found in this, or other threads on these forums - and of course with the excellent help of John & crew at DA, but it's GOT to be simpler than this.

There should be a yes/no option to select what you want to install, php5_cli, php5, suphp, dovecot, headerpatch, mysql, etc

There also needs to be a default build that'll take a new box directly to mysql5, apache2 and php5 (with these setup options yes/no) on new server installs.

PHP4 is at EOL as of 12/31/07 - people are going to want to switch, soon. I'd really wait to see if this custombuild can get perfected a little more before the feint of heart dive into it.

We've got 90 some servers to convert eventually, I'm hoping this can go a little smoother, sooner rather than later.

Thanks for your hard work!

Joe

smtalk
07-18-2007, 12:10 AM
You could set dovecot=yes in options.conf :) options.conf won't get overwritten :) About php_admin_flag error - you're using old templates (custom) :) If you made them - it's not a DirectAdmin problem. Thank you for this post :)

hostpc.com
07-18-2007, 07:03 AM
About php_admin_flag error - you're using old templates (custom) :) If you made them - it's not a DirectAdmin problem. Thank you for this post :)

No, I'm not using anything other than the stock DA templates - never have. We've been using DA for 4+ years, never saw a need to use anything other than the ones they provided.

smtalk
07-18-2007, 08:04 AM
Then you were using old templates :) Maybe we need to add 1 more check for that..

OxnardMontalvo
07-18-2007, 11:56 AM
1. What is custombuild?
12. When I restart apache I get this error: Invalid command 'suPHP_UserGroup'. How can I solve it?
Probably you had compiled suPHP manually with --with-setid-mode=owner. You need to compile it again with --with-setid-mode=paranoid, or do:
[code]
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build suphp


Ok, first, I've used the script on 2 boxes now (one live, one test) and it seems to work fine. However, I want to install suphp on one. I followed the instructions above (build suphp is an undocumented command?) do I need to do anything else? (bounce apache? rebuild apache? rebuild php?) to make this work?

TIA,
=C=

smtalk
07-18-2007, 12:09 PM
You just need to set php_cli to no and php_cgi to yes in options.conf :) then run "./build php"

spirit
07-20-2007, 10:05 PM
When i use this script with php5 an cgi then php isn't working anymore. It will download de phpfiles.

[edit]

I solved the problem, i had a error in de options.conf.

Instinct
07-22-2007, 07:16 AM
Hey. I have tried installing custombuild using the instructions provided. It all goes fine until it tried to make GD. Here is the error:


** Configuration summary for gd 2.0.34:

Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
Done. Making gd-2.0.35...
Trying to make gd...
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run automake-1.9 --foreign
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1


Due to this httpd etc wont start, i guess because its 1/2 installed. Help please :)

ostendo
07-22-2007, 07:51 AM
Hey. I have tried installing custombuild using the instructions provided. It all goes fine until it tried to make GD. Here is the error:


** Configuration summary for gd 2.0.34:

Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
Done. Making gd-2.0.35...
Trying to make gd...
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run automake-1.9 --foreign
cd . && /bin/sh /usr/local/directadmin/custombuild/gd-2.0.35/config/missing --run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1


Due to this httpd etc wont start, i guess because its 1/2 installed. Help please :)

Hey,

I've had the same error and tried everything I found in this topic to solve it. It didn't work out.
The only solution that's really working for me is editing the build file and editing line 134 to set GD_VER to 2.0.34. This version of GD compiles without any problems.

By the way, google-ing for AM_ICONV tells me that it has to be defined in iconv.m4, which should be found in some share-folder (/usr/local/share/aclocal or something). I can't find it, except one in /usr/share/aclocal, but that one is over a year old while I just installed iconv with ./build iconv..
Don't know whether that helps someone to resolve this problem; I couldn't figure it out anyway.

I'm working on a Debian 4.0 with DA 2.0.31 btw.

Good luck!

Instinct
07-22-2007, 07:55 AM
Ok im just trying compiling at that version now. Hope it works because my whole server is out of action atm :S
Im On Centos 4

CrazyLane
07-22-2007, 08:19 AM
see:
http://www.directadmin.com/forum/showthread.php?p=108163

ostendo
07-22-2007, 08:21 AM
see:
http://www.directadmin.com/forum/showthread.php?p=108163

Tried it. :) Didn't work.

CrazyLane
07-22-2007, 08:54 AM
Can you comment it out and skip it? and try installing by itself?

I was having a similiar problem with libz, I commented it out and then installed it later.

David C
07-25-2007, 07:19 AM
I've did a full update using custombuild to update to Apache 2 and PHP 5.

Now when I try loading a php script with a <?php phpinfo(); ?>, I get a


Server error!

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

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

If you think this is a server error, please contact the webmaster.

Any ideas

smtalk
07-25-2007, 08:02 AM
Is it owned by the user? (and not root). What is the chmod of the file?

Zoner
07-27-2007, 11:05 AM
What happend to GD library to php.

Newest custombuild 1.0.17 version it not anymore ?

Found Answer here: http://www.directadmin.com/forum/showthread.php?t=20111&highlight=custombuild+gd

(php itself include GD)

smtalk
07-27-2007, 01:54 PM
Yes, you're right :) What do you think about 1.0.17? :)

Zoner
07-28-2007, 11:05 AM
Yes, you're right :) What do you think about 1.0.17? :)

Looks very good update/build software :)

Just now using our production server, and works fantastics(OS DEBIAN 3.1), ever other combinations, like:

Option 1:apache 1.3 + mod_php4 + suphp 5
Option 2:apache 1.3 + suphp4 + suphp5
Option 3:apache 2 + suphp5 + mysql 5

One "if i remember" correct, when first time used custombuild, like option 1:, and later i wanna use again custombuild and upgrade to option 3, that custombuild script not create again /etc/httpd/conf files ?

i need test this, but is possible get later that can change configuration(option.conf) and build everyting again "clean table" ?

bashy
07-30-2007, 01:41 AM
Hi

Silly question, to run files on php 5 do the file extensions need to be .php5?

Bashy

smtalk
07-30-2007, 02:32 AM
bashy, if you set default PHP - 5, then extensions need to be .php (.php5 works too) :)

bashy
07-30-2007, 02:46 AM
To be honest i dont know what he set it to, Is there a way to find out, I take it if its a php5 script it just wont work yeah? lol

smtalk
07-30-2007, 02:56 AM
cat /usr/local/directadmin/custombuild/options.conf | grep default_php

bashy
07-30-2007, 03:47 AM
ok, thanks, default is php4
So i take it we have to add 5 to the extensions?

m4ri00sh
07-30-2007, 01:48 PM
so ....

6. How do I include this script by default with the DirectAdmin install?
Type the following before running the setup.sh:
Code:

touch /root/.custombuild



where I should download the custombuild, to the same location as it was before?, /usr/local/directadmin/custombuild (after extract).

Should I run the
./build update_data
./build all d

and then the ./setup.sh ???

or once I download the custombuild, should I just run the ./setup.sh ?

grrrr :confused:

smtalk
07-30-2007, 02:14 PM
You don't need to do anything before the install, just:


touch /root/.custombuild

m4ri00sh
07-30-2007, 03:32 PM
so the ./setup.sh script after the command is entered..just knows what to do.... at what point do I choose what to install... like apache2.2 and php5 ?

smtalk
07-30-2007, 03:34 PM
You can not set that :) But John is implementing that function. For now it will just compile apache 2.2 and php5.

m4ri00sh
07-30-2007, 03:42 PM
that is all what I want to know....

and

look at the thread (http://www.directadmin.com/forum/showthread.php?t=20259)
weird things happen

m4ri00sh
07-31-2007, 12:31 PM
you might add to the FAQ that when you install DA for a first time and you are adding custombuild by default to run with ./setup.sh you might have to run the commands after installation:


cd /usr/local/directadmin/custombuild
./build rewrite_confs

Cause I freaked out :) And if you(smtalk) did not tell me I would spend weeks :) trying to figure that out :P:D

smtalk
07-31-2007, 12:49 PM
It's said what to do if you "messed up your configs" #7 :)

m4ri00sh
07-31-2007, 12:55 PM
yeah but ..... hmmm I did not mess with my configs... that is kind of weird....

bithosts
08-06-2007, 07:04 AM
Just my tuppence but:

I have just completed the install and this is how it all went...

First of all the actual install process (not the down loading of the needed files etc) took little under an hour and thats on a Xeon 5130 (dual core) machine. I know theres a lot to complete but I wasnt expecting it to be that long, not that this is a problem I just thought it would be a good idea to warn those who try this.

Lastly, I run Dovecot on my system and there appears to be an error with all mail. When checking the /var/log/mail.err file it specifies:


error while loading shared libraries: libiconv.so.2: cannot open shared object file: no such file or directory


I should also mention that I found this thread: http://www.directadmin.com/forum/showthread.php?t=19628

and unfortunately this did not help. Apache doesnt seem to find this a problem and loads flawlessly.

if any one has any suggestions they would be massively appreciated as I need to get this service back online as soon as possible!

Apart from this the process has gone very smoothly and seems to work excellently!

[EDIT - extra information]

GranTW
08-06-2007, 07:09 AM
Try running ldconfig and then restart dovecot

bithosts
08-06-2007, 07:24 AM
Cheers for the reply, but im afraid it didnt help.

GranTW
08-06-2007, 07:25 AM
What's the output of

locate libiconv.so.2

Grant

bithosts
08-06-2007, 07:25 AM
/usr/local/directadmin/custombuild/libiconv-1.11/lib/.libs/libiconv.so.2
/usr/local/directadmin/custombuild/libiconv-1.11/lib/.libs/libiconv.so.2.4.0
/usr/local/lib/libiconv.so.2
/usr/local/lib/libiconv.so.2.4.0

does this help?

GranTW
08-06-2007, 07:29 AM
Try


ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2

Grant

bithosts
08-06-2007, 07:31 AM
That did the trick!!!!!

Thankyou SOOOO much!

Cytoplasm
08-10-2007, 06:30 PM
Have a little error =/

gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory
make: *** [libphp5.la] Error 1

smtalk
08-11-2007, 02:17 AM
Cytoplasm, http://www.directadmin.com/forum/showpost.php?p=105308&postcount=26

Cytoplasm
08-11-2007, 02:51 AM
Cytoplasm, http://www.directadmin.com/forum/showpost.php?p=105308&postcount=26

Worked, thanks

Cytoplasm
08-14-2007, 01:57 AM
smtalk,
Im curious. If inside the config php5-cli is yes. custombuild do its jobs to convert php4 to php5 without using suphp?

smtalk
08-14-2007, 02:04 AM
Yes, it does :)

Cytoplasm
08-14-2007, 05:35 AM
Yes, it does :)

How do i make it install just a pure php5 instead of suphp?

smtalk
08-14-2007, 05:37 AM
Set php5-cli to yes, and then do: "./build php n".

Cytoplasm
08-14-2007, 07:16 AM
Set php5-cli to yes, and then do: "./build php n".

Thanks, Noted :)

rndinit0
08-14-2007, 04:06 PM
FYI:
If you update everything it custom build will install Zend PHP Accelerator 3.3.0 this will break installatron in DirectAdmin.

Basically what will happen is that the Installatron link will disapear from the users DirectAdmin control panel.

The fix is easy, just downgrade to Zend 3.2.8.

smtalk
08-15-2007, 03:17 AM
Custombuild 1.1 has been released, so, "What is custombuild?" section has been updated.

iceuk626
08-15-2007, 09:20 AM
I know there is problems with safemode and php as cgi, but even when i install php5 as cli the safemode/openbasedir functions still dont work in DA, any ideas why ?

smtalk
08-15-2007, 09:28 AM
Because of templates. With next release of DirectAdmin they should be changed to fit every installation, for now, just comment out IfModule lines :)

iceuk626
08-15-2007, 09:44 AM
ok thanks.

What about putting an option in custombuild to install any version of php with or without suphp?

smtalk
08-15-2007, 09:55 AM
If PHP is installed as CGI - it must have suPHP :) If it's installed as CLI - it doesn't work with suPHP.

millerdesign
08-15-2007, 11:00 AM
Stupid question, whats the difference between:
./build php and ./build php n

I've seen them both mentioned in this thread.

smtalk
08-15-2007, 11:03 AM
"./build php" asks you some questions, and you should answer y (yes) or n (no), "./build php n" automatically answers n (no) to all questions.

smtalk
08-16-2007, 12:57 PM
Updated (added #5).

keefe007
08-16-2007, 06:35 PM
Is there any way that this upgrade broke frontpage extensions? All my FP customers are complaining.

** edit **

Uncomment the AddModule mod_frontpage.c line

Adam

Was this on apache 1 or apache 2?

Zoner
08-17-2007, 12:35 AM
mod_dav support for apache 2 and 2.2.x.

Found forum, that included by default ...

chatwizrd
08-18-2007, 09:08 PM
Since it says not to put 2 versions of php to yes in the options.conf file how should I do the install if I want to be able to have both versions of php4 and php5.

I would like php4 to be default with php5 installed as well.

Thanks

smtalk
08-19-2007, 01:58 AM
Chatwizrd, not to have both versions of PHP4 OR PHP5. e.g. PHP4 as CGI + PHP4 as CLI :) It won't let you to compile anything and it show you some errors.

Perfh
08-19-2007, 10:30 AM
I've a problem with the custombuild, my configuration :

/usr/local/directadmin/custombuild/options.conf :


mysql=4.1
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=2.2
mail-header-patch=yes
dovecot=no
clean=yes

My OS : Debian 4.0 Etch

Php4 is working fine, but not PHP5 :

http://xxx.xxx.xxx.xxx/phpinfo.php5

/var/log/suphp.log :


[Sun Aug 19 19:09:51 2007] [warn] UID of script "/var/www/html/phpinfo.php5" is smaller than min_uid


phpinfo.php5 CHMOD : 644 / Owner : root
folder html CHMOD : 755 / Owner : root

Can you help me please ?

smtalk
08-19-2007, 10:37 AM
That's because of the owner :) Do this:


chown webapps:webapps /var/www/html/phpinfo.php5

Perfh
08-19-2007, 10:43 AM
Good ! It works.

Many thanks :)

chatwizrd
08-19-2007, 11:27 AM
Chatwizrd, not to have both versions of PHP4 OR PHP5. e.g. PHP4 as CGI + PHP4 as CLI :) It won't let you to compile anything and it show you some errors.

OK I guess that makes more sense.

I got it working now.

Only thing I do notice is that this line is the same on both php4 and php5 phpinfo pages.

Loaded Configuration File /usr/local/etc/php4/cgi/php.ini

It is being called from this line in httpd-suphp.conf

suPHP_ConfigPath /usr/local/etc/php4/cgi/

millerdesign
08-20-2007, 06:21 AM
If I want to upgrade to MySQL 5 and Apache 2

I change the versions in the options.conf

Then do I run this?
./build update_data
./build all d

or

./build Apache
./build MySQL

What's the correct way?

smtalk
08-20-2007, 06:48 AM
"./build mysql" is not included in "./build all" :) So you will need to run:


./build mysql
./build all d

Duboux
08-21-2007, 04:39 PM
/me tries this on a box that generates errors with every single tried way to upgrade phpMyAdmin... :o

chatwizrd
08-21-2007, 04:58 PM
/me tries this on a box that generates errors with every single tried way to upgrade phpMyAdmin... :o

What error do you get?

Duboux
08-21-2007, 05:21 PM
First I updated phpMyAdmin via the DA way, and got something like:

Fatal Error: Call to a member function on a non-object in /var/www/html/phpMyAdmin-2.11.0-all-languages/libraries/common.inc.php 630
Then I used wael's update script, and it generated an error like:

Fatal Error: Call to a member function on a non-object in /var/www/html/phpMyAdmin-2.11.0-all-languages/libraries/common.lib.php line 3xxxx

Now I get:


Fatal error: Call to a member function getName() on a non-object in /var/www/html/phpMyAdmin-2.11.0-all-languages/libraries/common.inc.php on line 630
It has to be something with that theme-support in phpMyAdmin..
Also because I had an old version on that box: 2.6.1 (themes were introduced after this version) which works.

I did a lot of searching, and came to an unsolved bug-report related to this:
http://sourceforge.net/tracker/index.php?func=detail&aid=1453928&group_id=23067&atid=377408
:(













------------------------------------









oh dear... ^_^;
When I "installed" this script I was under the impression I would install just that script... and not update everything as well.. o_0;
That was a big risk, lol... from php4 to 5, mysql went from 4 to 5.0.45 and apache 1.3 to 2.2 o_0;
I even have roundcube on there now.. which was so not requested, lol
update script works like a charm though ;)

Could you edit your FAQ, so others won't make the same mistake ?

3. How to install custombuild?


cd /usr/local/directadmin
wget http://files.directadmin.com/services/custombuild/beta/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build update_data
./build all d







-------------------------------------------------

After the successfull installation, I ran:
# ./build update_versions
Which got some errors:

Updating MySQL.
Killing mysqld with pid 3972
.
.
.
02:04:40 (243.84 KB/s) - `MySQL-shared-5.0.45-0.i386.rpm' saved [1,777,644/1,777,644]

Found /usr/local/directadmin/custombuild/mysql/MySQL-client-5.0.45-0.i386.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-devel-5.0.45-0.i386.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-server-5.0.45-0.i386.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-shared-5.0.45-0.i386.rpm
warning: MySQL-client-5.0.45-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100&#37;]
1:MySQL-shared ########################################### [ 25%]
2:MySQL-client ########################################### [ 50%]
3:MySQL-devel ########################################### [ 75%]
4:MySQL-server ########################################### [100%]
070822 2:04:53 [Warning] Asked for 196608 thread stack, but got 126976
ERROR: 1136 Column count doesn't match value count at row 1
070822 2:04:53 [ERROR] Aborting

070822 2:04:53 [Note] /usr/sbin/mysqld: Shutdown complete

Installation of system tables failed!


And this is also a bit strange:

mysql> status
--------------
mysql Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (i686) using readline 5.0

Connection id: 11
Current database:
Current user: da_admin@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 4.1.7-standard

smtalk
08-27-2007, 03:18 PM
Now we have 20 questions/answers :)

smtalk
08-27-2007, 03:20 PM
Duboux, about the different version numbers - recompile PHP after the MySQL upgrade. Good luck!

keefe007
08-28-2007, 04:43 PM
Is mod_perl installed and enabled by default?

smtalk
08-29-2007, 02:19 AM
No, it's not.

smtalk
08-29-2007, 01:38 PM
Just added #21 :)

jw00dy
08-30-2007, 11:28 PM
Now that ive fixed out mod_dav the frontpage extensions can be enabled inside DA without errors. However acording to one of my clients you still can't connect to the server using frontpage to upload your website like you used to be able to. I've tried altering the settings a bit but tbh i don't fully understand the config httpd-dav.conf;

Alias /uploads "/etc/httpd/uploads"

<Directory "/etc/httpd/uploads">
Dav On

Order Allow,Deny
Allow from all

AuthType Digest
AuthName DAV-upload
# You can use the htdigest program to create the password database:
# htdigest -c "/etc/httpd/user.passwd" DAV-upload admin
AuthUserFile "/etc/httpd/user.passwd"

# Allow universal read-access, but writes are restricted
# to the admin user.
<LimitExcept GET OPTIONS>
require user admin
</LimitExcept>
</Directory>


Does this mean that http://mydomain.com/uploads should be used to connect via frontpage? And can only certain accounts use the frontpage feature at the moment?

Any help with this is appreciated, thanks.
Chris
Did you ever figure this out?

I'll admit, I'm a bit confused about how webdav works. And if I even need to enable frontpage from the DA interface?

After building I don't actually have an http-dav.conf in /etc/httpd/conf/ Am I supposed to?

Anyway, any help would be appreciated. I'm in the process of moving all my users from my old server to a new one, and the FP users don't work yet :(

TIA

smtalk
08-31-2007, 01:18 AM
jw00dy, mod_dav isn't included in Apache 1.3. You can only use mod_frontpage together with Apache 1.3.

jw00dy
08-31-2007, 05:46 AM
Right, I have Apache 2.2

After all the reading I've done, I'm guessing that mod_dav only allows you to connect to the server similar to mod_frontpage, but doesn't support all the frontpage forms etc. Is that correct?

Z4P
08-31-2007, 04:21 PM
The install went fine. Only apache won't start anymore.

I get this error:
> Starting httpd: Syntax error on line 30 of
> /usr/local/directadmin/data/users/scotiany/httpd.conf:
> Invalid command 'php_admin_flag', perhaps misspelled or defined by a
> module not included in the server configuration

And i readed everything on the forums, i have no custom templates.
I'm running freebsd 6.1.

Please help!

smtalk
08-31-2007, 09:27 PM
And what version of DirectAdmin? Aren't permissions wong of /usr/local/directadmin/data/users/scotiany/httpd.conf file?

Z4P
09-01-2007, 01:24 AM
I have version 1.30.2.
I have recompiled php, but i get strange errors: http://gethost.nl have a look.
And http://forums.gethost.nl doesn't work at all :(

smtalk
09-01-2007, 01:30 AM
Just turn allow_url_include to "On" in /usr/local/lib/php.ini and restart apache :) And you won't get the same errors.

Z4P
09-01-2007, 01:36 AM
Hmm thanks, but there was no allow_url_include in my php.ini. So i added it, but it has no result. Same errors.

smtalk
09-01-2007, 01:38 AM
Then check for allow_url_fopen :) It should be set to "On" too. And if won't work - please upload phpinfo.php file with:


<?php
phpinfo();
?>


And post a link here.

Z4P
09-01-2007, 01:51 AM
That was already On, http://gethost.nl/php.php.

Z4P
09-01-2007, 02:10 AM
I can see it, and with this proxy too:

http://dirkjandijkstra.nl/proxy/index.php?q=uggc&#37;3A%2F%2Fjjj.trgubfg.ay%2Fcuc.cuc&hl=1011111111

HanSieT
09-01-2007, 02:12 AM
Sorry it was offline when i checked :)
Its online now ( atleast i can see it)

Z4P
09-01-2007, 02:13 AM
Hmm i have reinstalled php and apache, and when i retsart using apachtectl restart I get this warning:

(48)Address already in use: make_sock: could not bind to address [::]:80
(48)Address already in use: make_sock: could not bind to address [::]:443
[Sat Sep 01 11:02:02 2007] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
[Sat Sep 01 11:02:02 2007] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter

HanSieT
09-01-2007, 02:18 AM
Do a "netstat -lp" and post outcome here please :)

Z4P
09-01-2007, 02:22 AM
web01# netstat -l
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 web01.63388 ip51ccb0e9.speed.planet.nl.56539 ES
TABLISHED
tcp4 0 0 web01.62954 ip51ccb0e9.speed.planet.nl.56538 LA
ST_ACK
tcp4 0 0 web01.65323 cm222-167-192-99.hkcable.com.hk.3458
ESTABLISHED
tcp4 0 0 web01.57599 ip51ccb0e9.speed.planet.nl.56534 TI
ME_WAIT
tcp4 0 0 web01.53760 ip51ccb0e9.speed.planet.nl.56516 TI
ME_WAIT
tcp4 0 0 web01.62074 ip51ccb0e9.speed.planet.nl.56510 TI
ME_WAIT
tcp4 0 0 web01.53492 ip51ccb0e9.speed.planet.nl.56503 TI
ME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4380 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4381 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4361 TIME_WAIT
tcp4 0 0 web01.http crawl-66-249-65-99.googlebot.com.568
41 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4355 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4354 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4353 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4351 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4350 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4343 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4341 TIME_WAIT
tcp4 0 0 web01.60819 ip51ccb0e9.speed.planet.nl.56469 TI
ME_WAIT
tcp4 0 0 web01.57677 ip51ccb0e9.speed.planet.nl.56466 TI
ME_WAIT
tcp4 0 0 web01.61952 ip51ccb0e9.speed.planet.nl.56462 TI
ME_WAIT
tcp4 0 0 web01.60102 ip51ccb0e9.speed.planet.nl.56455 TI
ME_WAIT
tcp4 0 0 web01.57455 ip51ccb0e9.speed.planet.nl.56450 TI
ME_WAIT
tcp4 0 0 web01.http a91-196-168-0-zone.net.technotop.nl.53300 TIME_WAIT
tcp4 0 0 web01.ftp a91-196-168-0-zone.net.technotop.nl.53299 TIME_WAIT
tcp4 0 523 web01.http 212-182-159-85.dsl.ip.tiscali.nl.21256 FIN_WAIT_1
tcp4 0 0 web01.53616 ip51ccb0e9.speed.planet.nl.56427 TIME_WAIT
tcp4 0 0 web01.http 61-62-244-159-adsl-kao.dynamic.so-net.net.tw.4339 TIME_WAIT
tcp4 0 0 web01.http c84077.upc-c.chello.nl.55696 TIME_WAIT
tcp4 0 3310 web01.http n058152216238.netvigator.com.1436 FIN_WAIT_1
tcp4 0 74 web01.ftp ip51ccb0e9.speed.planet.nl.56295 ESTABLISHED
tcp4 0 28 web01.ftp ip51ccb0e9.speed.planet.nl.56293 ESTABLISHED
tcp4 0 61 web01.ftp ip51ccb0e9.speed.planet.nl.56292 ESTABLISHED
tcp4 0 53 web01.ftp ip51ccb0e9.speed.planet.nl.56291 ESTABLISHED
tcp4 0 33 web01.ftp ip51ccb0e9.speed.planet.nl.56288 ESTABLISHED
tcp4 0 33 web01.ftp ip51ccb0e9.speed.planet.nl.56287 ESTABLISHED
tcp4 0 33 web01.ftp ip51ccb0e9.speed.planet.nl.56286 ESTABLISHED
tcp4 0 0 web01.ftp ip51ccb0e9.speed.planet.nl.56283 ESTABLISHED
tcp4 0 523 web01.http 212-182-159-85.dsl.ip.tiscali.nl.21247 FIN_WAIT_1
tcp4 0 476 web01.http 212-182-159-85.dsl.ip.tiscali.nl.21227 FIN_WAIT_1
tcp4 0 0 web01.http cc792782-a.wsm1.gr.home.nl.28818 FIN_WAIT_2
tcp4 0 0 web01.http cc792782-a.wsm1.gr.home.nl.28816 FIN_WAIT_2
tcp4 0 0 web01.http ip54518869.direct-adsl.nl.3674 FIN_WAIT_2
tcp4 0 28 web01.ftp ip51ccb0e9.speed.planet.nl.55401 ESTABLISHED
tcp4 0 28 web01.ftp ip51ccb0e9.speed.planet.nl.53802 ESTABLISHED
tcp4 0 82 web01.ftp ip51ccb0e9.speed.planet.nl.53794 ESTABLISHED
tcp4 0 28 web01.ftp ip51ccb0e9.speed.planet.nl.53788 ESTABLISHED
tcp4 0 52 web01.ssh s55911622.adsl.wanadoo.nl.51410 ESTABLISHED
tcp4 0 0 web01.ssh s55911622.adsl.wanadoo.nl.51380 ESTABLISHED
tcp4 0 0 web01.ftp cm222-167-192-99.hkcable.com.hk.3386 ESTABLISHED
udp4 0 0 localhost.domain *.*
udp4 0 0 web01.domain *.*
udp4 0 0 web01.domain *.*
udp4 0 0 web01.domain *.*
udp4 0 0 web01.domain *.*
udp4 0 0 web01.domain *.*
udp4 0 0 web01.domain *.*
udp4 0 0 web01.domain *.*
udp4 0 0 web01.domain *.*
udp4 0 0 web01.domain *.*
udp4 0 0 web01.domain *.*
Active UNIX domain sockets
Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
ccb9d3d4 stream 0 0 0 c68a3dac 0 0
c68a3dac stream 0 0 0 ccb9d3d4 0 0
c68a2b7c stream 0 0 0 cc09708c 0 0
cc09708c stream 0 0 0 c68a2b7c 0 0
c6811578 stream 0 0 c862d660 0 0 0 /tmp/mysql.sock
c68a2c08 stream 0 0 0 c68a29d8 0 0
c68a29d8 stream 0 0 0 c68a2c08 0 0
c68e6b7c stream 0 0 0 cc097690 0 0
cc097690 stream 0 0 0 c68e6b7c 0 0
c68a3000 stream 0 0 c68a0990 0 0 0 /var/run/devd.pipe
c808e7a8 dgram 0 0 0 c68a2dac 0 cc35e460
cc35e460 dgram 0 0 0 c68a2dac 0 c68117a8
c68117a8 dgram 0 0 0 c68a2dac 0 c808ea64
c808ea64 dgram 0 0 0 c68a2dac 0 ccb9d71c
ccb9d71c dgram 0 0 0 c68a2dac 0 c74164ec
c74164ec dgram 0 0 0 c68a2dac 0 c68e64ec
c68e64ec dgram 0 0 0 c68a2dac 0 ccb9d8c0
ccb9d8c0 dgram 0 0 0 c68a2dac 0 c6b6008c
c6b6008c dgram 0 0 0 c68a2dac 0 c808d94c
c808d94c dgram 0 0 0 c68a2dac 0 ccb9ddac
ccb9ddac dgram 0 0 0 c68a2dac 0 c7416348
c7416348 dgram 0 0 0 c68a2dac 0 ccb9dc94
ccb9dc94 dgram 0 0 0 c68a2dac 0 c68a2460
c68a2460 dgram 0 0 0 c68a2dac 0 c68a3690
c6c5c118 dgram 0 0 0 c68a2d20 0 c68a2690
c68a3690 dgram 0 0 0 c68a2dac 0 c68e6c08
c68e6c08 dgram 0 0 0 c68a2dac 0 0
c68a2690 dgram 0 0 0 c68a2d20 0 0
c68a2d20 dgram 0 0 c68b5220 0 c6c5c118 0 /var/run/logpriv
c68a2dac dgram 0 0 c68b5330 0 c808e7a8 0 /var/run/log


Edit: netstat -lp gives me a missing parameter, so i did netstat -l.

HanSieT
09-01-2007, 02:30 AM
U are sure that u dont already have an apache running?

If its not that something in your .conf is screwed up ( i think)

Maybe u have a misspell on the listen port

Sorry for english users this i c/p in Dutch :)


6. Address already in use: make_sock: could not bind to address 0.0.0.0:443

Dit probleem kan zich voordoen tijdens het starten en betekend dat je verschillende Listen instructies hebt in je configuratie die incompatibel zijn.
Om dit op te lossen, moet je je configuratie greppen voor Listen en ze stuk voor stuk vermaken.
It just means that he might have multiple Listens in his conf

Z4P
09-01-2007, 02:37 AM
Thanks, (i'm dutch so not any problem for me ^^ ) I have only a Listen 80 in my httpd.conf.

Z4P
09-01-2007, 02:48 AM
Ok reinstalled it again with build all this time.. It looks good but i get this error:

web01# [Sat Sep 1 11:35:40 2007] [warn] module php5_module is already loaded, skipping
Syntax error on line 34 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration

EDIT:: when i comment out that line it goes to the next order. Wehn i comment out all that lines i get this error:
eb01# [Sat Sep 1 11:42:12 2007] [warn] module php5_module is already loaded, skipping
Syntax error on line 1 of /etc/httpd/conf/extra/httpd-php-handlers.conf:
Invalid command 'AddHandler', perhaps mis-spelled or defined by a module not included in the server configuration

smtalk
09-01-2007, 03:19 AM
Ok reinstalled it again with build all this time.. It looks good but i get this error:

web01# [Sat Sep 1 11:35:40 2007] [warn] module php5_module is already loaded, skipping
Syntax error on line 34 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration

EDIT:: when i comment out that line it goes to the next order. Wehn i comment out all that lines i get this error:
eb01# [Sat Sep 1 11:42:12 2007] [warn] module php5_module is already loaded, skipping
Syntax error on line 1 of /etc/httpd/conf/extra/httpd-php-handlers.conf:
Invalid command 'AddHandler', perhaps mis-spelled or defined by a module not included in the server configuration

If you have Apache 1.3, why do you set apache_ver 2.2 in options.conf? :) Do "./build apache" if you want to have 2.2 (now you have 1.3 with 2.x configs).

Z4P
09-01-2007, 03:38 AM
Ok builded apache with ./build apache.

Now i get this:

web01# /usr/local/etc/rc.d/httpd restart
Stopping httpd: [ FAILED ]
Starting httpd: [ OK ]
web01# httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: Undefined symbol "ap_signal"

smtalk
09-01-2007, 03:50 AM
Now try: "./build php n". I always suggest to run "./build all d" for the first time, but you can do "./build apache" and "./build php n" instead of it.

Z4P
09-01-2007, 04:05 AM
When i do .build php n i get this:

Note that the MySQL client library is not bundled anymore!

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

dan
09-01-2007, 04:15 AM
i built all with ./build all d, however required the mysql upgrade. so

./build mysql
./build php n

brings back this:

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.

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

the config.log file is somewhat gibberish to me. if you need it though, i'll happily attach it.
bizarre thing is, php5 is using the old mysql client libraries, and everything appears to be working fine. phpmyadmin however warns that things could get messy/weird because the client library version doesn't match the server version.
workarounds/fixes?

dan

smtalk
09-01-2007, 04:29 AM
What version of custombuild do you have? Try "./build mysql" too and "./build update" before everything.

dan
09-01-2007, 04:36 AM
i was using 1.1.3. did a build update and am now on 1.1.5. when i did the update, it said the options.conf was damaged, though it looked ok to me. here's the ./build options output

Apache: 2.2.4
Dovecot: no
exim.conf update: yes
MySQL: 5.0.45
PHP: 5.2.3 as CLI with mail() header patch
phpMyAdmin: 2.11.0-all-languages
ProFTPD: 1.3.1rc3
RoundCube webmail: 0.1-rc1
Run "clean" every time: yes
SquirrelMail: 1.4.10a
Zend Optimizer: 3.2.8

going to try ./build mysql again now. granted the first time i tried it i had to give it a helping hand. it downloaded a 75mb tar.gz file twice, and said it couldn't cd to /usr/local/mysql. upon investigation, it'd created the symbolic link to the new mysql directory, just hadn't extracted the tarball. did that manually and re-ran it, and it installed after that. weird.

dan
09-01-2007, 04:41 AM
alright. next error:

aqua# ./build mysql
mysql-5.0.45-linux-i686.tar.gz 100&#37; of 75 MB 421 kBps 00m00s
Starting mysqld: [ OK ]
This script updates all the mysql privilege tables to be usable by
the current version of MySQL

Got a failure from command:
cat /usr/local/mysql/share/mysql_fix_privilege_tables.sql | /usr/local/mysql/bin/mysql --no-defaults --force --user=da_admin --host=localhost --database=mysql
Please check the above output and try again.

Running the script with the --verbose option may give you some information
of what went wrong.

If you get an 'Access denied' error, you should run this script again and
give the MySQL root user password as an argument with the --password= option
cp: directory /usr/lib/mysql does not exist

[edit:] found the password. but doing a ./build mysql --password=xxxxxx doesn't work. still gives the same error. how do i pass the password to it?

smtalk
09-01-2007, 05:17 AM
dan, you can just delete the options.conf file :) "./build" will rewrite it. About the MySQL /usr/lib/mysql - everything should be okay with it, because on you system it's in different location.

dan
09-01-2007, 05:56 AM
ok, i've re-built mysql using ./build mysql. 5.0.45 is now running. ./build php n still refuses to configure correctly, and bombs out complaining about libmysqlclient. any clues?

smtalk
09-01-2007, 06:47 AM
Interesting. Try http://directadmin.com/forum/showthread.php?t=1734.

dan
09-01-2007, 07:03 AM
none of the commands there were very relevent, since freebsd doesn't have an /etc/ld.so.conf. however the libmysqlclient.a and _r.a files were in /usr/local/mysql-5.045-linux-i686/lib, so i linked them to /usr/lib and re-ran ./build php n, to no avail.
of course, i can't see what versions of mysql files are installed, since freebsd doesn't have a package manager such as rpm, so the rpm -qa command is of no use. generally, you use cat /var/db/pkg to see what's installed, but because DA's structure is all built up custom, it doesn't use freebsd's ports collection, so of course it doesn't think they're installed.

smtalk
09-01-2007, 07:09 AM
dan, you should report that to DirectAdmin support, because PHP configuration files aren't changed (MySQL options are set as they were).

Z4P
09-01-2007, 07:30 AM
Ok mysql is running now here, but it gave me this error:



Stopping mysqld: [ FAILED ]
mysql-5.0.45-linux-i686.tar.gz 100&#37; of 75 MB 407 kBps 00m00s
Starting mysqld: [ OK ]
ELF binary type "0" not known.
./bin/my_print_defaults: 26: Syntax error: "(" unexpected
This script updates all the mysql privilege tables to be usable by
the current version of MySQL

ELF binary type "0" not known.
Got a failure from command:
cat /usr/local/mysql/share/mysql_fix_privilege_tables.sql | /usr/local/mysql/bin/mysql --no-defaults --force --user=da_admin --host=localhost --database=mysql
Please check the above output and try again.

Running the script with the --verbose option may give you some information
of what went wrong.

If you get an 'Access denied' error, you should run this script again and
give the MySQL root user password as an argument with the --password= option
cp: directory /usr/lib/mysql does not exist
web01# ELF binary type "0" not known.
./bin/my_print_defaults: 26: Syntax error: "(" unexpected
ELF binary type "0" not known.
./bin/my_print_defaults: 26: Syntax error: "(" unexpected
ELF binary type "0" not known.

web01# ps waux | grep mysql
root 10547 0.0 0.0 1592 940 p0 S+ 4:17PM 0:00.00 grep mysql

smtalk
09-01-2007, 07:32 AM
Z4P, please contact DirectAdmin support, I'm sure they will help you. I'm very busy today. Good luck!

Z4P
09-02-2007, 02:46 AM
I think i'm close now. Only need to get those header files working.. I'm getting this stupid message when i install php:

configure: error: Cannot find MySQL header files under /usr/local/mysql-5.0.22-freebsd6.0-i386.

VinzeiHosting
09-08-2007, 02:31 AM
Please add this to the faq :) i figgured it out myself ;)

xx. How to fix "gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory" IF YOU ARE RUNNING 64bit (tested with CentOS 5) ?
Code:

cp /usr/lib/libmysqlclient.* /usr/lib64/mysql/

:)

smtalk
09-08-2007, 02:37 AM
Just added :) Thank you.

VinzeiHosting
09-08-2007, 02:43 AM
Just added :) Thank you.

nice :) np

smtalk
09-09-2007, 10:38 AM
Added #6 ("What each option does in options.conf").

chatwizrd
09-09-2007, 01:42 PM
Can you update the build script to dovecot version 1.05 please. Im sick of having to keep changing it :P

smtalk
09-09-2007, 01:50 PM
Yes, it will be changed soon :)

malyem
09-10-2007, 04:33 PM
Martynas, please check custombuild script, I tried install with mysql 5.1 and it does not work (5.0 is OK).

jw00dy
09-10-2007, 09:06 PM
I talked to DA support (John) and MySQL 5.1 is in Beta, so it's not supported by DA, however if you want to install and run it, you can download the 5.1 rpm's from dev.mysql.com

DA has no plans to even mess with 5.1 until it's no longer beta.

michelerocco
09-28-2007, 07:15 PM
hello to all

I have tryed to upgrade Apache, Mysql and PHP to last release doing:

cd /usr/local/directadmin/

wget http://files.directadmin.com/services/custombuild/beta/custombuild.tar.gz

rm -rf custombuild

tar zxvf custombuild.tar.gz

cd custombuild

./build update_data

./build all d

./build mysql

everything ok with apache and php but mysql give me this error:

Stopping mysqld: [ FAILED ]
Starting mysqld: [ OK ]
This script updates all the mysql privilege tables to be usable by
the current version of MySQL

Got a failure from command:
cat /usr/local/mysql/share/mysql_fix_privilege_tables.sql | /usr/local/mysql/bin/mysql --no-defaults --force --user=da_admin --host=localhost --database=mysql
Please check the above output and try again.

Running the script with the --verbose option may give you some information
of what went wrong.

If you get an 'Access denied' error, you should run this script again and
give the MySQL root user password as an argument with the --password= option
cp: cannot stat `/usr/lib/libmysqlclient.*': No such file or directory


What can I do??? tryed to look in the forum but the suggestion gived to other users seems not work :(

Mysql seems to have been upgraded but stopped and not start
Apache 2.2.6 Running
DirectAdmin Running
Exim 4.67 Running
MySQL 5.0.45 *** Stopped ***
Named 9.3.4 Running
ProFTPd 1.3.1rc3 Running
sshd Running
vm-Pop3d 1.1.7f-T6-DA Running

Thanks to all, Michele

smtalk
09-28-2007, 10:58 PM
That's ok if it's not a RedHat based system (Fedora or CentOS). If it's Debian - try /etc/init.d/mysqld restart.

michelerocco
09-29-2007, 04:04 AM
fixed :)

looking at .err file in mysqd/data directory saw that I can't write file .pid in this folder, so chown the data folder and mysql started right :)

thank to all

siulun
10-01-2007, 12:16 PM
Nevermind I found my problem

smtalk
10-01-2007, 12:19 PM
After any option change do: ./build update_data

Then do: ./build all d (to build everything)

Randy
10-01-2007, 05:39 PM
Martynas,

Still have troubles with suphp (automake / autoconf error: Lc-local or so what) on two CentOS5/32 boxes. Does PHP need to be CLI or CGI?

smtalk
10-02-2007, 12:38 AM
CLI is default :) But if you want to use suPHP - you must have PHP as CGI. Could you post the error output here?

Randy
10-02-2007, 12:44 PM
[root@adam custombuild]# ./build suphp
Found /usr/local/directadmin/custombuild/suphp-0.6.2.tar.gz
Extracting ...
Done.
Configuring suphp-0.6.2...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... cat: ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... cat: ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for APR... yes
checking for dynamic Apache module support (via APXS)... found at /usr/sbin/apxs (version 2.2.6)
checking for set-UID/set-GID mode... ok - using paranoid
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/apache/Makefile
config.status: creating src/apache2/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
Done Configuration.
Trying to make suPHP...
cd . && /bin/sh /usr/local/directadmin/custombuild/suphp-0.6.2/config/missing --run aclocal-1.9
acinclude.m4:43: warning: underquoted definition of APR_FIND_APR
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
aclocal:configure.ac:24: warning: macro `AM_PROG_LIBTOOL' not found in library
cd . && /bin/sh /usr/local/directadmin/custombuild/suphp-0.6.2/config/missing --run automake-1.9 --gnu
src/apache/Makefile.am:8: Libtool library used but `LIBTOOL' is undefined
src/apache/Makefile.am:8:
src/apache/Makefile.am:8: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/apache/Makefile.am:8: to `configure.ac' and run `aclocal' and `autoconf' again.
src/apache2/Makefile.am:10: Libtool library used but `LIBTOOL' is undefined
src/apache2/Makefile.am:10:
src/apache2/Makefile.am:10: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/apache2/Makefile.am:10: to `configure.ac' and run `aclocal' and `autoconf' again.
make: *** [Makefile.in] Error 1

*** The make has failed, do you want to try to make again? (y,n): n


Boxes: CentOS5/32bit (login on request, located in Amsterdam, EU)

smtalk
10-02-2007, 12:47 PM
Try:


./build autoconf; ./build automake; ./build libtool; ./build suphp

Randy
10-02-2007, 01:00 PM
Still does'nt work



Trying to make suPHP...
cd . && /bin/sh /usr/local/directadmin/custombuild/suphp-0.6.2/config/missing --run aclocal-1.9
acinclude.m4:43: warning: underquoted definition of APR_FIND_APR
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
aclocal:configure.ac:24: warning: macro `AM_PROG_LIBTOOL' not found in library
cd . && /bin/sh /usr/local/directadmin/custombuild/suphp-0.6.2/config/missing --run automake-1.9 --gnu
src/apache/Makefile.am:8: Libtool library used but `LIBTOOL' is undefined
src/apache/Makefile.am:8:
src/apache/Makefile.am:8: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/apache/Makefile.am:8: to `configure.ac' and run `aclocal' and `autoconf' again.
src/apache2/Makefile.am:10: Libtool library used but `LIBTOOL' is undefined
src/apache2/Makefile.am:10:
src/apache2/Makefile.am:10: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/apache2/Makefile.am:10: to `configure.ac' and run `aclocal' and `autoconf' again.
make: *** [Makefile.in] Error 1

*** The make has failed, do you want to try to make again? (y,n): n


options.comf


#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=no

#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=5.0
mysql_inst=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

#Web applications
phpmyadmin=yes
squirrelmail=no
roundcube=yes

#Mail options
mail-header-patch=yes
dovecot=yes
eximconf=yes

#FTP options
proftpd=yes

#Custombuild options
clean=yes

smtalk
10-03-2007, 12:05 PM
Do you have any suggestions for this FAQ? :) Do I have anything to add?

smtalk
10-03-2007, 12:07 PM
Randy, try to search CentOS forums (I'm sure you'll find a solution).

megahostworld
10-08-2007, 01:31 AM
MySQL 5.0 has a new password system, and PHP cannot connect to it because it cannot send a correct password. You must use the MySQL command OLD_PASSWORD() when adding a user to the database, or PHP cannot connect as of the library that comes with PHP 5.0Beta3

How do I fix this?

Equand
10-09-2007, 07:55 AM
Installing PEAR environment: /usr/local/lib/php/
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/local/directadmin/custombuild/php-5.2.4.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/php-5.2.4.

*** The install has failed, do you want to try to install it again? (y,n):

and this is always repeating, no matter what i do... installing from ports doesn't give such problems... where am i wrong?

CrazyLane
10-09-2007, 08:00 AM
I can login as da_roundcube in phpmyadmin, however when going to roundcube I get

DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!


Any ideas?

smtalk
10-09-2007, 08:20 AM
CrazyLane, run "./build roundcube" again :) Maybe database password isn't right in RoundCube configuration file.

CrazyLane
10-09-2007, 08:25 AM
Didn't work, I got the password from the config and I can login to phpmyadmin...

smtalk
10-09-2007, 08:40 AM
Are you sure MySQL is up and running? (and you have /var/lib/mysql/da_roundcube)

CrazyLane
10-09-2007, 08:50 AM
Yes it does, I can access it via cmd and phpmyadmin, however I just checked and all of my databases(USER) now cannot connect to database.

I did install ELS recently, any ideas?

smtalk
10-09-2007, 08:53 AM
Ah, I think you have sql.safe_mode set to on in /usr/local/lib/php.ini :) Set it to off and restart the apache service. Good luck! :)

megahostworld
10-10-2007, 03:07 AM
how do you use the custom configuration files? where are they located?

smtalk
10-10-2007, 04:08 AM
They aren't created yet. You can create "custom" directory in /usr/local/directadmin/custombuild. There you'll need to create the same file as it is in configure directory (then you can edit it). E.g. if you want to have a custom PHP5 configuration for Apache2, just create /usr/local/directadmin/custombuild/custom/ap2/configure.php5 file, and it will automatically detect it (and will use everything from it instead of configure/ap2/configure.php5 file).

megahostworld
10-10-2007, 05:40 AM
They aren't created yet. You can create "custom" directory in /usr/local/directadmin/custombuild. There you'll need to create the same file as it is in configure directory (then you can edit it). E.g. if you want to have a custom PHP5 configuration for Apache2, just create /usr/local/directadmin/custombuild/custom/ap2/configure.php5 file, and it will automatically detect it (and will use everything from it instead of configure/ap2/configure.php5 file).
ok.. now i know.
i previously had mod_security and mod_evasive installed on my server but custom build recompiled apache and it seems to have disappeared. any fixes? possible to include these two in the next release of custom build?
oh and where do you get version 1.2 of custombuild?

smtalk
10-10-2007, 06:15 AM
I'm the creator of the CustomBuild script, and I'm developing 1.2 (it's closed beta now).

megahostworld
10-10-2007, 06:35 AM
I'm the creator of the CustomBuild script, and I'm developing 1.2 (it's closed beta now).
yea i know you created it but in your first post you seemed to mention as though v1.2 was the current release version.
so any fix for the mod_security/evasive issues?

thanks

megahostworld
10-11-2007, 01:27 AM
i know i'm a little outdated on the version but what is causing this error?

Failed loading /ea/eaccelerator-0.9.3/modules/eaccelerator.so: /ea/eaccelerator-0.9.3/modules/eaccelerator.so: undefined symbol: empty_string
Failed loading /ea/eaccelerator-0.9.3/modules/eaccelerator.so: /ea/eaccelerator-0.9.3/modules/eaccelerator.so: undefined symbol: empty_string
Failed loading /ea/eaccelerator-0.9.3/modules/eaccelerator.so: /ea/eaccelerator-0.9.3/modules/eaccelerator.so: undefined symbol: empty_string

smtalk
10-13-2007, 12:45 AM
megahostworld , try eaccelerator 0.9.5.1.

nick-a
10-17-2007, 09:41 AM
What happened to eaccelerator in custom build? Just came to install on a new server and it's gone?

BigWil
10-18-2007, 10:44 AM
Smtalk,

So what was the conclusion on mod_frontpage. Is it being installed by default with AP 1.x? It sounds like things are pretty stable and I am going to jump on board with a beta machine and give custom build a shot. I want to keep PHP 4 as default on AP 1.x, PHP 5 with php suexec, and keep MySQL 4.18. All on a FreeBSD 6.2 server.

Any suggestions? Will this do the trick?



#PHP settings. default_php possible values - 4 or 5
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=yes

#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=4.1
mysql_inst=no

#Possible values - 1.3, 2.0 or 2.2
apache_ver=1.3

#Web applications
phpmyadmin=yes
squirrelmail=yes
roundcube=yes

#Mail options
mail-header-patch=yes
dovecot=yes
eximconf=yes

#FTP options
proftpd=yes

#Custombuild options
clean=yes


BigWil

smtalk
10-18-2007, 11:23 AM
No, it's not installed by default, but you can run build command to install it :) And options.conf is looking good :) Good luck!

BigWil
10-18-2007, 01:44 PM
Question on your libxslt: Is this compatible with Sablot? Can they work together?

smtalk
10-18-2007, 01:53 PM
Yes, you can use "--with-xslt-sablot" together with "--enable-xslt" (using PHP 4.x).

jw00dy
10-18-2007, 02:33 PM
No, it's not installed by default, but you can run build command to install it :) And options.conf is looking good :) Good luck!
Which command do you run?

Apache 1.3 related:
./build frontpage_ext
./build mod_frontpage #dso depreciated
both?

BigWil
10-18-2007, 05:51 PM
Smtalk,

Not too shabby there buddy. Took me a minute to figure out that I needed to delete my custom/virtual_host.conf files and rewrite the httpds but I now have installed exactly what I wanted. Now I shall just go make the few customizations that I require and I will be a very happy man. I ran into a script that I require that requires PHP5 and it took alot less than I was ready to invest. Good job! 5 Kudos!

BigWil

BigWil
10-18-2007, 05:55 PM
Quick correction. There was one thing I needed to do. doZend didn't run because I needed to open up the build script and change install.sh to install-tty. I then ran ./build zend and installed it for PHP4. One question though. How do I get it to install for PHP5?

BigWil

smtalk
10-19-2007, 01:51 AM
Do you have PHP5 as CGI? If yes, on the install time you need to change the configure path (see CustomBuild FAQ first post). Good luck! :)

marsupillami
10-19-2007, 06:36 AM
[root@servidor custombuild]# ./build mysql
Shutting down MySQL. SUCCESS!
--15:25:47-- http://files.directadmin.com/services/all/mysql/MySQL-client-4.1.22-0.i386.rpm
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:25:48 ERROR 404: Not Found.

--15:25:48-- http://files.directadmin.com/services/all/mysql/MySQL-devel-4.1.22-0.i386.rpm
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:25:48 ERROR 404: Not Found.

--15:25:48-- http://files.directadmin.com/services/all/mysql/MySQL-server-4.1.22-0.i386.rpm
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:25:49 ERROR 404: Not Found.

--15:25:49-- http://files.directadmin.com/services/all/mysql/MySQL-shared-4.1.22-0.i386.rpm
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:25:49 ERROR 404: Not Found.

*** Cannot find /usr/local/directadmin/custombuild/mysql/MySQL-client-4.1.22-0.i386.rpm. Aborting ***

The RPMīs for MySQL 4.1.22 are not in DAīs webspace.

smtalk
10-19-2007, 06:51 AM
Please inform DirectAdmin support about it. Thank you. :)

megahostworld
10-19-2007, 09:05 AM
What happened to eaccelerator in custom build? Just came to install on a new server and it's gone?same question... can it be installed with custom build?

smtalk
10-19-2007, 09:07 AM
No, eAccelerator is not included into the CustomBuild script.

BigWil
10-20-2007, 01:40 AM
Smtalk,

Any idea as to what could be causing the Frontpage Admin link in DA to not work anymore. I can connect with the software just can't do anything in Frontpage Admin. Probably something missing out of the new httpd.conf or a conflict of some kind.

BigWil

smtalk
10-20-2007, 02:00 AM
BigWil, you should contact DirectAdmin support if the problem exists only in DirectAdmin interface :)

mangelot
10-20-2007, 05:13 AM
After using custombuild an updated our server.
the options.conf we have been using:

#PHP settings. default_php possible values - 4 or 5
default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=no

#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=5.0
mysql_inst=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.0

#Web applications
phpmyadmin=yes
squirrelmail=yes
roundcube=yes

#Mail options
mail-header-patch=yes
dovecot=no
eximconf=no

#FTP options
proftpd=yes

#Custombuild options
clean=yes

some costumers complaint about that frontpage extensions isn't working.

any idea's how to fix this issue?

smtalk
10-20-2007, 06:09 AM
You can build mod_frontpage using:


./build frontpage_ext
./build mod_frontpage #dso depreciated

And, only for apache 1.3. mod_dav is installed by default with Apache 2.x.

BigWil
10-20-2007, 11:16 AM
Ok let me rephrase that. The link is fine and so is the URL that it goes to. Frontpage Admin just isn't working with this build.

smtalk
10-20-2007, 11:18 AM
Is it in DirectAdmin? If yes - contact DirectAdmin support. :)

mangelot
10-21-2007, 02:08 AM
[root@srv02 ~]# cd /usr/local/directadmin/custombuild
[root@srv02 custombuild]# ./build frontpage_ext
Found /usr/local/directadmin/custombuild/fp50.linux.tar.gz
Extracting Frontpage Extensions...
Setting the suidkey...
Creating we80.cnf...
Done. Frontpage Extension install complete.
[root@srv02 custombuild]# ./build mod_frontpage
Found /usr/local/directadmin/custombuild/mod_frontpage-1.6.1.tar.gz
Extracting ...
Done.
Configuring mod_frontpage-1.6.1...

Let's see if it's a valid httpd... YES!
sbindir is /usr/sbin, trying to find apxs...Found!
Config directory: /etc/httpd/conf

Compiler: gcc

CFLAGS:

Include directory: /usr/include/apache

Libexecdir: /usr/lib/apache


Can't find /etc/httpd/conf
/httpd.conf!
make: *** Geen regel voor het maken van doel `clean'. Stop.
Done. Making mod_frontpage-1.6.1...
Trying to make mod_frontpage...
make: *** Geen doelen gespecificeerd en geen makefile gevonden. Stop.

*** The make has failed, do you want to try to make again? (y,n):


The make isn't working, so frontpage isn't working...
It is installed in directadmin, and i needed to touch both srm.conf en access.conf to enable it in DA.

but when i connect with frontpage, it gives an error, that frontpage is not installed.

smtalk
10-21-2007, 02:15 AM
What is the version of Apache?

mangelot
10-21-2007, 02:18 AM
Apache 2.0 ?

smtalk
10-21-2007, 02:26 AM
That's the problem :) With CustomBuild you can only use Apache 1.3 if you want to have mod_frontpage. With Apache 2.x you have mod_dav as mod_frontpage replacement.

mangelot
10-21-2007, 02:34 AM
Okay, I understand it,

But why isn't webdav also not working?
You sad it was installed by default in Apache 2
But it still cannot connect, are there any modifications neede in user/httpd .conf files?

How can i undo/uninstall those Previous 2 scripts i just ran on our server..
Are isn't that a problem.

smtalk
10-21-2007, 02:49 AM
Yes, it's just installed with Apache 2.x, but not configured (it's not included in DirectAdmin interface yet, please contact DA support for more information).

mangelot
10-21-2007, 03:22 AM
Is there also an howto the manualy install this? for a user.

smtalk
10-21-2007, 03:44 AM
Yes, there are many tutorials in google :)

SuperHost3000
10-21-2007, 04:18 AM
Hello Guys,

We are updated to the newest version of Apache (2.2.6).
But all my modules are gone! Mod_rewrite won't working.
Take a look: http://www.furion.nl/index.php : http://www.furion.nl/hosting => http://www.furion.nl/hosting.php

What can i do to solve this big problem?

Best regards,
Stephan Meijer

smtalk
10-21-2007, 04:29 AM
Please post .htaccess file content here.

SuperHost3000
10-21-2007, 04:32 AM
In the last versions of Apache works this file:

Options FollowSymLinks MultiViews All

smtalk
10-21-2007, 04:34 AM
So, I don't see any RewriteRules :) You need to add them.

SuperHost3000
10-21-2007, 04:35 AM
And why won't work this file with the new version of Apache? It's very weard..

smtalk
10-21-2007, 04:39 AM
Why do you think it's not working?

SuperHost3000
10-21-2007, 04:46 AM
Well, the point is:
On the older version of Apache my htaccess worked only with that line.
When i opened furion.nl/hosting he readed the file furion.nl/hosting.php before.
The thing is, he dont uses this multiviews anymore...

smtalk
10-21-2007, 08:23 AM
Problem has been solved using mod_rewrite.

Sc0uT
10-23-2007, 03:16 PM
Hi,

I have installed custombuild on a server with default PHP5 as CGI and PHP4 CLI as well with it. PHP4 works fine if a file has extension .php4, but I'd like to know is it possible to make just for one client to use PHP4 as default and how?

BigWil
10-23-2007, 03:25 PM
Is it in DirectAdmin? If yes - contact DirectAdmin support. :)

Apparently in the build you aren't running the patches. So I am not sure exactly what the frontpage_ext and mod_frontpage options are doing. Half the job maybe? Not sure.

Variables:
MOD_FRONTPAGE=mod_frontpage.c
FP_PATCH0=Makefile.tmpl.patch
FP_PATCH1=frontpage.patch
FP_PATCH_AP2=fp-patch-apache_2.0
FRONTPAGE_PATH=/usr/local

if [ $OS = "FreeBSD" ]; then
cp ../$MOD_FRONTPAGE .
patch -p0 < ../$FP_PATCH0
else
patch -p0 < ../fp-patch-apache_1.3.22
patch -p0 < ../fp-patch-suexec
fi

This should be added so that it properly patches. These are from customapache.

Again I really think there should be a frontpage=ap1 or frontpage=ap2 (ap2 working only for AP 2.0) for the options.conf so that it will build it properly before it cleans. Just my opinion.

Big Wil

xshadowfire
10-23-2007, 04:29 PM
changes in options.conf don't seem to affect my apache, and for some reason my proftpd is dead now :/

BigWil
10-23-2007, 04:32 PM
Too little information to really help. What is the contents of your options.conf? What OS and version are you using? What build string are you using to do your build? Are you using ./build all d?

BigWil

xshadowfire
10-23-2007, 04:35 PM
options.conf:

#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
zend=yes

#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=5.0
mysql_inst=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

#Web applications
phpmyadmin=yes
squirrelmail=yes
roundcube=yes

#Mail options
mail-header-patch=yes
dovecot=no
eximconf=no

#FTP options
proftpd=yes

#Custombuild options
clean=yes


i am running debian etch, and yes i used ./build all d

i tried changing the default to 4 before, used ./build update_data and restarted apache, but everything was still running php5. and when i add the php4 handler to my .htaccess, my php scripts aren't processed anymore.

BigWil
10-23-2007, 04:44 PM
Try running them in parts and look for errors that you may be missing. ./build all d is a rather lengthy build. Try ./build proftpd. Also I am hoping you made a backup of your /etc/proftpd.conf before trying to upgrade?

In regards to the problem with the PHP default I am going to leave that one to smtalk as I haven't made my rounds of the configs to that extent yet. Working on it though. Custombuild has one heck of a learning curve.

BigWil

BigWil
10-23-2007, 04:48 PM
options.conf:
i tried changing the default to 4 before, used ./build update_data and restarted apache, but everything was still running php5. and when i add the php4 handler to my .htaccess, my php scripts aren't processed anymore.

Oh hey did you state here that all you did was run ./build update_data and then tried to restart apache? You should do a ./build apache after your update_data. Otherwise to my knowledge it isn't going to change the configs the right way.

BigWil

xshadowfire
10-23-2007, 05:18 PM
i did ./build proftpd and ./build apache, but doesn't seem like anything has changed.
still can't connect to ftp and php files are still not being parsed.

smtalk
10-23-2007, 09:40 PM
xshadowfire, just try to restart proftpd and apache :) And about the sites - if you get 500 error, it's not a script, but .htaccess or permissions problem.

smtalk
10-23-2007, 09:42 PM
Sc0uT, you must have it as CGI if you want to make it as default using .htaccess.

xshadowfire
10-23-2007, 10:07 PM
i've restarted apache multiple times, and proftpd isn't running unless i'm connected :/

edit: actually, i don't even think php4 and php5 got installed or something...there's no php4/php5 folder in my /usr/local, and i have them both set as cgi.
edit: now i get
Trying to make php...
make: *** No targets specified and no makefile found. Stop.
when doing ./build php

jw00dy
10-23-2007, 11:44 PM
Apparently in the build you aren't running the patches. So I am not sure exactly what the frontpage_ext and mod_frontpage options are doing. Half the job maybe? Not sure.

Variables:
MOD_FRONTPAGE=mod_frontpage.c
FP_PATCH0=Makefile.tmpl.patch
FP_PATCH1=frontpage.patch
FP_PATCH_AP2=fp-patch-apache_2.0
FRONTPAGE_PATH=/usr/local

if [ $OS = "FreeBSD" ]; then
cp ../$MOD_FRONTPAGE .
patch -p0 < ../$FP_PATCH0
else
patch -p0 < ../fp-patch-apache_1.3.22
patch -p0 < ../fp-patch-suexec
fi

This should be added so that it properly patches. These are from customapache.

Again I really think there should be a frontpage=ap1 or frontpage=ap2 (ap2 working only for AP 2.0) for the options.conf so that it will build it properly before it cleans. Just my opinion.

Big Wil
Did you ever make any headway here? I ran into the same problem with custombuild, so I had to run customapache to fix it, then Custombuild to get php to work (iconv trouble otherwise). I'm good now, but what a stressful night that was.

smtalk
10-24-2007, 01:44 AM
xshadowfire, run ./build update, then ./build php n.

xshadowfire
10-24-2007, 02:16 AM
still the same error.
this is the entire message:

Found /usr/local/directadmin/custombuild/php-4.4.7.tar.gz
Extracting ...
Done.
patching file php-4.4.7/ext/standard/mail.c
Configuring php-4.4.7...
X-Powered-By: PHP/4.4.4-8+etch4
Content-type: text/html

./configure \
--with-apxs2 \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit
Done Configuration.
Trying to make php...
make: *** No targets specified and no makefile found. Stop.

Sc0uT
10-24-2007, 02:10 PM
Sc0uT, you must have it as CGI if you want to make it as default using .htaccess.

So, no way of having default PHP4 as CLI on one site with PHP5 CGI as server default?

jonathanc
10-25-2007, 03:16 AM
With php as CLI on centos 5 updating webmail and squirrelmail using custombuild causes a permission problem. But resolution for me is

chown -R apache:apache /var/www/html/webmail etc

ie not webapps ownership which does not work. Thank you.

smtalk
10-28-2007, 01:06 PM
PHP6 has been added to the FAQ :)

jocker
10-31-2007, 06:45 PM
Hello,

I'd like to know why we can't install both php5-cgi and php5-cli in the same time.

I use php class for my website which use php5 and I also use cron job with php commands. So the cronjob work with php-cli which is version 4 and it makes my script doesn't work.

Thank you

smtalk
10-31-2007, 06:53 PM
You must use cli one time, and cgi the second, then. You'll be able to reach /usr/local/bin/php via cron job, but not the apache service :)

jocker
11-01-2007, 07:52 AM
tahnk you for your answer but I don't really understand it, how can I use cli and cgi.

My scrip which is in PHP, read some datas which are in database MYSQL. Then send them by mail. So I don't know if i really need apache for this. For the moment in my cronjob I do : /usr/local/php5/bin/php-cgi /home/.../script.php and it works.

But the best for me would be to have php5-cgi and php5-cli both installed. So why can't we install thoses 2 php5 via custombuild ?

Thank you

smtalk
11-01-2007, 08:04 AM
Because apache can't work with both of these (it's possible, but very pain). P.S. if you just want to execure cronjob as CLI, do /usr/local/php5/bin/php, instead of /usr/local/php5/bin/php-cgi :) And that's all (you don't need to compile PHP5 as CLI then).

SajtXL
11-01-2007, 08:51 AM
Hello.

I have a new server with default DA installed.

After an upgrade with custombuild with default option,
i try to update exim to 4.68.

The upgrade went wrong, with this problem:

rfc2047.o(.text+0x384): In function `rfc2047_decode2':
: undefined reference to `libiconv_open'
rfc2047.o(.text+0x44f): In function `rfc2047_decode2':
: undefined reference to `libiconv'
rfc2047.o(.text+0x535): In function `rfc2047_decode2':
: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/da_exim-4.68/build-Linux-i386'
make: *** [go] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.57655 (&#37;build)


My configure.php5 looked like:
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-mysqli=/usr/bin/mysql_config \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-iconv=/usr/local \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--disable-posix \
--enable-gd-native-ttf \
--enable-mbstring

And now I have no idea how to fix EXIM.

Any suggestion?

_____________________________________________________________

Problem fixed. Found some nice info in this forum from an old case... modifies some files..

wget http://files.directadmin.com/services/4.4/da_exim-4.68-1.i386.rpm
rpm -Uhv da_exim-4.68-1.i386.rpm --force
rm -f da_exim-4.68-1.i386.rpm
service exim restart

smtalk
11-04-2007, 11:22 AM
Just added #23 :)

morfargekko
11-04-2007, 09:39 PM
Hi I rebuilt everything ./build all and httpd wont start. After that I did .build apache trying to make things right but no luck.
I get :
An error has occurred

Details

/sbin/service httpd restart 2>&1

:confused:

morfargekko
11-04-2007, 10:37 PM
Problem solved: I had open_basedir enabled and disableing it did the trick.

I am running php as cgi so I wounder if open_basedir isn't working or isn't needed if I do this?

morfargekko
11-05-2007, 03:09 AM
Hi, after ./build all squirrelmail is giving me the following error:
ERROR: Connection dropped by IMAP server.
Query: CAPABILITY

RounrQube worked before I did ./build all but now I only get to log in screen and then nothing, not even an error message.

Interesting! :confused:

smtalk
11-05-2007, 04:38 AM
Try:
service dovecot restart

morfargekko
11-05-2007, 09:07 PM
Thank's I found the problem after a lot of reading. It was an ownership problem for both Squirrellmail and Roundcube.

morfargekko
11-05-2007, 09:14 PM
Hi, now almost everything works but there is still one thing I would like to be able to do.

How do I make http://serverIP/~username/ work after a custombuild setup?

andren
11-06-2007, 05:25 PM
Trying to recompile webalizer.
Here is what we get:
./build webalizer
File already exists: webalizer-2.01-10-src.tgz
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether ln -s works... yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether char is unsigned... no
checking for db_185.h... no
checking for errno.h... yes
checking for socket... no
checking for main in -lsocket... no
checking for sys/socket.h... yes
checking for main in -lnsl... no
checking for main in -l44bsd... no
checking for main in -lm... no
checking for main in -lz... no
configure: error: z library not found... please install zlib.
Trying to make webalizer...
make: *** No targets specified and no makefile found. Stop.

*** The make has failed, do you want to try to make again? (y,n): n

Well, zlib is installed. But let's fix it and build again:

./build zlib
File already exists: zlib-1.2.3.tar.gz
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.3 with gcc.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
Trying to make libz...
gcc -fPIC -O3 -DUSE_MMAP -c -o example.o example.c
gcc -fPIC -O3 -DUSE_MMAP -c -o adler32.o adler32.c
gcc -fPIC -O3 -DUSE_MMAP -c -o compress.o compress.c
gcc -fPIC -O3 -DUSE_MMAP -c -o crc32.o crc32.c
gcc -fPIC -O3 -DUSE_MMAP -c -o gzio.o gzio.c
gcc -fPIC -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c
gcc -fPIC -O3 -DUSE_MMAP -c -o deflate.o deflate.c
gcc -fPIC -O3 -DUSE_MMAP -c -o trees.o trees.c
gcc -fPIC -O3 -DUSE_MMAP -c -o zutil.o zutil.c
gcc -fPIC -O3 -DUSE_MMAP -c -o inflate.o inflate.c
gcc -fPIC -O3 -DUSE_MMAP -c -o infback.o infback.c
gcc -fPIC -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c
gcc -fPIC -O3 -DUSE_MMAP -c -o inffast.o inffast.c
gcc -shared -Wl,-soname,libz.so.1 -o libz.so.1.2.3 adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
rm -f libz.so libz.so.1
ln -s libz.so.1.2.3 libz.so
ln -s libz.so.1.2.3 libz.so.1
gcc -fPIC -O3 -DUSE_MMAP -o example example.o -L. libz.so.1.2.3
gcc -fPIC -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c
gcc -fPIC -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.so.1.2.3
cp zlib.h zconf.h /usr/local/include
chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h
cp libz.so.1.2.3 /usr/local/lib
cd /usr/local/lib; chmod 755 libz.so.1.2.3
cd /usr/local/lib; if test -f libz.so.1.2.3; then \
rm -f libz.so libz.so.1; \
ln -s libz.so.1.2.3 libz.so; \
ln -s libz.so.1.2.3 libz.so.1; \
(ldconfig || true) >/dev/null 2>&1; \
fi
cp zlib.3 /usr/local/share/man/man3
chmod 644 /usr/local/share/man/man3/zlib.3
[root@p1 custombuild]# ./build webalizer
File already exists: webalizer-2.01-10-src.tgz
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether ln -s works... yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether char is unsigned... no
checking for db_185.h... no
checking for errno.h... yes
checking for socket... no
checking for main in -lsocket... no
checking for sys/socket.h... yes
checking for main in -lnsl... no
checking for main in -l44bsd... no
checking for main in -lm... no
checking for main in -lz... no
configure: error: z library not found... please install zlib.
Trying to make webalizer...
make: *** No targets specified and no makefile found. Stop.

*** The make has failed, do you want to try to make again? (y,n): n

Ideas? Thanks a lot.

chatwizrd
11-06-2007, 05:29 PM
Try a

./build clean


then

./build webalizer

andren
11-06-2007, 05:32 PM
Try a
./build clean

then
./build webalizer
Same result. :confused:

chatwizrd
11-06-2007, 05:37 PM
What os are you using?