I installed OpenBSD 3.6, for use as a web server. I got apache up and running, and then I did a "pkg_add php-core-4.3.8.tgz". That worked fine, so I loaded the recommended php.ini settings and added "AddType application/x-httpd-php .php" and "LoadModule php4_module /usr/lib/apache/modules/libphp4.so" to httpd.conf.
Strangely, when I load up an index.php file onto the web server, it's blank. It works with a .html file, though. So why does my server not like PHP? Thanks.
-> Apache not Php'ing <-
Moderator: General Moderators
It's completely blank. But when I go to "view source", it says:
<html><body></body></html>
When it should say:
<?php system("uptime");
system("uname -a"); <BR>
system("free -m"); <BR>
system("df -h"); <BR>
system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
I've also tried it one line at a time and without the <BR>'s. Thanks for the reply.
<html><body></body></html>
When it should say:
<?php system("uptime");
system("uname -a"); <BR>
system("free -m"); <BR>
system("df -h"); <BR>
system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
I've also tried it one line at a time and without the <BR>'s. Thanks for the reply.