PHP

Booyah! Finally got PHP working on my Mephis server – apt-get’ed php4, uncommented out thest 2 lines in /etc/apache/httpd.conf:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Restarted apache, restarted browser, cleared cache, made sure *.php files were chmod 755,
and it’s up, up, and away!

Next, did simple include of an html footer:

<HTML>
<HEAD>
</HEAD>
<BODY>
<h2>This PHP page should include a disclaimer!</H2>
<?php
include ‘test2.inc’
?>

NOTE: For Apache2, also had to apt-get install libapache2-mod-php4!

And that’s all there is to it!

JP

Advertisements

Feel Free to Comment (Name/Email/Website optional):

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: