Rogerconant Posted December 1, 2008 Share Posted December 1, 2008 I installed the wamp server and have been using php and mysql with no problems on my Windows XP machine for a month. Today, php won't run (proved by phpinfo(); giving a blank screen.) wamp server says all services are running (including php.) What could be wrong, and how to fix it? Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/ Share on other sites More sharing options...
DeanWhitehouse Posted December 1, 2008 Share Posted December 1, 2008 Wrong Forum. But have you changed any of the PHP settings since you last used it? Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703208 Share on other sites More sharing options...
Rogerconant Posted December 1, 2008 Author Share Posted December 1, 2008 Changed the password for phpmyadmin, but didn't expect that to change anything for php itself. Sorry for being in the wrong forum - I just got here. Which forum is the right one? I saw "php help" and that sounded great! Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703212 Share on other sites More sharing options...
DeanWhitehouse Posted December 1, 2008 Share Posted December 1, 2008 Hmm that shouldn't effect anything. It should be in one of these forums, depends on the problem. http://www.phpfreaks.com/forums/index.php?action=collapse;c=28;sa=collapse;#c28 Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703219 Share on other sites More sharing options...
Rogerconant Posted December 1, 2008 Author Share Posted December 1, 2008 Thanks, I'm moving to that forum you recommend. Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703225 Share on other sites More sharing options...
ScotDiddle Posted December 1, 2008 Share Posted December 1, 2008 Blade280891, PHP is not a windows service, it is an Apache Task. The two services WAMP shows are Apache and MySQL. Use the WAMP drilldown to review the Apache error log... ( Click on the WAMP speedometer, then select log files and look at the Apache Error Log and the PHP Error Log. They may point you in the right direction. ) ( This is pre-supposing you are using http://www.wampserver.com/en ... If you aren't, go get it quick and leave the "roll-your-own" behind. ) Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703262 Share on other sites More sharing options...
DeanWhitehouse Posted December 1, 2008 Share Posted December 1, 2008 @ScotDiddle, try reading who started the thread Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703379 Share on other sites More sharing options...
Rogerconant Posted December 1, 2008 Author Share Posted December 1, 2008 I can't see anything odd in the Apache error log. I shut down the wamp server, started it up again, and this is the log: ----- [Mon Dec 01 16:56:00 2008] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations [Mon Dec 01 16:56:00 2008] [notice] Server built: Jan 18 2008 00:37:19 [Mon Dec 01 16:56:00 2008] [notice] Parent: Created child process 2400 [Mon Dec 01 16:56:01 2008] [notice] Child 2400: Child process is running [Mon Dec 01 16:56:01 2008] [notice] Child 2400: Acquired the start mutex. [Mon Dec 01 16:56:01 2008] [notice] Child 2400: Starting 64 worker threads. [Mon Dec 01 16:56:01 2008] [notice] Child 2400: Starting thread to listen on port 80. ------------ I am new to this server log, but I don't see anything odd here. The php error log doesn't show anything either but I suppose that is because php is not running, yes? Still puzzled. Everything worked fine since mid-October installation of wamp server, until yesterday. Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703434 Share on other sites More sharing options...
PFMaBiSmAd Posted December 1, 2008 Share Posted December 1, 2008 What does a "view source" of your blank page show and post the code, including the opening and closing php tags. Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703447 Share on other sites More sharing options...
Rogerconant Posted December 1, 2008 Author Share Posted December 1, 2008 Here is the code that returns a blank page, as expected if php is not running: --------- the filename is basic.php ---------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>php info</title> </head> <body> <?php phpinfo(); ?> </body> </html> --------------- (wrong title for the page, I see, but that's not the problem.) Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703469 Share on other sites More sharing options...
PFMaBiSmAd Posted December 1, 2008 Share Posted December 1, 2008 I guess I'll have to ask again - What does a "view source" of your blank page show What URL are you entering in your browser's address bar? Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703494 Share on other sites More sharing options...
DeanWhitehouse Posted December 2, 2008 Share Posted December 2, 2008 Try restarting all services, also what colour is your wamp icon. Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703535 Share on other sites More sharing options...
Rogerconant Posted December 2, 2008 Author Share Posted December 2, 2008 The URL used is: file:///C:/wamp/www/php_sandbox/basic.php The php_sandbox is a directory full of php files that used to run perfectly well, for a month and a half. I have restarted the wamp server (shut down, then restart, then click on Start all services) and even rebooted the entire machine before restarting wamp. The speedometer is entirely white, with the needle laying flat down on the right side. online or offline makes no difference. Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703948 Share on other sites More sharing options...
PFMaBiSmAd Posted December 2, 2008 Share Posted December 2, 2008 That is not how you invoke a web server/php. That will literally cause the file to be read and output to the browser, which if you do a "view source" of the page like I have asked twice, you would know. To request the page from your web server so that is will be parsed by php, you must do one of these - http://localhost/your_page_name.php http://your_wins_computer_name_here/your_page_name.php http://xxx.xxx.xxx.xxx/your_page_name.php (where xxx.xxx.xxx.xxx is either 127.0.0.1 or your local network IP address.) The http:// is optional as your browser should add that. Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-703962 Share on other sites More sharing options...
Rogerconant Posted December 2, 2008 Author Share Posted December 2, 2008 Well sure enough, and I'm afraid I have displayed my newbie status. You have solved the problem. The "view source" code which I put up here showed the source all right but as a result of the wrong URL. Thanks very much! I had been away and just forgot the right URL to use. Quote Link to comment https://forums.phpfreaks.com/topic/135018-solved-cant-start-up-php/#findComment-704023 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.