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
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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.