Easy Apache finding out previous PHP version

ahoychris

Member
Jul 10, 2013
9
0
1
cPanel Access Level
Root Administrator
This morning I installed a new PHP module with EasyApache. Previously when using Easy Apache I have used it right after setting up a server so I selected the default versions of Apache and PHP.

However this time it appears the default version of PHP has changed, now being set to 3.4. This has caused some PHP warnings to pop on on some of my sites, while I have them turned off I want to go back to the last version of PHP that was being run. Problem is I'm not sure if it was 3.2 or 3.3.

Problem is I@m not sure which version it was. Is there a way to check what the last version was? I saw a message saying a backup has been made but I am unable to find it.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

You can browse to the following directory:

Code:
/usr/local/cpanel/logs/easy/apache
You will find older EasyApache build logs here. You can view the one with the date of your previous build and look at the section where PHP was built to see which version was used.

Thank you.
 

ahoychris

Member
Jul 10, 2013
9
0
1
cPanel Access Level
Root Administrator
Thanks, I've been looking through the files in the folder, but I don't seem be be bale to find anything in there about php. Just a lot of info about the server and my machine doing the build.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
The "env" files will not be of much help to you. You will want to review the actual build logs. EX:

Code:
/usr/local/cpanel/logs/easy/apache/build.1380730805
If you grep the build log for a term such as "PHP", you will get output that should be helpful.

Thank you.
 

ahoychris

Member
Jul 10, 2013
9
0
1
cPanel Access Level
Root Administrator
Thank you, I managed to find some useful information. Unfortunately I only have non .env fields from today, it appears I have no logs for my earlier uses of Easy apache.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
If downgrading your PHP is necessary, you may simply want to go with PHP 5.3. PHP 5.2 is EOL and will be removed from EasyApache in the near future.

Thank you.