I'm currently learning how to program in PHP i have recently installed LAMP server and apache2 and MySQL, i have run a bunch of commands, so i can really remember them all..
the ones i can remember is:
and when i entered Http://localhost in my browser bar i got a screen saying it worked but no content has been added.Code:apache2 php5-mysql libapache2-mod-php5 mysql-server sudo tasksel install lamp-server sudo apt-get install apache2
I tried put my test file (called index.php) into /var/www/ still not worked renamed it to index.html still not worked.
tried http://localhost/index.php and with index.html wasn't working.
i woke up today to try find out what was wrong.
BUT NOW I CAN'T ENTER Http://localhost nor http://127.0.0.1
I got a "server not found" screen like when you enter an incorrect adress
i tried to restart apache using:
but get'sCode:sudo /etc/init.d/apache2 restart
* Restarting web server apache2 apache2: Syntax error on line 233 of /etc/apache2/apache2.conf: Syntax error on line 12 of /etc/apache2/conf.d/index.php: Expected </?php> but saw </div>
and i'm lost! what do i do, PLEASE HELP ME.