N
N
Nikita Kit2016-10-09 21:39:11
linux
Nikita Kit, 2016-10-09 21:39:11

How to change php version in apache2 on local ubuntu webserver?

Hello. I ran into such a problem - I need to transfer the site to a LAN to work with it, I installed php 5.6 on Apache, and on the php 5.3 server, after the transfer I got such a shield
03b1004cf36b406ab27ea426739c89f6.png
. At first I thought I copied the files crookedly - I downloaded them via ftp. I created an archive on the server and downloaded it via ssh. Filled in the Apache directory - the same thing. Apparently the problem is in the version of php. You need to switch to 5.3.
I googled - all the vars led to phpbrew, but either I'm stupid, or the skis don't go - I download curl according to the manual, change the rights, copy to /usr/bin/ and phpbrew init. Silent. I edit .bashrc according to the manual. Silent. phpbrew known - silent. phpbrew variants - silent.
I suppose there is an easier option - download the package and change one of the apache configs. But I don't know where to change. Tell me, experienced admins. I am a simple coder, I was harnessed to this crap to make a mobile version on a finished site with a CMS without any information on it, I don’t even know where the markup components are ... But this is a story about something else.
Help me change the php version, please. Thanks everyone for the replies.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question