User Tools

Site Tools


usersguide:apachephp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

usersguide:apachephp [2014/11/11 14:52]
127.0.0.1 external edit
usersguide:apachephp [2014/11/12 10:48] (current)
lionelsambuc
Line 1: Line 1:
 +
 +<div round info>
 +**Warning:​**
 +
 +This page has gone stale. Please help us update it!
 +</​div>​
 +
 +====== Apache and PHP ======
 +
 +(tested for Minix3 version 3.1.4-pre)
 +
 +===== Using packman =====
 +Install Apache and PHP via packman.
 +
 +===== Additional steps =====
 +Currently, installation doesn'​t have a php.ini file and httpd.conf is incomplete.
 +
 +Copy file http://​svn.php.net/​repository/​php/​php-src/​branches/​PHP_5_2/​php.ini-dist to /​usr/​local/​lib/​gcc/​php.ini
 +
 +Edit /​usr/​local/​apache/​conf/​http.conf and after
 +
 +<​code>​
 +AddType application/​x-tar .tgz
 +</​code>​
 +
 +add
 +
 +<​code>​
 +AddType application/​x-httpd-php .php
 +</​code>​
 +
 +===== Starting Apache =====
 +
 +<​code>​
 +/​usr/​local/​apache/​bin/​apachectl start
 +</​code>​
 +
 +===== Viewing phpinfo() =====
 +
 +Add a file phpinfo.php in /​usr/​local/​apache/​htdocs
 +
 +<​code>​
 +<?php
 +  phpinfo();
 +?>
 +</​code>​
 +
 +Open browse and type
 +
 +<​code>​
 +  http://​localhost/​phpinfo.php
 +</​code>​
  
usersguide/apachephp.txt · Last modified: 2014/11/12 10:48 by lionelsambuc