When you miss that common thing: The php configuration
I do not remember how many times in last five years i have decided to learn LAMP and made all the configuration and after few days/week i lost the track.
This time i have started it all over again on my Ubuntu 12, with the Apache 2.2.22, MySQL 5.5.31 and PHP 5.4.6.
I have completed the installation of all the four components of the LAMP and started to run my first php script. Yes that legendary "Hello World", but i could not able to show anything on my mozilla firefox browser.
Then after few days i open the pdf which i am referring for the LAMP study and started it from the first page. Under the chapter which contains the installation and configuration of php i have found the following line of code which needs to be added in the apache configuration file. So i have opened my apache2.conf file which lies in /etc/apache2 and added the following line of code and restarted the apache.
AddType application/x-httpd-php .php
This statement will ensure that the php engine will parse the file that end with .php extension. The AddType directive binds a MIME type to a particular extension or extensions,
I do not remember how many times in last five years i have decided to learn LAMP and made all the configuration and after few days/week i lost the track.
This time i have started it all over again on my Ubuntu 12, with the Apache 2.2.22, MySQL 5.5.31 and PHP 5.4.6.
I have completed the installation of all the four components of the LAMP and started to run my first php script. Yes that legendary "Hello World", but i could not able to show anything on my mozilla firefox browser.
Then after few days i open the pdf which i am referring for the LAMP study and started it from the first page. Under the chapter which contains the installation and configuration of php i have found the following line of code which needs to be added in the apache configuration file. So i have opened my apache2.conf file which lies in /etc/apache2 and added the following line of code and restarted the apache.
AddType application/x-httpd-php .php
This statement will ensure that the php engine will parse the file that end with .php extension. The AddType directive binds a MIME type to a particular extension or extensions,