I'm using ubuntu Linux 12.04 LTS on my machine. I was using PHP 5.3.10 Now I upgraded to PHP 5.5.18 by using few commands on terminal. After I upgraded to latest PHP version I checked the version by using command php -v. It shown me the PHP version is 5.5.18. But when I tried to access one directory from the folder "www" i.e. document root I'm getting error "Unable to connect" in browser. When I enter only localhost in address bar "It Works" is the message appearing.
So I tried to restart the apache server ny using following command :
sudo service apache2 restart
then I got following error :
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 214 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
After reading this message I go to the file /etc/apache2/httpd.conf
and checked line no. 214 there I got found following statement written :
Include httpd.conf
So can someone please help me in working the thing as it is like previous for me? Please suggest me the ways I can fix this issue.
Thanks on advance.