Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: trying to load <?php phpinfo(); ?> but just prints it |
|
Author |
|
Desamos
Joined: 11 Feb 2015 Posts: 4 Location: United States, Pasadena
|
Posted: Wed 11 Feb '15 22:04 Post subject: trying to load <?php phpinfo(); ?> but just prints it |
|
|
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
|
Posted: Wed 11 Feb '15 23:57 Post subject: |
|
|
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
|
Posted: Thu 12 Feb '15 17:10 Post subject: |
|
|
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 |
|
|
|
|
|
|