Discussion about CustomBuild

regarding the iconv library...

Customscript will download v. 1.11, but try to build 1.12., just download 1.12.

At least this JUST happened to me, and my solution worked.

I found your post trying to solve the problem through the forums. I hope this will help you too.
 
when i compile php 5 as cgi,

after it finishes and try to restart httpd, it gives me some suPHPEngine command not found.

anyone know why this is happening?

i did ./build clean and ./build update as suggested in some thread but i still get this.
 
hey smtalk, thanks, i'll be trying that tonight.

also do you happen to know the performance gain/loss by switching from mod_php to fast cgi?

And I currently have a Quad Core and want to take advantage as much as I can, and I heard about mpm worker.

To use mpm-worker, do i have to have this line in the php configure line?
--enable-experimental-zts ?

Thanks.

I he
 
permissions

Hi smtalk,

Do you know if there is something changed on the 1.2.tar.gz file??
I've just download the 1.2 file, unpack it, and ./build update didn't work.

You have to give the right permission to build, and it work.
In earlier version of 1.1 and 1.2 we didn't have to....
 
MySQL version 5.1 and php/MySQL library 4.1.x will I have any problems?

If you look at http://epsilon.vohosting.com/phpinfo.php
you will see that the php/MySQL library version I am using is 4.1.21.

I unsuccessfully tried to do the upgrade of the MySQL/php library, so
my question is: Do you think that I may have any problem using it with
MySQL 5.1?
 
Looks like you need to get php-4.4.8-mail-header.patch put into place on the file server. I modified a version of 4.4.7 to work just fine. Just change the 4.4.7 instances to 4.4.8 and the patch applies successfully.

BigWil
 
2.2.6 and php 4 vs php 5

I updated my old freebsd install (5.3) from apache 1.3.4 and php 4.4.x. Now the 2.2.6 apache work fine with the php4, but the php5 not work as cgi. i try the run manualy the ./build php5-cgi but nothing help.

Any idea?
 
I'm running suphp with php5-cgi. (using CGI/FastCGI) and Apache 2.2

However I'm finding that the performance isn't there coming from mod_php4/Apache 1.3.

Whilst running under the owners UID is great, does anyone know of another solution that seems to scale better. I've noticed quite a lag in response and higher loads since switching.

I'm wondering if anyone has noticed the issue.

Is it a matter of moving back to Apache 1.3?
 
I updated my old freebsd install (5.3) from apache 1.3.4 and php 4.4.x. Now the 2.2.6 apache work fine with the php4, but the php5 not work as cgi. i try the run manualy the ./build php5-cgi but nothing help.

Any idea?

"./build php5-cgi" just updates you php5 (CGI) version, it doesn't touch any configuration files. You need to use "./build php n".
 
"./build php5-cgi" just updates you php5 (CGI) version, it doesn't touch any configuration files. You need to use "./build php n".


Thanks. this is solve the problem

Now i have only one problem remaining. PHP5 running well in fcgi mode, but suPHP has problems. Becose the ftp szerver upload all file user:apache owner the su php simply not allow to run any uploaded php file.

Is there some configuration option somewhere for this. or i need to reconfigure the ftp server and re - chown all of the user files / direcotrys.
 
If they use the file-manager... you soon be able to use this:

http://www.directadmin.com/features.php?id=847

In addition, take a look at the proftpd config page.
Permissions.. you can resolve with: http://www.proftpd.org/docs/howto/Umask.html

http://www.proftpd.org/docs/directives/linked/config_ref_UserOwner.html
http://www.proftpd.org/docs/directives/linked/config_ref_GroupOwner.html

You will find you need to set the perms to 644( files) and directories to (755) as a minimum restriction. This will then allow you to run suPHP successfully.
 
I'm running suphp with php5-cgi. (using CGI/FastCGI) and Apache 2.2

However I'm finding that the performance isn't there coming from mod_php4/Apache 1.3.

Whilst running under the owners UID is great, does anyone know of another solution that seems to scale better. I've noticed quite a lag in response and higher loads since switching.

I'm wondering if anyone has noticed the issue.

Is it a matter of moving back to Apache 1.3?

Try http://help.directadmin.com/item.php?id=176.
 
Hi smtalk,

It was more a question in relation to the performance of FastCGI vs mod_php.

I'm happy with the suPHP per say, just a little concerned of the additional load the cgi method appears to place on the system.
 
owner mode should use quite less resources than paranoid. That's why I gave you that link.
 
Thanks smtalk.

In relation to fastcgi.... I'm a little confused. I was under the impression you needed to run a fastcgi server... much like what's documented here.

However, I've searched the system but cannot find the suexec-fcgi binary. :confused:

Code:
find / -name suexec-fcgi -ls
returns nothing.

My options file looks like such:

Code:
#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=no
php5_cgi=yes
zend=yes
...
#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

Am I missing something there? :confused:

Whilst I can see I'm compiling PHP in fastcgi mode... I am under the impression that Apache 2.2 also needs to have the mod_fastcgi module compiled in.

I'm only seeing a mod_cgi.c module. As such I'm thinking this is running in cgi mode and not mod_fastcgi.

Would this be correct?!
 
Cutting to the point... shouldn't Apache be compiled with the '--enable-fastcgi' option?

I also took a look at : http://www.fastcgi.com/docs/faq.html#PHP

And I can see no such reference in the way we've configured the Apache (in the httpd.conf or conf/extras/*.conf files).

Can someone clarify this for me?
 
Last edited:
I'm getting an error with version 1.2, I've tried "./build clean" and even re-downloading/uncompressing to no avail. When I try to build just apache using this command.

./build apache

I get this error...

Another instance of custombild is running, please delete the .custombuild file if you want to use custombuild.

That file does indeed show up, but if I delete it and try to run custombuild again I just get the same error and the file is recreated. However if I use "./build all" I get a different error...

Code:
Found /usr/local/directadmin/custombuild/libxslt-1.1.22.tar.gz
Extracting ...

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
Done.
./build: line 3524: cd: libxslt-1.1.22: No such file or directory
Configuring libxslt-1.1.22...
./build: line 3526: ./configure: is a directory
Done. Making libxslt-1.1.22...
Trying to make libxslt...
make: *** No targets specified and no makefile found.  Stop.

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

...

Additionally, you get a 404 error if you try to install MySQL 5.1.
 
Last edited:
I'm getting an error with version 1.2, I've tried "./build clean" and even re-downloading/uncompressing to no avail. When I try to build just apache using this command.

./build apache

I get this error...

Another instance of custombild is running, please delete the .custombuild file if you want to use custombuild.

That file does indeed show up, but if I delete it and try to run custombuild again I just get the same error and the file is recreated. However if I use "./build all" I get a different error...

Code:
Found /usr/local/directadmin/custombuild/libxslt-1.1.22.tar.gz
Extracting ...

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
Done.
./build: line 3524: cd: libxslt-1.1.22: No such file or directory
Configuring libxslt-1.1.22...
./build: line 3526: ./configure: is a directory
Done. Making libxslt-1.1.22...
Trying to make libxslt...
make: *** No targets specified and no makefile found.  Stop.

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

...

Additionally, you get a 404 error if you try to install MySQL 5.1.

I have the same issue with the .custombuild file. Mine stops at doPCRE. I remove the .custombuild file but it just stops again at the same place.

Doing ./build all seems to work.
 
Back
Top