Apache server ready for PHP
Explain in detail what changes I should make in the httpd.conf and any other configuration files to make the Apache server ready for PHP
Explain in detail what changes I should make in the httpd.conf and any other configuration files to make the Apache server ready for PHP
First you have to open the httpd.conf file using gedit or any text editor. Then locate the section shown below,
This enables the Apache server to recognize the PHP files to parsed using php engine.
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
AddType application/x-tar .tgz
AddType image/x-icon .ico
Then add the following lines to it:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Now you can download the source code for the php.
Then extract it using this command
make
make install
Then you can issue the following command to copy the php.ini file to the “lib” directory.
cp php.ini-dist /usr/local/lib/php.ini
Now you have to restart the apache server for test.
/etc/init.d/httpd restart
I have no idea configuring Apache Server but I know when you have a copy or installed XAMP or WAMP in your computer, PHP is ready to use.
Both XAMP and WAMP are using Apache Server. When installing this two applications or package, I could create a PHP project after then. All you need to do is put your PHP code in the right folder that PHP is using to execute PHP codes.
This is the best tool I have used for both PHP and SQL server. Just find it on Google. So many available download links are available. Configuration is too easy, just install and work.