logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: trying to load <?php phpinfo(); ?> but just prints it
Author
Desamos



Joined: 11 Feb 2015
Posts: 4
Location: United States, Pasadena

PostPosted: Wed 11 Feb '15 22:04    Post subject: trying to load <?php phpinfo(); ?> but just prints it Reply with quote

I've gone into apache conf files and opened up httpd, and I've inserted

LoadModule php5_module "c:/php/php5apache2_4.dll"

restarted, but I every time I load my localhost/test.php, I just see the test "<?php phpinfo(); ?>" pop out. Any suggestions why my php isn't working?

Localhost original index.html file opens up just fine reading "It Works!"..

I'm using PHP5.6 the latest one I believe. I unzipped everything in my c directory. Was I suppose to install it any other way?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 11 Feb '15 23:57    Post subject: Reply with quote

Add below the LoadModule line

AddHandler application/x-httpd-php .php
Back to top
Desamos



Joined: 11 Feb 2015
Posts: 4
Location: United States, Pasadena

PostPosted: Thu 12 Feb '15 17:10    Post subject: Reply with quote

Yeah I fogures it out. I read some instructions someone posted online very carefully. I had to put at the end of the file of httpd where my php was located "c:/php" as well as the two things you just suggested
Back to top


Reply to topic   Topic: trying to load <?php phpinfo(); ?> but just prints it View previous topic :: View next topic
Post new topic   Forum Index -> Other Software