PDA

View Full Version : Question/Doubt



SeLLeRoNe
11-24-2008, 01:31 PM
Hi, if i upgrade php4 to php5 from custombuild with

php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no

have i the possibility to return to php4 with

php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=no

is that right?

Another doubt, for php5 i need apache2?

Thanks for support

smtalk
11-24-2008, 01:33 PM
Hi, if i upgrade php4 to php5 from custombuild with

php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no

have i the possibility to return to php4 with

php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=no

is that right?

Yes, it is right.



Another doubt, for php5 i need apache2?

No, you can use PHP5 with Apache 1.3 if you want.


Thanks for support
You're welcome.

SeLLeRoNe
11-24-2008, 01:40 PM
Thanks man, your are the best like always :)

Another question, what the main difference from apache 1.3 and apache2? i mean, should this upgrade create some problem to customers?

thanks

nobaloney
11-24-2008, 04:28 PM
I'll let anyone with more information or knowledge add to this, but here are some differences I know of:

1) Apache 2.x works better on multi-core and multi-threaded processors.

2) Apache 2.x has more modules built in.

Anyone else?

Jeff

SeLLeRoNe
11-24-2008, 05:11 PM
so i can upgrade without risk that customers websites go on errors?

Nice to know ^^

smtalk
11-25-2008, 02:09 AM
Yes, there is no risk at all (unless it's not installed correctly).

SeLLeRoNe
11-25-2008, 03:26 PM
and what is best? 2.0 or 2.2?

smtalk
11-25-2008, 03:31 PM
2.2 (http://httpd.apache.org/docs/2.2/new_features_2_2.html).

SeLLeRoNe
11-25-2008, 04:38 PM
ive got this error

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

ive to manually remove this line?

php_admin_flag engine ON

for each user?

thanks

SeLLeRoNe
11-25-2008, 04:44 PM
ive found here on forum how to solve, thanks anyway :)

SeLLeRoNe
11-25-2008, 05:04 PM
new problem, i have this on virtual_host.conf

<VirtualHost |IP|:80>
ServerName webmail.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot /var/www/html/webmail
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log
</VirtualHost>
<VirtualHost |IP|:80>
ServerName phpmyadmin.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot /var/www/html/phpMyAdmin
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log
</VirtualHost>
<VirtualHost |IP|:80>
ServerName directadmin.|DOMAIN|
ProxyRequests Off
ProxyPass / http://localhost:2222/
ProxyPassReverse / http://localhost:2222/
</VirtualHost>


but now those templates are not working, do u know how i can fix?

smtalk
11-26-2008, 08:26 AM
http://help.directadmin.com/item.php?id=2, make sure it's starts with virtual_host2 and not just virtual_host, because virtual_host (without 2) is used for Apache 1.3.

SeLLeRoNe
11-26-2008, 10:34 AM
oh damn that was the problem, the "2" :)

thanks

SeLLeRoNe
11-27-2008, 07:40 AM
ok now.. something wrong... with apache 2.2 and apache 2.0 (installed and tested both) box load go up to 12.00+... installing back apache 1.3 load is 0.70...

how is that possible and how i should check what wrong?

thanks

SeLLeRoNe
11-27-2008, 01:50 PM
sorry, my fault this time, a customer was upgrading his phpbb and that script took much resources cause him database is big.

all normal, reinstalled apache 2.2 and everything working fine

regards