Jump to content

Problem installing php5 - apache2


Recommended Posts

Greetings guys

 

i'm installing php5 with apache 2 on server...

 

Problem 1 : with normal configuration, php files not run, but proposed to download

Problem 2 : with upgrade configuration for php5(see below) , php files not run.

 

I've tried to fix in this way with httpd.conf... but doesnt run

Listen 192.168.1.10:81
...
LoadModule php5_module C:/Programmi/php/php5apache2.dll 
...
AddType application/x-httpd-php .php
AddType application/x-httpd-php .htm

 

 

what i can check to fix php5 run correctly?

Link to comment
https://forums.phpfreaks.com/topic/41288-problem-installing-php5-apache2/
Share on other sites

What version of Apache2 are you using 2.0.x or 2.2.x?

 

If its 2.2.x then the module you will want to use is php5apche2_2.dll - this module only comes with PHP5.2.x or later. Apache2 is not compatible with PHP5.1.x or earlier.

 

Also these lines:

AddType application/x-httpd-php .php
AddType application/x-httpd-php .htm

 

Can be just one line:

AddType application/x-httpd-php .php .htm

Example : on a php page I see in the code

 

<form name="form1" method="post" action="">
  <div align="center">
    <input name="pw" type="text" size="80">
    <input type="submit" name="Submit" value="Calcola MD5">
  </div>
</form>

<?
if ($_POST['pw'])
{
echo md5($_POST['pw']);
}
?>

[c/ode]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.