LAMP installation problem help me please !!

September 20, 2014 684 views


in this post everything was going well but after the line :Step Three — Install PHP
PHP is the component of our setup that will process code to display dynamic content. It can run scripts, connect to our MySQL databases to get information, and hand the processed content over to our web server to display.

We can once again leverage the apt system to install our components. We're going to include some helper packages as well:

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

after that when i used :sudo nano /etc/apache2/mods-enabled/dir.conf
it took me to a blank page but actually the page needed to contain some texts :
<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm

buy for mine its empty and when i entered the code in that page it say there isnt such file exist
what should i do ?

1 Answer

That is odd. You can also drop the DirectoryIndex directive and contents directly into your apache configuration file for the individual virtualhost by adding it inside the <VirtualHost> block in /etc/apache2/sites-enabled/default

Have another answer? Share your knowledge.