#1  
Old 29th August 2005, 16:46
ProTrooper ProTrooper is offline
Member
 
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Installing PHP4

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
Reply With Quote
Sponsored Links
  #2  
Old 29th August 2005, 16:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Quote:
Originally Posted by ProTrooper
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.

Quote:
Originally Posted by ProTrooper
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 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.
Reply With Quote
  #3  
Old 29th August 2005, 16:57
ProTrooper ProTrooper is offline
Member
 
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay, but do you know what dependencies PHP4 needs?
Reply With Quote
  #4  
Old 29th August 2005, 17:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Quote:
Originally Posted by ProTrooper
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.
Reply With Quote
  #5  
Old 29th August 2005, 17:38
ProTrooper ProTrooper is offline
Member
 
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #6  
Old 29th August 2005, 18:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Quote:
Originally Posted by ProTrooper
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.
Reply With Quote
  #7  
Old 29th August 2005, 18:25
ProTrooper ProTrooper is offline
Member
 
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That's what I thought. I got the binaries from PHP.net. I see nothing else on the site though...
Reply With Quote
  #8  
Old 29th August 2005, 18:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Quote:
Originally Posted by ProTrooper
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.
Reply With Quote
  #9  
Old 29th August 2005, 18:32
ProTrooper ProTrooper is offline
Member
 
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh okay, I'll try.
Reply With Quote
  #10  
Old 29th August 2005, 18:48
ProTrooper ProTrooper is offline
Member
 
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Okay I installed it and I think they are all combined. make then make install and I saw this:
Code:
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:

Code:
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?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems installing ISPConfig Debian Sarge hschel Server Operation 4 22nd August 2005 19:46
Getting problems when installing corn_planter Installation/Configuration 12 22nd August 2005 01:41
Installing on a x86_64 based system? hkaiser Installation/Configuration 23 20th August 2005 20:51
Installing software using wine floppywhopper Suggest HOWTO 0 17th May 2005 12:38
Installing Perl modules fernando Installation/Configuration 1 10th May 2005 20:16


All times are GMT +2. The time now is 02:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.