The wampserver-Wamp has just been installed, and the icon is green. Can it be seen in PHP?

Source: Internet
Author: User
Tags microsoft iis
I am a newbie, learning php on w3school. wampServer has just been installed. after the installation is successful, the light is green, indicating that & quot; the service is running properly & quot ;. I put both the html and PHP files in the www folder. can open the web page, click to jump. however, PHP code in the PHP file is invalid. e... I am a newbie, learning php on w3school. wampServer has just been installed. after the installation is successful, the light turns green, saying "the service is running properly ". I put both the html and PHP files in the/www folder. can open the web page, click to jump.
However, PHP code in the PHP file is invalid and echo does not output anything. What should I do?

// Home.htmlTest $ GET
//test_get.php  
  

Reply content:

I am a newbie, learning php on w3school. wampServer has just been installed. after the installation is successful, the light turns green, saying "the service is running properly ". I put both the html and PHP files in the/www folder. can open the web page, click to jump.
However, PHP code in the PHP file is invalid and echo does not output anything. What should I do?

// Home.htmlTest $ GET
//test_get.php  
  

I tried, my server is running normally, and after the jump,

However, when I close the server and directly open html and then jump to the server, it may still be a problem with your server.
Try to use 127.0.0.1/home.html or localhost/home.html for access. If it cannot be accessed, it is really the reason for your server.

Try restarting the server. If apache is installed in linux a few days ago, the website directory is normal and associated with php is normal. The problem is that the server is installed first. But wamp is integrated. Try it, maybe not?

The problem has been solved. the main problem is that port 80 is occupied by Microsoft IIS 10.0. I also found this problem a few days ago. Then I went to Apache> Use a port other than 80 and changed it to 8080. The icon turned green but it still failed to run.
Today, I found the method to change Apache> httpd. conf (I don't know what the difference is). The specific method is as follows:

  1. Icon> Apache> httpd. conf.Listen 0.0.0.0:80AndListen [::0]:80ChangeListen 0.0.0.0:8080AndListen [::0]:8080, Save. in fact, restart WampServer here and you will be able to use the address for normal access. but click the icon> localhost, but the page cannot be reached. so we need to take the second step to change the address pointed to by this button.

  2. Go to the WampServer installation directory and open wanpmanager. tpl.localhostChangelocalhost:8080. Solve the problem.

In addition, the method for accessing files in www cannot be passed "file :///... /wamp64/www/xxx.html ", but" http: // localhost: 8080/xxx.html ".

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.