Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Cannot change php version



Threaded Mode | Print  

 Cannot change php version (10 Replies, Read 17676 times)
econnok
Group: Member
Post Group: Newbie
Posts: 1
Status:
Hi, I'm using AMPPS 3.5 on Windows 10.

I wish to change my PHP version from 5.5 (the default) to 5.3, but clicking the 'Change PHP Version' button on the AMPPS app does nothing - simply locks up and nothing loads.

Thanks for any assistance.
IP: --   

Cannot change php version
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

Go to Ampps folder and tell us how many php folders are present there.
IP: --   

Cannot change php version
edrubinsky@gmail.com
Group: Member
Post Group: Newbie
Posts: 3
Status:
I'm having the same problem. After trying to switch PHP versions Apache won't start, even after rebooting. This is on a Windows 7 Pro 32 bit install. The only way  to recover is to reboot, un-install Ampps, delete the C:\Program Files\Ampps directory tree, reboot and re-install.

I have the following PHP folders.

  php
  php-5.3
  php-5.4
  php-5.6
  php7-0

IP: --   

Cannot change php version
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

Folder "program files" in windows is usually restrict write for non-admin accounts, so try installing  Ampps in different directory or different drive or set write rights for Ampps folder.
IP: --   

Cannot change php version
edrubinsky@gmail.com
Group: Member
Post Group: Newbie
Posts: 3
Status:
Duh! That did the trick. As a suggestion, perhaps the installer should default to the root directory, avoiding the problem.

Thanks, Ed
IP: --   

Cannot change php version
pisisler
Group: Member
Post Group: Newbie
Posts: 6
Status:
I have the same exact problem.

My Ampps installation is on a local partition like; E\Server
In this directory I have php folders like;

php
php-5.3
php-5.4
php-5.5
php-5.6
php-7.0

I checked my E:\Server directory permissions, it's full writable by everyone. Nevertheless I try starting the admin panel as administrator, but it's no use. Changing PHP version is effectless. It always falls back to default PHP 5.5

More interestingly, command line php -i tells me that I have PDO drivers of "firebird, mysql, sqlite" but phpinfo() on the browsers tell me that I have PDO drivers of "mysql, sqlite", hence I can't use Firebird. Adding pdo_firebird.dll to the corresponding php.ini of php-5.5 directory manually is useless too.

This is an upgrade installation. I was using Ampps 2.5 with the same configuration but after upgrading to Ampps 3.0, my Firebird code broke.

I am looking for a solution urgently.
IP: --   

Cannot change php version
edrubinsky@gmail.com
Group: Member
Post Group: Newbie
Posts: 3
Status:
FWIW, this is how I resolved the problem.

1. Uninstalled Ampps.
2. Booted into Safe Mode and deleted the C:\Program Files\Ampps directory structure from a command prompt (faster.)
3. Restarted Windows and did a fresh  install, installing it to C:\Ampps.

Not sure about Ampps, but I've had problems in the past trying to upgrade from one major release level to another - especially in Windows.
IP: --   

Cannot change php version
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Quote
I have the same exact problem.
My Ampps installation is on a local partition like; E\Server
In this directory I have php folders like;
php
php-5.3
php-5.4
php-5.5
php-5.6
php-7.0
I checked my E:\Server directory permissions, it's full writable by
everyone. Nevertheless I try starting the admin panel as administrator,
but it's no use. Changing PHP version is effectless. It always falls
back to default PHP 5.5
This is an upgrade installation. I was using Ampps 2.5 with the same
configuration but after upgrading to Ampps 3.0, my Firebird code broke.
I am looking for a solution urgently.


Before updating Ampps, did you changed PHP version to 5.5 ?

Try this:

First Check which PHP version you are using.

Open command prompt go to php folder.

cd E:\server\php

php -v

Above command will tell you the php version.

Delete that php-(version) folder from server directory.
eg: if output is php-5.5 then delete php-5.5 folder from server.

Now start AMPPS and change PHP version let me know if you are still facing the issue.

Quote
More interestingly, command line php -i tells me that I have PDO
drivers of "firebird, mysql, sqlite" but phpinfo() on the browsers tell
me that I have PDO drivers of "mysql, sqlite", hence I can't use
Firebird. Adding pdo_firebird.dll to the corresponding php.ini of
php-5.5 directory manually is useless too.


Which PHP version you were using before update ?

Did you enable firebird extension from AMPPS Control panel ?
If yes then go to E:\server\apache\ folder and open php.ini file.

search for following line.

;extension=php_pdo_firebird.dll

Remove semicolon and save it. Restart Ampps.
IP: --   

Cannot change php version
pisisler
Group: Member
Post Group: Newbie
Posts: 6
Status:
Thanks Rishi_P,

I had to uninstall Ampps cleanly and re-install back, now I can change PHP version; but still cannot get the Firebird extension to work.

Everything was fine while I was using Ampps 2.5. Now even a clean install of Ampps 3.5 doesn't work for Firebird.

Here is the details of the new problem;
http://www.softaculous.com/board/index.php?tid=9313
IP: --   

Cannot change php version
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

Open support ticket here:
https://www.softaculous.com/support/
IP: --   

Cannot change php version
SameedAS
Group: Member
Post Group: Newbie
Posts: 2
Status:
Can anyone guide to install php version 5.4 in ampps 3.8

I have just two versions installed in ampps

php-5.6
php-7.1
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 2, 2024, 1:48 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.021