How do I test the successful configuration of Apache and PHP to work together?
I downloaded and installed Appserv_2.6.0.exe, tested the Apache server with "http://localhost/" to show success, and then I followed the steps in the book "Getting Started with Web development-using PHP6, Apache, and MySQL" The following code was added to the httpd.conf:
AddType application/x-http-php. php
AddType Application/x-http-php-source. php
Phpinidir "E:\APPSERV\PHP6"
LoadModule php6_module "E:\AppServ\php6\php6apache2_2.dll"
The folder path was filled in the location I installed myself, but I don't know how to test whether Apache has been configured to use PHP.
The steps in the book are to write a small php file, save the file to the test.php file in Apache's Htdocs directory, and then use a Web browser to access http://localhost/test.php.
But now I because my appserv the whole is installed in the e-disk, can not find Apcahe htdocs directory, do not know how to test.
I have a C base, but only to start learning PHP, but stuck in this place, it is impossible to continue to go on, I hope someone can help me to solve the trap of my beginning. PHP Apache Web Server
Share to:
------Solution--------------------
Appserv are all configured, do not need you in these configured
------Solution--------------------
Since you are using the integration package Appserv, then you do not need to configure PHP, do it will be a problem
You can search for DocumentRoot in httpd.conf.
You can see a line like this
DocumentRoot "/amp/web"
That's the root directory of the site.