Answer the question
In order to leave comments, you need to log in
How to properly compile and connect php 5.3 on Ubuntu 16.04?
I have Ubuntu 16.04 with apache 2.4 and php7.0 installed. You need to run the old site written in php5.3. Downloaded php5.3.29 sources from https://secure.php.net/get/php-5.3.29.tar.gz/from/... Executed ./configure
'./configure' '--prefix=/usr/share/php53' '--datadir=/usr/share/php53' '--mandir=/usr/share/man' '--bindir=/usr/bin /php53' '--includedir=/usr/include/php53' '--sysconfdir=/etc/php53/apache2' '--with-config-file-path=/etc/php53/apache2' '--with- config-file-scan-dir=/etc/php53/conf.d' '--enable-bcmath' '--with-curl=shared,/usr' '--with-mcrypt=shared,/usr' '- -enable-cli' '--with-gd' '--with-mysql' '--enable-libxml' '--enable-session' '--enable-xml' '--enable-simplexml' '-- enable-filter' '--enable-inline-optimization' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-bz2' '--with- curl' '--enable-exif' '--enable-soap' '--with-pic' '--disable-rpath' '--disable-static' '--enable-shared' '--with-gnu-ld' '--enable-mbstring'
. Ran make & make install. There were no errors, but when I started looking for how to connect to Apache, I needed to write the path to libphp5.so in the configs, in the example the file was in the /usr/lib/apache2/modules/ folder, this file was not created for me there. I searched for it in different folders from ./configure, through the find command all over the computer, but did not find it. What did I do wrong? The variant with phpfarm did not work out there are errors at the ./configure stage that I tried to solve, but if you fix one, the other falls or the compiler does not want to do without it.
Answer the question
In order to leave comments, you need to log in
In the end, I had to install with a PPA, thanks for the advice Ulrich . This option suited me: https://launchpad.net/~sergey-dryabzhinsky/+archiv... . Everything worked!
make installrunning is not the best idea. Also, it's not a good idea to use PHP 5.3, because this release is no longer supported.
I will subscribe to the answer of Nazar Mokrinsky and add that it will be easier to correct / update the site if you put an old puff on a new car.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question