definewebsites Posted October 28, 2007 Share Posted October 28, 2007 Hi there, I have Apache, MySQL and php installed on my laptop. I have followed guidelines as to how to setup the environment, however when I am running a test file from my browser using http://localhost/test.php, it is not displaying the contents of the file, its just not working. I tried doing that in Internet Explorer and it says that the location cannot be found. Apache however has been correctly setup. Some assistance would be greatly appreciated as I have reached the point of frustration... Quote Link to comment https://forums.phpfreaks.com/topic/75060-test-page-not-working/ Share on other sites More sharing options...
trq Posted October 28, 2007 Share Posted October 28, 2007 Are you getting any errors displayed? Have you checked the Apache logs? Quote Link to comment https://forums.phpfreaks.com/topic/75060-test-page-not-working/#findComment-379616 Share on other sites More sharing options...
definewebsites Posted October 28, 2007 Author Share Posted October 28, 2007 Hi, thanks for the response. I just checked the access log (thanks for that insight), and this is a message I saw in there: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName Is that what is causing it not to work? How would I rectify this? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/75060-test-page-not-working/#findComment-379631 Share on other sites More sharing options...
trq Posted October 28, 2007 Share Posted October 28, 2007 Nope, that wouldn't cause Apache to not serv pages. Anything else? Quote Link to comment https://forums.phpfreaks.com/topic/75060-test-page-not-working/#findComment-379637 Share on other sites More sharing options...
definewebsites Posted October 28, 2007 Author Share Posted October 28, 2007 Hi, Below is the complete contents of the error log: [sun Oct 28 03:46:10 2007] [notice] Apache/2.2.6 (Win32) PHP/5.2.4 configured -- resuming normal operations [sun Oct 28 03:46:10 2007] [notice] Server built: Sep 5 2007 08:58:56 [sun Oct 28 03:46:10 2007] [notice] Parent: Created child process 4568 [sun Oct 28 03:46:10 2007] [notice] Child 4568: Child process is running [sun Oct 28 03:46:10 2007] [notice] Child 4568: Acquired the start mutex. [sun Oct 28 03:46:10 2007] [notice] Child 4568: Starting 250 worker threads. [sun Oct 28 03:46:10 2007] [notice] Child 4568: Starting thread to listen on port 8080. [sun Oct 28 03:46:26 2007] [notice] Parent: Received shutdown signal -- Shutting down the server. [sun Oct 28 03:46:26 2007] [notice] Child 4568: Exit event signaled. Child process is ending. [sun Oct 28 03:46:27 2007] [notice] Child 4568: Released the start mutex [sun Oct 28 03:46:28 2007] [notice] Child 4568: Waiting for 250 worker threads to exit. [sun Oct 28 03:46:28 2007] [notice] Child 4568: All worker threads have exited. [sun Oct 28 03:46:28 2007] [notice] Child 4568: Child process is exiting [sun Oct 28 03:46:28 2007] [notice] Parent: Child process exited successfully. [sun Oct 28 03:47:24 2007] [notice] Apache/2.2.6 (Win32) PHP/5.2.4 configured -- resuming normal operations [sun Oct 28 03:47:24 2007] [notice] Server built: Sep 5 2007 08:58:56 [sun Oct 28 03:47:24 2007] [notice] Parent: Created child process 748 [sun Oct 28 03:47:24 2007] [notice] Child 748: Child process is running [sun Oct 28 03:47:24 2007] [notice] Child 748: Acquired the start mutex. [sun Oct 28 03:47:24 2007] [notice] Child 748: Starting 250 worker threads. [sun Oct 28 03:47:24 2007] [notice] Child 748: Starting thread to listen on port 8080. [sun Oct 28 03:48:05 2007] [notice] Parent: Received shutdown signal -- Shutting down the server. [sun Oct 28 03:48:05 2007] [notice] Child 748: Exit event signaled. Child process is ending. [sun Oct 28 03:48:06 2007] [notice] Child 748: Released the start mutex [sun Oct 28 03:48:07 2007] [notice] Child 748: Waiting for 250 worker threads to exit. [sun Oct 28 03:48:07 2007] [notice] Child 748: All worker threads have exited. [sun Oct 28 03:48:07 2007] [notice] Child 748: Child process is exiting [sun Oct 28 03:48:07 2007] [notice] Parent: Child process exited successfully. [sun Oct 28 03:52:04 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.4 configured -- resuming normal operations [sun Oct 28 03:52:04 2007] [notice] Server built: Jan 9 2007 23:17:20 [sun Oct 28 03:52:04 2007] [notice] Parent: Created child process 1716 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mssql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_openssl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0 [sun Oct 28 03:52:04 2007] [notice] Child 1716: Child process is running [sun Oct 28 03:52:04 2007] [notice] Child 1716: Acquired the start mutex. [sun Oct 28 03:52:04 2007] [notice] Child 1716: Starting 250 worker threads. [sun Oct 28 03:52:04 2007] [notice] Child 1716: Starting thread to listen on port 8080. [sun Oct 28 03:53:58 2007] [notice] Parent: Received shutdown signal -- Shutting down the server. [sun Oct 28 03:53:58 2007] [notice] Child 1716: Exit event signaled. Child process is ending. [sun Oct 28 03:53:59 2007] [notice] Child 1716: Released the start mutex [sun Oct 28 03:54:00 2007] [notice] Child 1716: Waiting for 250 worker threads to exit. [sun Oct 28 03:54:00 2007] [notice] Child 1716: All worker threads have exited. [sun Oct 28 03:54:00 2007] [notice] Child 1716: Child process is exiting [sun Oct 28 03:54:00 2007] [notice] Parent: Child process exited successfully. PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mssql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_openssl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0 [sun Oct 28 03:54:56 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.4 configured -- resuming normal operations [sun Oct 28 03:54:56 2007] [notice] Server built: Jan 9 2007 23:17:20 [sun Oct 28 03:54:56 2007] [notice] Parent: Created child process 3796 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mssql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysqli.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_openssl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0 [sun Oct 28 03:54:56 2007] [notice] Child 3796: Child process is running [sun Oct 28 03:54:56 2007] [notice] Child 3796: Acquired the start mutex. [sun Oct 28 03:54:56 2007] [notice] Child 3796: Starting 250 worker threads. [sun Oct 28 03:54:56 2007] [notice] Child 3796: Starting thread to listen on port 8080. What do you think? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/75060-test-page-not-working/#findComment-379641 Share on other sites More sharing options...
wildteen88 Posted October 28, 2007 Share Posted October 28, 2007 In that error log it says Apache is listening on port 8080, as quoted below: [sun Oct 28 03:52:04 2007] [notice] Child 1716: Starting thread to listen on port 8080. In that case you should use http://localhost:8080/ and not http://localhost/ There is also an issue with PHPs configuration to do with some extensions you have enabled. This should not affect Apache. Quote Link to comment https://forums.phpfreaks.com/topic/75060-test-page-not-working/#findComment-379754 Share on other sites More sharing options...
definewebsites Posted October 28, 2007 Author Share Posted October 28, 2007 Hi there, Thanks alot.. I used your suggestion and it worked perfectly.. I really do appreciate it. I was wondering though, is there some way that I can get it to run with just http://localhost/ without the port number 8080? This is just out of curiousity... Thanks again Quote Link to comment https://forums.phpfreaks.com/topic/75060-test-page-not-working/#findComment-380060 Share on other sites More sharing options...
peranha Posted October 28, 2007 Share Posted October 28, 2007 In your Httpd.conf file change the line that says Listen 8080 to Listen 80 ServerName from :8080 to :80 and restart apache Server Quote Link to comment https://forums.phpfreaks.com/topic/75060-test-page-not-working/#findComment-380062 Share on other sites More sharing options...
definewebsites Posted October 29, 2007 Author Share Posted October 29, 2007 Hmm, I tried that and for some reason Apache is not able to start. Would you happen to know why? I am using a laptop that is connected to a wireless network. Don't know if that helps... Thanks Quote Link to comment https://forums.phpfreaks.com/topic/75060-test-page-not-working/#findComment-380170 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.