khurrambilal Posted July 30, 2009 Share Posted July 30, 2009 When i go to apache website i get 404 error file not found when i try to download the latest version of Apache. Currently i have apache version 2.0.63 and and i have downloaded the following PHP VC6 x86 Non Thread Safe (PHP 5.3 (5.3.0)) from the website http://windows.php.net/download/ I started following this tutorial http://www.arterground.com/ and after following the steps when i restart the Apache server it gives and error and remain stopped. Can you tell me which version of PHP can be configured with what version of Apache and how.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/ Share on other sites More sharing options...
wildteen88 Posted July 30, 2009 Share Posted July 30, 2009 NOTE: That tutorial suggests to add these lines to the httpd.conf LoadModule php5_module "C:/WEB/PHP/php5apache2_2.dll" AddHandler application/x-httpd-php .php PHPIniDir "C:/WEB/PHP" As you're using Apache2.0.x The LoadModule line should be LoadModule php5_module "C:/WEB/PHP/php5apache2.dll" php5apache2_2.dll is for Apache2.2.x only. php5apache2.dll is for Apache 2.0.x Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-887016 Share on other sites More sharing options...
khurrambilal Posted July 31, 2009 Author Share Posted July 31, 2009 I have downloaded the following PHP. VC6 x86 Non Thread Safe (PHP 5.3 (5.3.0)) from the website http://windows.php.net/download/ and in after unzipping the folder i can see a file named as "php5apache.dll" and the same file i am referencing in the httpd file of Apache and i still getting the error when i restart the server Am i missing the Dll ,as i downloaded the PHP mentioned above was from PHP guys i guess. Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-887468 Share on other sites More sharing options...
wildteen88 Posted July 31, 2009 Share Posted July 31, 2009 and in after unzipping the folder i can see a file named as "php5apache.dll" and the same file i am referencing in the httpd file of Apache You should get three Apache modules, which are php5apache2_2.dll - This is to be used with Apache 2.2.x php5apache2.dll - This is to be used with Apache 2.0.x php5apache.dll - This is to be used with Apache 1.3.x You need to use the correct module for the version of Apache you're using. You said in your first post you're using Apache2.0.63. This what your LoadModule line should be in the httpd.conf LoadModule php5_module "C:/WEB/PHP/php5apache2.dll" Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-887713 Share on other sites More sharing options...
khurrambilal Posted August 1, 2009 Author Share Posted August 1, 2009 You Said the following You should get three Apache modules, which are php5apache2_2.dll - This is to be used with Apache 2.2.x php5apache2.dll - This is to be used with Apache 2.0.x php5apache.dll - This is to be used with Apache 1.3.x i already mentioned that the PHP i downloaded is from PHP guys and it doesnt have the dll that is mentioned in all tutorials.The one i got i mentioned in my post and when i reference it i get the error. If you can better tell me the resource from where i can download the correct PHP 5 Zip files and the version of Apache which works with it.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888100 Share on other sites More sharing options...
khurrambilal Posted August 1, 2009 Author Share Posted August 1, 2009 I am trying to download the apache server from the following address http://httpd.apache.org/download.cgi but i am getting Http 404 File not found error.Is there any other way to download the Apache ? Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888203 Share on other sites More sharing options...
wildteen88 Posted August 1, 2009 Share Posted August 1, 2009 Oh sorry I mis understood you. Go to http://windows.php.net/download/ and download the zip package titled VC6 x86 Thread Safe. This will come with the three Apache modules I mentioned earlier. PHP will work fine with Apache2.0.x Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888238 Share on other sites More sharing options...
khurrambilal Posted August 1, 2009 Author Share Posted August 1, 2009 Alright i have downloaded the PHP you mentioned but what about Apache? as i mentioned the website of Apache gives an Http 404 error Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888474 Share on other sites More sharing options...
khurrambilal Posted August 1, 2009 Author Share Posted August 1, 2009 I have downloaded the vc86 Thread safe from http://windows.php.net/download/ and unzipped in at C:\PHP and as you metioned in your earlier post You should get three Apache modules, which are php5apache2_2.dll - This is to be used with Apache 2.2.x php5apache2.dll - This is to be used with Apache 2.0.x php5apache.dll - This is to be used with Apache 1.3.x but i can see only "php5apache2_2.dll" in that folder.Also i am looking for any apache 2.2.x server ,where to download it from ? The current apache i have downloaded is 2.0.63 and i didnt work with the php dll i have now, as i tried and i got the same error. Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888479 Share on other sites More sharing options...
khurrambilal Posted August 1, 2009 Author Share Posted August 1, 2009 Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888483 Share on other sites More sharing options...
ldougherty Posted August 1, 2009 Share Posted August 1, 2009 Are you still getting a 404? I can access the download without any problems. http://apache.siamwebhosting.com/httpd/httpd-2.2.12-win32-src.zip Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888495 Share on other sites More sharing options...
khurrambilal Posted August 1, 2009 Author Share Posted August 1, 2009 I have attached the images ,where from i am downloading the Apache and i get Http 404. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888532 Share on other sites More sharing options...
wildteen88 Posted August 2, 2009 Share Posted August 2, 2009 You can download Apache2.2 from here instead: http://apache.mirror.rbftpnetworks.com/httpd/binaries/win32/ Download the package titled apache_2.2.11-win32-x86-no_ssl.msi Seems the link is broken on the Apache download page. Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888831 Share on other sites More sharing options...
khurrambilal Posted August 2, 2009 Author Share Posted August 2, 2009 Alright i have downloaded Apache and installed it.After adding the lines you mentioned in earlier post to the httpd file in Apache folder,i restarted Apache and it went smooth with out error.Now when i type localhost in my browser i can see a page saying It Works!. I created a test.php file having code <? phpinfo(); ?> and saved at this location C:\Program Files\Apache Group\Apache2\htdocs now when i do the localhost/test.php i get HTTP 404 error.What to do now ? Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888839 Share on other sites More sharing options...
wildteen88 Posted August 2, 2009 Share Posted August 2, 2009 Remove all files in C:\Program Files\Apache Group\Apache2\htdocs leaving just test.php Go to http://localhost. What is listed? Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-888962 Share on other sites More sharing options...
khurrambilal Posted August 2, 2009 Author Share Posted August 2, 2009 I get the same Http 404 error. Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889050 Share on other sites More sharing options...
khurrambilal Posted August 2, 2009 Author Share Posted August 2, 2009 Its the same after deleting all files.Http 404 error when i go to localhost/test.php Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889055 Share on other sites More sharing options...
wildteen88 Posted August 2, 2009 Share Posted August 2, 2009 Just go to http://localhost not http://localhost/test.php You should get directory listing. Which shows all files in the htdocs folder. Is test.php listed? Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889065 Share on other sites More sharing options...
khurrambilal Posted August 2, 2009 Author Share Posted August 2, 2009 ofcourse there is only one file in htdocs folder ,which is test.php Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889091 Share on other sites More sharing options...
wildteen88 Posted August 2, 2009 Share Posted August 2, 2009 ofcourse there is only one file in htdocs folder ,which is test.php I know test.php in the htdocs folder. What I want to know is what is shown when you go to http://localhost (i dont want you to run test.php) Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889094 Share on other sites More sharing options...
khurrambilal Posted August 2, 2009 Author Share Posted August 2, 2009 Sorry i misunderstood what you asked.But how to get the listing of http://localhost ? when I browse the htdocs folder i see only test.php i am also trying to figure out as it shows as "It works" when i type just http://localhost ,it means the root directory is not set but i have checked the php.ini file and the root directory is set to the htdocs folder of Apache. Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889096 Share on other sites More sharing options...
wildteen88 Posted August 2, 2009 Share Posted August 2, 2009 Try Ctrl + F5 when going to http://localhost. Your browser has cached the old index page Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889098 Share on other sites More sharing options...
khurrambilal Posted August 2, 2009 Author Share Posted August 2, 2009 I tried deleting history but of no use ,i want to know where that index.html file is located which shows "it works!" which is an indication that Apache is installed correctly,if i am not wrong. And apache is going to the same directory where that file is that is what i am assuming. Now after deleting the history it is at the same situation.If i go to localhost it shows "It works!" and when it type http://localhost/test.php it gives me Http 404 error. Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889101 Share on other sites More sharing options...
wildteen88 Posted August 2, 2009 Share Posted August 2, 2009 The index file is in the htdocs folder (same as test.php). Removing the index file should show a directory listing Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889108 Share on other sites More sharing options...
khurrambilal Posted August 2, 2009 Author Share Posted August 2, 2009 It is not ,there is only one file in Htdocs which is test.php and nothign else also after having only one file when i go to http://localhost i can see a page saying it works Quote Link to comment https://forums.phpfreaks.com/topic/168141-how-to-configure-php-5-with-apache/#findComment-889118 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.