jewysi Posted June 8, 2009 Share Posted June 8, 2009 Hello newbie here trying to teach myself PHP. I just want to get php configured with apache. I downloaded the WAMP Server distribution and Mysql is working and localhost displays the wamp server configuration settings. I can even add tables to mysql using phpadmin, but I can not get any PHP objects to display. The web page just returns blank. I have read through the php manual and changed the php.ini file to the recommended, and added these items to it LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/php" I restarted the server and the entire computer. I tried downloading php individually and placing it in the C: drive. I don't know what else to do. Please help I am so frustrated, I just want to move on to actually using php. Thank you in advance for any help. Jeremy Quote Link to comment Share on other sites More sharing options...
trq Posted June 8, 2009 Share Posted June 8, 2009 This.... LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/php" belongs in apache's configuration, not php's. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 8, 2009 Share Posted June 8, 2009 I downloaded the WAMP Server distribution and Mysql is working and localhost displays the wamp server configuration settings. By this do you mean you have downloaded the WAMP package from wampserver.com? If you have then there is no need to do any configuration. WAMP setups up Apache, PHP and MySQL for you. Make sure you're saving your php files in WAMP's www folder (C:/wamp/www). To run your php scripts you need to go to http://localhost/ Opening your php files directly into your web browser will not work. Quote Link to comment Share on other sites More sharing options...
jewysi Posted June 9, 2009 Author Share Posted June 9, 2009 Thank you so much. I knew it was going to be something simple, I just didn't know what. Quote Link to comment 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.