Posted by:
RiggsFolly
(---.dynamic.dsl.as9105.com)
Lets just check everything from the beginning.
1. You should not have to change any config to get a php script to run.
2. The location of the folder used by the localhost domain name is \wamp\www but you should not change anything in that folder. Instead make a subfolder and place your test script in there
EG
\wamp\www\project1\test1.php
3. To launch a script called test1.php from a subfolder of \wamp\www\ called \wamp\www\project1\test1.php you would use this address in the browsers address bar
'http://localhost/project1/test1.php' (without the single quotes)
Assuming you have returned the port number used by Apache to port 80, otherwise use
'http://localhost:9000/project1/test1.php' (without the single quotes)
4. A PHP script must have the .php extension to run properly. Be careful some simple editors, like notepad, add the .txt extension even if you save the file as test1.php, and you will actually be saving the file as tes1.php.txt and this will not run.
Use something like notepadd++ if you are still using notepad, its free and very good.5. You must run the script by entering the address in the address bar of your browser. Double clicking on the file name in Explorer ( File Manager ) will not do this correctly. That only works for vanilla HTML and/or javascript.
6. You should have this entry in your HOSTS file located in C:\windows\system32\drivers\etc\hosts
127.0.0.1 localhost
::1 localhost
7. The WAMPServer icon that sits in the system tray (wampmanager) should be GREEN, if it is Red then neither Apache or MySQL services have started. If it is Orange, then one of these services has not started.
?? What colour is your wampmanager icon??
If none of these fix your issue please answer the questions on the Syticky post called
READ THIS BEFORE YOU ASK A QUESTION ---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-
Edited 1 time(s). Last edit at 09/23/2014 10:26AM by RiggsFolly.