guybrush Posted March 5, 2007 Share Posted March 5, 2007 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? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 5, 2007 Share Posted March 5, 2007 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 Quote Link to comment Share on other sites More sharing options...
karthikeyan_coder Posted March 5, 2007 Share Posted March 5, 2007 i encourage manual configurations... but if you need a faster solution for apache/mysql/php configuration.. then use WAMP Server... Check out details about wamp in http://secureslash.com/PHP-Tutorial-For-Beginner.html Quote Link to comment Share on other sites More sharing options...
guybrush Posted March 6, 2007 Author Share Posted March 6, 2007 Finally I decided to installa appserv, the all-in-one tool now feel better... BUT Php code is not executed and i can see php code any place to fix? Quote Link to comment Share on other sites More sharing options...
guybrush Posted March 6, 2007 Author Share Posted March 6, 2007 I've installed WAMP to make it easy When I try access a file, this is the error log: [error] [client 192.168.1.10] client denied by server configuration: E:/web/phinfo.php what i can do? Quote Link to comment Share on other sites More sharing options...
guybrush Posted March 6, 2007 Author Share Posted March 6, 2007 This happens on server. Installing wamp on pc, i see php code not executed Quote Link to comment Share on other sites More sharing options...
guybrush Posted March 6, 2007 Author Share Posted March 6, 2007 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] 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.