How to test the success of configuring Apache and PHP to work together

Source: Internet
Author: User
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.
  • Related Article

    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.