LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-04-2021, 12:39 AM   #1
Paczki
LQ Newbie
 
Registered: Dec 2020
Location: australia
Distribution: Debian 10 (for apache)
Posts: 4

Rep: Reputation: Disabled
How can I install PHP 3/4 on a Debian Server?


Hi,

Yes, I know PHP 3/4 is insecure. I will not be using it in a production environment. I am just interested in using old PHP scripts that don't work on modern versions, such as phpBB2.

I am running Debian 10, but I am willing to downgrade to an old Debian version if required (this is a testing VM with no personal data).

Any help will be appreciated.
 
Old 08-04-2021, 02:47 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
It looks like the last Debian providing php4 was 4.0 (etch). The packages are in Debian Archive. I don't think they could be installed as is on Debian 10. You can try to rebuild them from source, but that won't be easy:
Code:
The following packages have unmet dependencies:
Depends: apache-dev (>= 1.3.23) which is a virtual package and is not provided by any available package
Depends: apache2-prefork-dev (>= 2.0.53-3) which is a virtual package and is not provided by any available package
Depends: automake1.4 which is a virtual package and is not provided by any available package
Depends: firebird2-dev which is a virtual package and is not provided by any available package
Depends: libdb4.4-dev which is a virtual package and is not provided by any available package
Depends: libgcrypt11-dev which is a virtual package and is not provided by any available package
Depends: libgd2-xpm-dev (>= 2.0.28-3) which is a virtual package and is not provided by any available package
Depends: libmcal0-dev (>= 0.6) which is a virtual package and is not provided by any available package
Depends: libmysqlclient15-dev which is a virtual package and is not provided by any available package
 or
         libmysqlclient12-dev which is a virtual package and is not provided by any available package
Depends: libpng12-dev which is a virtual package and is not provided by any available package
Depends: libsablot0-dev (>= 0.96) which is a virtual package and is not provided by any available package
Depends: libt1-dev which is a virtual package and is not provided by any available package
Unable to resolve dependencies!  Giving up...
 
1 members found this post helpful.
Old 08-04-2021, 11:56 AM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,596

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by Paczki View Post
I am just interested in using old PHP scripts that don't work on modern versions, such as phpBB2.
It might be easier to get some version of PHP 5 working, which appears to require only a single config change to work with phpBB2...

Quote:
Originally Posted by https://www.phpbb.com/community/viewtopic.php?t=211009
phpBB 2.0.x and PHP 5

With the recent release of the official version of PHP 5, people and hosts may be switching to the latest PHP version. At this moment, the phpBB Team does not officially support running phpBB on PHP 5, as phpBB2.0.x was not written with PHP 5 in mind. However, many users have reported using it sucessfully on PHP 5 having made a configuration change in PHP to enable support for the deprecated HTTP_*_VARS arrays which is turned off by default in new PHP 5 installations. The relevant configuration option is register_long_arrays and it is decribed in the PHP Manual. phpBB 2.0.x makes use of these arrays in order to maintain backwards compatibility with PHP 3.x and early versions of PHP 4.x which is part of the original specification.
 
1 members found this post helpful.
  


Reply

Tags
debian 10, php4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to install PHP 7.x as PHP-FPM & FastCGI for ISPConfig 3.1 with apt on Debian 8 and 9 LXer Syndicated Linux News 0 07-11-2017 02:21 PM
LXer: How to install PHP 7 as PHP-FPM & FastCGI for ISPConfig 3 on Debian 8 (Jessie) LXer Syndicated Linux News 0 12-03-2015 04:22 PM
LXer: How to install PHP 7 (PHP-FPM & FastCGI) for ISPConfig 3 on Debian 8 (Jessie) LXer Syndicated Linux News 0 07-16-2015 03:11 PM
[SOLVED] Am trying to install packages like net-snmp, php-mysql, php-snmp, php but with errors Maj Linux - Newbie 1 07-26-2013 02:12 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration