PDA

View Full Version : Installing PHP4


ProTrooper
29th August 2005, 17:46
Hello,
I am trying to install OSCommerce but it will not work on PHP5. Can I downgrade with ISPConfig installed and how can I go about doing so? I searched using yum and apt-get but both only had PHP5. Are there any repositories with PHP4?

Thanks,
James

till
29th August 2005, 17:55
Hello,
I am trying to install OSCommerce but it will not work on PHP5. Can I downgrade with ISPConfig installed and how can I go about doing so?

You should not get troble with ISPConfig because the configuration directives in the vhosts are equal for PHP4 and PHP5.

I searched using yum and apt-get but both only had PHP5. Are there any repositories with PHP4?

I dont know any, but this means not that there arent none :D Maybe you can ask in some forums or mailinglists specialized for your linux distro.

If you cant find any repositorys, you can uninstall PHP5 with apt or yum and try compile php4 manually.

ProTrooper
29th August 2005, 17:57
Okay, but do you know what dependencies PHP4 needs?

till
29th August 2005, 18:04
Okay, but do you know what dependencies PHP4 needs?

That depends on the modules you want to compile in. The major dependencies are fullfilled when you have successfully installed ISPConfig.

When you want to compile PHP4 with e.g. postgresql, it is a good idea to install the "-devel" package first, in this case the postgresql - devel package.

ProTrooper
29th August 2005, 18:38
Okay, I have PHP 4.4 binaries but that is all I can find. Where can I download php4-devel, cgi, gd, mysql, pear, etc.?

Thanks again for all the help.

till
29th August 2005, 19:10
Okay, I have PHP 4.4 binaries but that is all I can find. Where can I download php4-devel, cgi, gd, mysql, pear, etc.?

Thanks again for all the help.

Normally you get them from where you got the binaries. The pacakges must be compiled together to work correctly.

ProTrooper
29th August 2005, 19:25
That's what I thought. I got the binaries from PHP.net. I see nothing else on the site though...

till
29th August 2005, 19:31
That's what I thought. I got the binaries from PHP.net. I see nothing else on the site though...

Maybe it is all compiled in statically.

ProTrooper
29th August 2005, 19:32
Oh okay, I'll try.

ProTrooper
29th August 2005, 19:48
Okay I installed it and I think they are all combined. make then make install and I saw this:

Installing PHP SAPI module: cgi
Installing PHP CGI into: /usr/local/bin/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR - installed: 1.3.5
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] HTML_Template_IT- installed: 1.1
[PEAR] Net_UserAgent_Detect- installed: 2.0.1
[PEAR] XML_RPC - installed: 1.3.1
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/man/man1/
page: phpize.1
page: php-config.1


However... the php info page returns version 5.0.4 still and the script I am trying to run will not work. I tried make uninstall and it returns:


make: *** No rule to make target `uninstall'. Stop.


yum remove php finds no matches. I know this is now a new problem, but do you have any suggestions?

falko
29th August 2005, 21:20
Do you have the correct PHP module loaded into your Apache? The one for PHP4, not for PHP5?