How to test whether apache and php are configured to work together
Source: Internet
Author: User
How can I test whether apache and php are successfully configured to work together? I downloaded and installed appserv_2.6.0.exe, and tested the apache server with "http: // localhost/". then I followed the steps in the book "Getting Started with Web development-using PHP6, Apache, and MySQL, in httpd, how does one test whether apache and php are successfully configured to work together?
I downloaded and installed appserv_2.6.0.exe, and tested the apache server with "http: // localhost/". then I followed the steps in the book "Getting Started with Web development-using PHP6, Apache, and MySQL, in httpd. the following code is added to the conf file:
The folder paths are all filled in according to my own installation location, but I don't know how to test whether apache has been configured to use php.
The procedure in the book is to compile a small php file, save the file to the test. php file under the htdocs directory of apache, and then access http: // localhost/test. php using a Web browser,
However, because my appserv is installed in an e disk, I cannot find the htdocs directory of apcahe, so I don't know how to test it.
I have some c basics, but I just started to learn php, but it is stuck in this place, it is really unable to continue, I hope someone can help me solve this trap at the beginning of my. The php apache web server shares the following information:
------ Solution --------------------
The AppServ has been configured, and you do not need to configure
------ Solution --------------------
Now that you are using the integration package AppServ, you do not need to configure php any more. if you do so, there will be problems.
You can search for DocumentRoot in httpd. conf.
You can see rows like this
DocumentRoot "/AMP/web"
That is the root directory of the website.
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.