Open main menu
← Older edit
Newer edit →
1,034 bytes added
16:09, 5 April 2009
I have installed PHP5 with Pkg_add method
pkg_add -r php5
A) Edit Apache configuration file for PHP Configuration.
Step1: Edit the httpd.conf file make Apache aware that PHP is installed.
Step2: Put the following code in httpd.conf, near the DirectoryIndex
DirectoryIndex index.php index.html
Step 3: Insert the the following lines towards the end of the file
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Step 4: Copy php.ini-recommended to php.ini
cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini
'''B) Configure php.ini to save its sessions'''
Step1: Edit php.ini so PHP knows where to put its session files
Step2: Uncomment the following line
session.save_path = "/tmp"
'''C)Testing PHP Configuration'''
Step1: It is Just displaying the file contents.I think its not running it. Means the command
Just show me the following output
<?php phpinfo(); ?>
Retrieved from "