User Tools

Site Tools


releases:3.2.0:usersguide:apachephp

Differences

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

Link to this comparison view

releases:3.2.0:usersguide:apachephp [2014/11/11 08:52]
127.0.0.1 external edit
releases:3.2.0:usersguide:apachephp [2014/11/14 08:03] (current)
lionelsambuc
Line 1: Line 1:
 +====== 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>​
  
releases/3.2.0/usersguide/apachephp.txt · Last modified: 2014/11/14 08:03 by lionelsambuc