Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Ampps and PHP 7

2


Threaded Mode | Print  

Ampps and PHP 7
khunglong
Group: Member
Post Group: Newbie
Posts: 3
Status:
Quote From : PubDirLtd January 27, 2016, 5:17 pm
I downloaded the latest 3.4 AMPPS archive and updated manually.

When I switch the PHP version to 7 Apache stops and will not run.

Is this a known issue?


I have the same problem, and now I can not back to PHP 5.6 or 5.5...
IP: --   

Ampps and PHP 7
PubDirLtd
Group: Member
Post Group: Working Newbie
Posts: 50
Status:

AMPPS 4.6.7 & PHP 5.6.9 on Win 7 Pro SP1 x64 4Gb server
Go to the control center and click on "Restore Default Configuration" for Apache and PHP too if necessary.
IP: --   

Ampps and PHP 7
khunglong
Group: Member
Post Group: Newbie
Posts: 3
Status:
Quote From : PubDirLtd January 27, 2016, 9:22 pm
Go to the control center and click on "Restore Default Configuration" for Apache and PHP too if necessary.


Restored but can not help. I uninstalled and reinstalled, but apache still can not be started with PHP 7
IP: --   

Ampps and PHP 7
duyvu1311
Group: Member
Post Group: Newbie
Posts: 17
Status:
Quote From : Rishi_P January 21, 2016, 9:03 am
Hi,

AMPPS 3.4 has been released with php 7.0.2.

If you want you can replace AMPPS apache, MySQL and php with your installation.

Example for updating PHP 5.5 version.

Open AMPPS Control Panel Change PHP version to PHP 5.5, stop Apache and MySQL.

Download PHP from windows.php.net

extract it and copy inside Ampps folder.

Rename Ampps PHP to OLD_PHP and rename your php folder to php.

Now copy following files from OLD_PHP to your php.

ioncube loader,
MSCVR110.dll
MSVCP110.dll,
MSVCR71.dll
php5apache2_4.dll
ext/php_mongo.dll

Open AMPPS Control panel --> PHP --> Click on Restore Default Configuration.


It is better if there is a full tutorial about how to replace three above components on the forum or on ampps.com.
IP: --   

Ampps and PHP 7
PubDirLtd
Group: Member
Post Group: Working Newbie
Posts: 50
Status:

AMPPS 4.6.7 & PHP 5.6.9 on Win 7 Pro SP1 x64 4Gb server
Thanks, I appreciate the how-to, but actually, what would be better, would be if AMPSS 3.4 actually worked as its supposed to with PHP 7.0, out of the box.
IP: --   

Ampps and PHP 7
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

PubDirLtd Open command prompt, run following and let me know the output.

cd \path\to\Ampps\apache\bin folder.

httpd
IP: --   

Ampps and PHP 7
PubDirLtd
Group: Member
Post Group: Working Newbie
Posts: 50
Status:

AMPPS 4.6.7 & PHP 5.6.9 on Win 7 Pro SP1 x64 4Gb server
When I run httpd [try to start Apache] I see this ...

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>cd C:\Program Files (x86)\Ampps\apache\bin

C:\Program Files (x86)\Ampps\apache\bin>httpd
AH00112: Warning: DocumentRoot [C:/Program Files (x86)/Ampps/www/dogaholics.lond
on] does not exist
AH00112: Warning: DocumentRoot [C:/Program Files (x86)/Ampps/www/dogaholics-lond
o.dev] does not exist
AH00112: Warning: DocumentRoot [C:/Program Files (x86)/Ampps/www/petpal.dev] doe
s not exist
AH00112: Warning: DocumentRoot [C:/Program Files (x86)/Ampps/www/qloudpress.dev]
does not exist
AH00112: Warning: DocumentRoot [C:/Program Files (x86)/Ampps/www/sweetnswag.dev]
does not exist
AH00112: Warning: DocumentRoot [C:/Program Files (x86)/Ampps/www/toddlers.dev] d
oes not exist
AH00112: Warning: DocumentRoot [C:/Program Files (x86)/Ampps/www/toddlers-la.dev
] does not exist
AH00112: Warning: DocumentRoot [C:/Program Files (x86)/Ampps/www/wpexpert.suppor
t] does not exist
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : AH00072: make_sock: could not bind to address [::]:80
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : AH00072: make_sock: could not bind to address 0.0.0.0:
80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

C:\Program Files (x86)\Ampps\apache\bin>
IP: --   

Ampps and PHP 7
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

Open command prompt.

TASKKILL /F /IM httpd.exe

Also turn off skype if it is running.

Now restart AMPPS Apache.
IP: --   

Ampps and PHP 7
PubDirLtd
Group: Member
Post Group: Working Newbie
Posts: 50
Status:

AMPPS 4.6.7 & PHP 5.6.9 on Win 7 Pro SP1 x64 4Gb server
OK, that's great thanks.

With your help and after some problems getting mySQL to run I managed to get it all up and running on PHP 7 now.
IP: --   

Ampps and PHP 7
PubDirLtd
Group: Member
Post Group: Working Newbie
Posts: 50
Status:

AMPPS 4.6.7 & PHP 5.6.9 on Win 7 Pro SP1 x64 4Gb server
Oops! I spoke to soon.

Although Apache and mySQL are now running under PHP 7, it seems AMPPS Local Web, AMPPS Home, and AMPPS Admin won't. 

When I try to access them I just get this...

A 50X error occurred

Sorry, the page you are looking for is currently unavailable.
Please try again later.


And when I look in the Apache error log I see this...

[Wed Feb 03 12:48:23.229924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] End of script output before headers: index.php
[Wed Feb 03 12:48:23.229924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] AH01215: <b>Security Alert!</b> The PHP CGI cannot be accessed directly.: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:48:23.229924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] AH01215: : C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:48:23.230924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] AH01215: <p>This PHP CGI binary was compiled with force-cgi-redirect enabled.  This: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:48:23.230924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] AH01215: means that a page will only be served up if the REDIRECT_STATUS CGI variable is: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:48:23.230924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] AH01215: set, e.g. via an Apache Action directive.</p>: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:48:23.230924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] AH01215: <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:48:23.230924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] AH01215: <p>For more information about changing this behaviour or re-enabling this webserver,: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:48:23.231924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] AH01215: consult the installation file that came with this distribution, or visit : C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:48:23.231924 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49460] AH01215: <a href="http://php.net/install.windows">the manual page</a>.</p>: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:53:37.782915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] End of script output before headers: index.php
[Wed Feb 03 12:53:37.782915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] AH01215: <b>Security Alert!</b> The PHP CGI cannot be accessed directly.: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:53:37.782915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] AH01215: : C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:53:37.782915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] AH01215: <p>This PHP CGI binary was compiled with force-cgi-redirect enabled.  This: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:53:37.782915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] AH01215: means that a page will only be served up if the REDIRECT_STATUS CGI variable is: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:53:37.782915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] AH01215: set, e.g. via an Apache Action directive.</p>: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:53:37.783915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] AH01215: <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:53:37.783915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] AH01215: <p>For more information about changing this behaviour or re-enabling this webserver,: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:53:37.783915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] AH01215: consult the installation file that came with this distribution, or visit : C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php
[Wed Feb 03 12:53:37.783915 2016] [cgi:error] [pid 2260:tid 1096] [client ::1:49479] AH01215: <a href="http://php.net/install.windows">the manual page</a>.</p>: C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/index.php

What's going on here?

Terence.
IP: --   

Ampps and PHP 7
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

Go to C:/Program Files (x86)/Ampps/ampps/softaculous/enduser/ folder and open index.php

In first line only change "php" to "php-5.5" and save it(If you have selected PHP-7.0).

Now Restart Ampps.
IP: --   

Ampps and PHP 7
jujhar
Group: Member
Post Group: Newbie
Posts: 1
Status:
Hi,

So I installed the latest Ampps and it ran fine along with phpmyadmin however when I switch to php7 using the change php version button from the ui and open phpmyadmin I get this error:

phpMyAdmin - Error:
The mbstring extension is missing. Please check your PHP configuration.

Otherwise apache, localhost, and php7 is working. I am using OS X.
Please help me.
IP: --   

Ampps and PHP 7
styx2206
Group: Member
Post Group: Newbie
Posts: 1
Status:
I went through all the steps here with not luck getting apache with PHP7 to run. I'm on a mac (10.11.3).


I had to go into

/Applications/AMPPS/apache/conf/httpd.conf and change line 154 from

LoadModule php5_module /Applications/AMPPS/php/libphp5.so

to:

LoadModule php7_module /Applications/AMPPS/php/libphp7.so

Started right up and all the admin pages load.
IP: --   

Ampps and PHP 7
Decist
Group: Member
Post Group: Newbie
Posts: 2
Status:
Maan. i've been using ampps for a year now. With this 3.4 update, my thing is broken. 50x error and there's nothing that can fix it at the moment. I've tried everything!
IP: --   

Ampps and PHP 7
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi

We have fixed this issue in Ampps 3.5
IP: --   

« Previous    Next »

Threaded Mode | Print  

2


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 19, 2024, 8:31 am.

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