Wampserver not loading php
Posted by: Andrew Chapman (---.dynamic.dsl.as9105.com)
Date: October 12, 2017 10:25AM

I have installed wampserver 64bit 3.1.0 successfully on 2 static PC's both running windows 10 pro 64bit, and a cloud server running windows server 2016 64 bit.

However I have the same issue from all three installations, wampserver only loads 2 of the 3 services, the php service fails with this line in the error report

[12-Oct-2017 07:50:39 UTC] PHP Fatal error: Unknown: Failed opening required '-' (include_path='.;C:\php\pear') in Unknown on line 0


I have wampserver using 7.1.9 and I have made the correction from the forums

zend_extension="c:/wamp/bin/php/php7.1.9/zend_ext/php_xdebug-2.5.5-7.0-vc14.dll"
- by
zend_extension="c:/wamp/bin/php/php7.1.9/zend_ext/php_xdebug-2.5.5-7.1-vc14.dll"


I have excluded any interference from my security software.


All my OS are fully patched and upto date, along with all drivers. All MSVC have been installed prior to the wampserver installation.



I have discovered another error:

State of services:

The service 'wampapache64' is NOT started
EXIT error code:1066
Help message for error code 1066 is:
The service has returned a service-specific error code.



The service 'wampmysqld64' is started

The service 'wampmariadb64' is started

The service 'dnscache' is started

WampServer (Apache, PHP and MySQL) will not function properly if any service
'wampapache64'
'wampmysqld64'
'wampmariadb64'
'dnscache'
is not started.



# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost




*** Checking the DNS search order ***

Values of registry keys for
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider
are in correct order


Press ENTER to continue...




Compiler Visual C++ versions used:

PHP 5.6.31 Compiler => MSVC11 (Visual C++ 2012)
Architecture => x64
is compatible with Apache 2.4.27

PHP 7.0.23 Compiler => MSVC14 (Visual C++ 2015)
Architecture => x64
is compatible with Apache 2.4.27

PHP 7.1.9 Compiler => MSVC14 (Visual C++ 2015)
Architecture => x64
is compatible with Apache 2.4.27




MySQL Ver 5.7.19 for Win64 on x86_64 (MySQL Community Server (GPL))


MariaDB Ver 10.2.8-MariaDB for Win64 on AMD64 (mariadb.org binary distribution)


Apache 2.4.27 Apache Lounge VC15 Server built: Jul 7 2017 12:46:00
Architecture: 64-bit





VirtualHost configuration:

Virtual Host: localhost
*** WARNING: The name of the default server must be 'localhost'

*** WARNING: There is no default server


================== COMPLETE RESULT ==================
VirtualHost configuration:
*:80 localhost (C:/wamp64/bin/apache/apache2.4.27/conf/extra/httpd-vhosts.conf:3)





Apache loaded modules
Core:
core_module
win32_module
mpm_winnt_module
http_module
so_module

Shared modules:
access_compat_module
actions_module
alias_module
allowmethods_module
asis_module
auth_basic_module
auth_digest_module
authn_core_module
authn_file_module
authz_core_module
authz_groupfile_module
authz_host_module
authz_user_module
autoindex_module
cache_module
cache_disk_module
cgi_module
dir_module
env_module
file_cache_module
include_module
isapi_module
log_config_module
mime_module
negotiation_module
rewrite_module
setenvif_module
userdir_module
vhost_alias_module
php7_module





My knowledge of programming and coding is very limited as I suffer short term memory loss. Any assistance would be appreciated.



Edited 3 time(s). Last edit at 10/12/2017 10:42AM by Andrew Chapman.

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: RiggsFolly (Moderator)
Date: October 12, 2017 12:03PM

Hi

Have you checked the windows event viewer for more information about Apache not starting?

---------------------------------------------------------------------------------------------
(Windows 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> < 7.2/PHP 7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.7.5> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Otomatic (Moderator)
Date: October 12, 2017 12:51PM

Hi,

> [12-Oct-2017 07:50:39 UTC] PHP Fatal error:
> Unknown: Failed opening required '-' (include_path='.;C:\php\pear') in Unknown on line 0
I think it could be:
- Another php.ini file (or another php installation)
See point 06 of TROUBLESHOOTING TIPS
- PHP_INI_PATH environment variable
- A registry key for php.ini. See : [php.net]

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Andrew Chapman (---.dynamic.dsl.as9105.com)
Date: October 12, 2017 02:35PM

Hi, thanks for pointer,

C:\>dir /s php.ini
Volume in drive C has no label.
Volume Serial Number is 6C4E-5659

Directory of C:\wamp64\bin\apache\apache2.4.27\bin

12/10/2017 09:38 <SYMLINK> php.ini [c:/wamp64/bin/php/php7.1.9/phpForApache.ini]
1 File(s) 0 bytes

Directory of C:\wamp64\bin\php\php5.6.31

12/10/2017 00:35 76,280 php.ini
1 File(s) 76,280 bytes

Directory of C:\wamp64\bin\php\php7.0.23

12/10/2017 00:35 73,134 php.ini
1 File(s) 73,134 bytes

Directory of C:\wamp64\bin\php\php7.1.9

12/10/2017 00:35 73,604 php.ini
1 File(s) 73,604 bytes


From my understanding isn't 2 versions of php required by wampserver? Or should I delete the other folders of older versions?

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Andrew Chapman (---.dynamic.dsl.as9105.com)
Date: October 12, 2017 02:44PM

Hi, I have now checked the event logs, this is what I found:

The Apache service named reported the following error:
>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80

The Apache service named reported the following error:
>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80

The Apache service named reported the following error:
>>> AH00451: no listening sockets available, shutting down

The Apache service named reported the following error:
>>> AH00015: Unable to open logs .

Is this a typical windows permissions issue?

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Otomatic (Moderator)
Date: October 12, 2017 02:48PM

Hi,

> Or should I delete the other folders of older versions?
NO.
Theses php.ini files or symlink are into wamp folder.

But fatal error said : "(include_path='.;C:\php\pear') in Unknown on line 0"
and all include_path directives are not active (always commented) in all wampserver php.ini files :
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
Please, do as RiggsFolly wrote :
« Have you checked the windows event viewer for more information about Apache not starting? »
You can also try to start wampapache64 in services manager and see what is the error.

Even if Wampmanager tray icon is not green, you may check :
- Right-Click wampmanager tray icon -> Tools -> Test port 80

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »



Edited 1 time(s). Last edit at 10/12/2017 02:50PM by Otomatic.

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Andrew Chapman (---.dynamic.dsl.as9105.com)
Date: October 12, 2017 04:42PM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> > Or should I delete the other folders of older
> versions?
> NO.
> Theses php.ini files or symlink are into wamp
> folder.
>
> But fatal error said :
> "(include_path='.;C:\php\pear') in Unknown on line
> 0"
> and all include_path directives are not active
> (always commented) in all wampserver php.ini files
> :
>
> ; UNIX: "/path1:/path2"
> ;include_path = ".:/php/includes"
> ;
> ; Windows: "\path1;\path2"
> ;include_path = ".;c:\php\includes"
>
> Please, do as RiggsFolly wrote :
> « Have you checked the windows event viewer for
> more information about Apache not starting? »
> You can also try to start wampapache64 in services
> manager and see what is the error.
>
> Even if Wampmanager tray icon is not green, you
> may check :
> - Right-Click wampmanager tray icon -> Tools ->
> Test port 80

Hi, I already posted the windows event logs above your post.

Tested almost every open port on my system. Here is the output for port 80:

***** Test which uses port 80 *****

===== Tested by command netstat filtered on port 80 =====


Test for TCP
Your port 80 is used by a processus with PID = 4
The processus of PID 4 is 'System' Session: Services
The service of PID 4 for 'System' is 'N/A'
*** ERROR *** This service IS NOT from Wampserver - Should be: 'wampapache64'

Test for TCPv6
Your port 80 is used by a processus with PID = 4
The processus of PID 4 is 'System' Session: Services
The service of PID 4 for 'System' is 'N/A'
*** ERROR *** This service IS NOT from Wampserver - Should be: 'wampapache64'

===== Tested by attempting to open a socket on port 80 =====

Your port 80 is actually used by :

Server: Microsoft-IIS/10.0

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Otomatic (Moderator)
Date: October 12, 2017 04:47PM

Hi,

> Server: Microsoft-IIS/10.0
Apply point 08 of TROUBLESHOOTING TIPS

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Andrew Chapman (---.dynamic.dsl.as9105.com)
Date: October 12, 2017 04:47PM

I have installed port forwarding that takes a variety of ports used by Opensim etc in the range between 8000-9010 and also any http requests and point those requests and incoming port triggers to this specific PC on my network through the router.

My Goal is to host several grids from this PC, so our group of 4 can work on them. I have enough bandwidth and HD/SSD capacity to do this. Hence my reason to get wampserver up and running.

I appreciate your efforts in helping me.

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Otomatic (Moderator)
Date: October 12, 2017 05:17PM

Hi,

The wampapache64 service can not be installed because, after installation, Wampserver uses the default http port, that is; port 80.
Because this is occupied by IIS, the service can not be installed.

One can try something that I have never tried and that I am not at all sure that it works because the create service task use port 80 ; may be I have to modify this to use the modifed port !

Even Wampserver icon is not green :
- Right-Click -> Tools -> Use a port other than 80
Try 8080
- Left-Click -> Apache -> Service administration -> Install Service
- Left-Click -> Apache -> Service administration -> Start service

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Andrew Chapman (---.dynamic.dsl.as9105.com)
Date: October 12, 2017 07:42PM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> > Server: Microsoft-IIS/10.0
> Apply point 08 of
> [url=http://forum.wampserver.com/read.php?2,134915
> ]TROUBLESHOOTING TIPS[/url]

That made the icon go green smiling smiley, I'll see if it breaks further down the way before tackling the port as I have a lot of devices on that router smiling smiley... thanks for all the brilliant help guys, will let you know if all goes to plan hereon-in.

Here is the port 80 results:

***** Test which uses port 80 *****

===== Tested by command netstat filtered on port 80 =====


Test for TCP
Your port 80 is used by a processus with PID = 6736
The processus of PID 6736 is 'httpd.exe' Session: Services
The service of PID 6736 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct

Test for TCPv6
Your port 80 is used by a processus with PID = 6736
The processus of PID 6736 is 'httpd.exe' Session: Services
The service of PID 6736 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct

===== Tested by attempting to open a socket on port 80 =====

Your port 80 is actually used by :

Server: Apache/2.4.27 (Win64) PHP/7.1.9

That is without altering anything.



Edited 1 time(s). Last edit at 10/12/2017 07:49PM by Andrew Chapman.

Options: ReplyQuote
Re: Wampserver not loading php
Posted by: Andrew Chapman (---.dynamic.dsl.as9105.com)
Date: October 13, 2017 11:04AM

seems all is well, thank you for your patience and assistance.

Options: ReplyQuote


Sorry, only registered users may post in this forum.