gonz0

Member
Jul 2, 2004
19
0
151
I wanted to downgrade PHP from 5 to 4 ... via WHM and easyapache it is impossible . always shows me PHP 5.1.4 installed ...

I am nto familiar with Linux/Compilers but when I try to get info via HTML files it is working correctly. But when I want to put into browser PHP file - it is not porcessed - just system wnats to save it as a file... where is the clue ?
 

avijit

Well-Known Member
Jul 26, 2004
116
0
166
India
Try this:

rm -rf /home/cpapachebuild/

and then try the /scripts/easyapache
 

gonz0

Member
Jul 2, 2004
19
0
151
no luck :(

getting this always same message:

./configure [@php-4.3.11]...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib).... Done

make [@php-4.3.11]...(-j 1 clean)...Done
make [@php-4.3.11]...(-j 1)...Done
make [@php-4.3.11]...(install)...Done
/etc/rc.d/init.d/httpd start: httpd started

./configure [@php-4.3.11]...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --with-curl --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib).... Done


make [@php-4.3.11]...(-j 1 clean)...Done
make [@php-4.3.11]...(-j 1)...Done
make [@php-4.3.11]...(install)...Done
initfpsuexec: using apache 1.x support
PHP version file has been updated to 5.1.4
 

avijit

Well-Known Member
Jul 26, 2004
116
0
166
India
does php -v and the phpinfo() tell the same to you ?
 

gonz0

Member
Jul 2, 2004
19
0
151
php -v

PHP 5.1.4 (cli) (built: May 8 2006 08:41:41)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
Can;t make phpinfo(); because application/x-httpd-php is not known and browser opens window to download php file.

EDIt: I have edited .htaccess because it was full of stuuf - it is empty now and browser shows me INTERNAL SERVER ERROR.
 
Last edited:

elix

Well-Known Member
Jan 18, 2005
67
0
156
"INTERNAL SERVER ERROR" - that usually means there's an error in .htaccess, are you sure it's 100% blank?

Also in /scripts/easyapache try this option:

Failsafe mode (Resets apache config to default, USE ONLY AS A LAST RESORT)
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
gonz0 said:
I wanted to downgrade PHP from 5 to 4 ... via WHM and easyapache it is impossible . always shows me PHP 5.1.4 installed ...
Have you tried compiling Php manually? cd /home/cpapachebuild/buildapache/ and see if you have php-4.4.x.
 

gonz0

Member
Jul 2, 2004
19
0
151
Yeap - I had to compile it manually. Not all libraries and modules were added. But second compilation helped :)

Seems to be working now :D