premium4ya Posted June 10, 2012 Share Posted June 10, 2012 Hello everyone in the forum I am new in PHP, and I hope to get some help from here. I have installed Apache 2.2 and it worked fine, but after I have installed PHP, it stops working. When I Uninstall PHP, the Apache works but the browser stop displaying PHP, instead it displays (open with) dialog box. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/ Share on other sites More sharing options...
smoseley Posted June 10, 2012 Share Posted June 10, 2012 Sounds like a problem. More information might reveal a solution. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352644 Share on other sites More sharing options...
PeoMachine Posted June 10, 2012 Share Posted June 10, 2012 Try to use a Apache, MySQL, PHP distribution, like XAMPP, WAMP, LAMPP, etc. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352647 Share on other sites More sharing options...
ZulfadlyAshBurn Posted June 10, 2012 Share Posted June 10, 2012 You have to enable PHP to be view in your system. It's rather complicated. I had it on my "mini: server. I would suggest as PeoMachine to get those softwares. I personally use LAMP at this moment. Works great! Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352650 Share on other sites More sharing options...
premium4ya Posted June 10, 2012 Author Share Posted June 10, 2012 Sounds like a problem. More information might reveal a solution. Could you tell me what type of information, but please be simple. Try to use a Apache, MySQL, PHP distribution, like XAMPP, WAMP, LAMPP, etc. As I know all these distribution is for linux, but I am using Windows XP SP3. Thank you all. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352682 Share on other sites More sharing options...
smoseley Posted June 10, 2012 Share Posted June 10, 2012 Could you tell me what type of information, but please be simple. Like, what operating system you're using... As I know all these distribution is for linux, but I am using Windows XP SP3. Well there ya go! WAMP and XAMPP are specifically designed for Windows. Try 'em out. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352684 Share on other sites More sharing options...
premium4ya Posted June 10, 2012 Author Share Posted June 10, 2012 Thanks. The problem now is: I have Apache working fine, PHP installed using zip package. But when I access php file, it displays php code itself. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352686 Share on other sites More sharing options...
ZulfadlyAshBurn Posted June 11, 2012 Share Posted June 11, 2012 Uninstall PHP and reinstall by following this tutorial. http://www.sitepoint.com/how-to-install-php-on-windows/ It should work after following all this steps. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352847 Share on other sites More sharing options...
premium4ya Posted June 11, 2012 Author Share Posted June 11, 2012 Uninstall PHP and reinstall by following this tutorial. http://www.sitepoint.com/how-to-install-php-on-windows/ It should work after following all this steps. Thank you a lot for your reply. But the instructions says: Step 3: configure php.ini Copy C:\php\php.ini-recommended to C:\php\php.ini. There are several lines you will need to change in a text editor (use search to find the current setting). I can't find such .ini. Only (php.ini-development) and (php.ini-production) are available. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352848 Share on other sites More sharing options...
ZulfadlyAshBurn Posted June 11, 2012 Share Posted June 11, 2012 If you are working with PHP 5.3, the php.ini-recommeded has been changed to php.ini-development or php.ini-production. I would suggest you to use php.ini-development i to start with if you're just testing it out. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352854 Share on other sites More sharing options...
premium4ya Posted June 11, 2012 Author Share Posted June 11, 2012 If you are working with PHP 5.3, the php.ini-recommeded has been changed to php.ini-development or php.ini-production. I would suggest you to use php.ini-development i to start with if you're just testing it out. Thanks a lot. All are goin' fine now. The problem was in the PHP directory name. I have named it (PHP), and in Environment Variables (php). Thank you all for your valuable help. Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352857 Share on other sites More sharing options...
ZulfadlyAshBurn Posted June 11, 2012 Share Posted June 11, 2012 HAHA. sure no problem. Please do mark this topic as solved at the bottom of the page. Thanks a lot Quote Link to comment https://forums.phpfreaks.com/topic/263940-php-not-working/#findComment-1352858 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.