rgfirefly24 Posted February 14, 2008 Share Posted February 14, 2008 ok, i am getting desperate and am turning to the only forum i know and trust to have experts(thats you). I have WAMP2server installed on my machine, with drupal inside it. When i create a .php page and attempt to open it in IE it brings up IE and attempts to download. I have checked the apache httpd.conf file and looked at the addtype section. This is what is in that section: AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php-source .phps .phtmls i'm assuming that should be enough to force apache to recognize and direct .php pages to the php interpreter. Can anyone help me in fixing this problem? Quote Link to comment Share on other sites More sharing options...
effigy Posted February 14, 2008 Share Posted February 14, 2008 Check the docs about installing PHP as a module or CGI. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 14, 2008 Share Posted February 14, 2008 If you have WAMP2 installed then everything should setup and ready to go. No configuration should be necessary. Make sure wamp is running and your are going http://localhost in order to run your php scripts. Also make sure you are saving your php files in WAMPs web data directory which I believe is C:\wamp\www You should not be opening your php files directly through the browser via File > Open or right clicking on a .php file and selecting Open with IE Quote Link to comment Share on other sites More sharing options...
rgfirefly24 Posted February 14, 2008 Author Share Posted February 14, 2008 when i go to the /localhost it does not show my .php file even though it is under the www directory in c:/wamp/www/ it does show the drupal folder though. EDIT: ok i moved it to a test folder within www, however when i load it up it shows the echo command. there is the code: <html> <head> <title>My First PHP Program</title> <body> <?php echo "I'm a lumberjack."; ?> </body> </html> Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 14, 2008 Share Posted February 14, 2008 Try reinstalling wamp. I do not use WAMP myself so I cannot suggest anything however a reinstall should help. 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.