2) Unpack, -tar xzf php-5.x.x.tar.gz
3) Go to Unpack folder to configure, ./configure --prefix=(PHP5 PATH)/php --with-apxs2=(Apache2 PATH)/bin/axps
Tips: ./Configure -help to look for more options which turn on additional features on your own preference.
4)After configure is done, type:
- make
- make install
5) Edit httpd.conf,
- If cant find then add: Include (PATH)/php5.conf
6) Edit php5.conf,
- If cant find then add: AddType application/x-httpd-php .php
- Make sure this file had added the following:
- AddHandler application/x-httpd-php .php
- DirectoryIndex index.php
7) Make sure php.ini file exist in the correct folder, (PATH)/apache2/php.ini
- Search the file by typing: find / -name php.ini
8)Restart your Apache Server.
Additional Setups,
To enable Zip Extension, Edit php.ini,
- add the line: extension=zip.so
- find zip.so file and make sure the file is executable.
- To change zip.so executable, type: chmod +x zip.so **make sure you have root access.
- Restart Apache Server.
No comments:
Post a Comment