<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><br><div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">De:</span></b> Klaus-Peter Schrage &lt;kpschrage@gmx.de&gt;<br> <b><span style="font-weight: bold;">Para:</span></b> Fedora &lt;users@lists.fedoraproject.org&gt; <br> <b><span style="font-weight: bold;">Enviado:</span></b> Miércoles, 28 de diciembre, 2011 8:28:44<br> <b><span style="font-weight: bold;">Asunto:</span></b> Enable PHP on local Apache2 server<br> </font> <br>I have set up a local webserver for testing static html (of which I
 have some basic knowledge) and dynamic html (which is quite new to me). After I had set proper permissions on /var/www/ and had copied my testfiles to the appropriate locations, httpd worked out of the box (i. e. with the original httpd.conf that came with Fedora 16). I could run Perl scripts (e. g. a guestbook) in cgi-bin, but no PHP scripts. Apache's error log gave:<br><br>(8)Exec format error: exec of '/var/www/cgi-bin/test.php' failed<br>Premature end of script headers: test.php<br><br>The script test.php simply calls phpinfo() and works on my hired external webspace, so this must be a configuration issue with my local webserver. Strange enaugh, I didn't find many clues on enabling PHP in the Apache.org documentation and even elsewhere.<br><br>Thanks for any pointers<br>Klaus<br><br>-- users mailing list<br><a ymailto="mailto:users@lists.fedoraproject.org" href="mailto:users@lists.fedoraproject.org">users@lists.fedoraproject.org</a><br>To
 unsubscribe or change subscription options:<br><a href="https://admin.fedoraproject.org/mailman/listinfo/users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/users</a><br>Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines" target="_blank">http://fedoraproject.org/wiki/Mailing_list_guidelines</a><br>Have a question? Ask away: <a href="http://ask.fedoraproject.org" target="_blank">http://ask.fedoraproject.org</a><br><br><br><br><br>Try moving the file to /var/www/html/test.php<br><br>DK<br> </div> </div> </blockquote></div>   </div></body></html>