Php wamp environment setup

Source: Internet
Author: User
After Apachephp is installed and configured, mysql is not installed yet. When Apache is enabled, the Apache is enabled after two warnings of warningPHPStartup are displayed. The local machine is connected to the Internet through a vro and a optical fiber cat, Windows XP operating system. The configuration of the Apachehttpd. conf file is: after List... Apache php is installed and configured, mysql is not installed yet. When Apache is enabled, Apache is enabled after two warnings of warning PHP Startup are displayed.
The local machine is connected to the Internet through a vro and a optical fiber cat, Windows XP operating system.

The configuration of the Apache httpd. conf file is as follows:

Listen 12.34.56.78: 80

Listen 80

LoadModule php5_module D:/wamp/php/php5apache2_4.dll
PHPIniDir D:/wamp/php

ServerName localhost: 80

AddType application/x-httpd-php. php

Php. ini file Configuration:

Extension_dir = "D:/wamp/php/ext"

Extension = php_curl.dll
Extension = php_gd2.dll
Extension = php_mbstring.dll
Extension = php_mysql.dll
Extension = php_mysqli.dll
Extension = php_pdo_mysql.dll
Extension = php_pdo_odbc.dll
Extension = php_soap.dll
Extension = php_sockets.dll

Date. timezone = Asia/Shanghai

Apache Error Log:
AH00558: httpd.exe: cocould not reliably determine the server's fully qualified domain name, using 192.168.x.x. Set the 'servername' directive globally to suppress this message
PHP Warning: PHP Startup: in Unknown on line 0
[Thu Oct 15 10:48:13. 312500 2015] [mpm_winnt: notice] [pid 4044: tid 1668] AH00354: Child: Starting 64 worker threads.

Register all the dll files.

Please advise me what is wrong? Thank you!

Reply content:

After Apache php is installed and configured, mysql has not yet been installed. When Apache is enabled, the warning of two warnings of "warning PHP Startup" appears and Apache is enabled.
The local machine is connected to the Internet through a vro and a optical fiber cat, Windows XP operating system.

The configuration of the Apache httpd. conf file is as follows:

Listen 12.34.56.78: 80

Listen 80

LoadModule php5_module D:/wamp/php/php5apache2_4.dll
PHPIniDir D:/wamp/php

ServerName localhost: 80

AddType application/x-httpd-php. php

Php. ini file Configuration:

Extension_dir = "D:/wamp/php/ext"

Extension = php_curl.dll
Extension = php_gd2.dll
Extension = php_mbstring.dll
Extension = php_mysql.dll
Extension = php_mysqli.dll
Extension = php_pdo_mysql.dll
Extension = php_pdo_odbc.dll
Extension = php_soap.dll
Extension = php_sockets.dll

Date. timezone = Asia/Shanghai

Apache Error Log:
AH00558: httpd.exe: cocould not reliably determine the server's fully qualified domain name, using 192.168.x.x. Set the 'servername' directive globally to suppress this message
PHP Warning: PHP Startup: in Unknown on line 0
[Thu Oct 15 10:48:13. 312500 2015] [mpm_winnt: notice] [pid 4044: tid 1668] AH00354: Child: Starting 64 worker threads.

Register all the dll files.

Please advise me what is wrong? Thank you!

Disable php extensions one by one. An error is reported when loading php_curl, and curl is not loaded in phpinfo ().
Solution:
Method 1: Copy libeay32.dll, libssh2.dll, php5ts. dll, php_curl.dll, and ssleay32.dll under the php installation directory to the system32 directory.

Method 2: load the following dependency file in httpd. conf:

LoadFile D:/wamp/php/php5ts. dll

LoadFile D:/wamp/php/libeay32.dll

LoadFile D:/wamp/php/ssleay32.dll

LoadFile D:/wamp/php/libssh2.dll

After this configuration, the following warning PHP Startup will not be displayed when Apache is Enabled:

The first alarm can be resolved using ServerName 127.0.0.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.