I do not start apache on ubuntu

0

php from the / var / www html folder and then uninstall the apache. I reinstalled it but I do not believe the index.php. the error that gives me in the terminal is:

Job for apache2.service failed because of the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. invoke-rc.d: initscript apache2, action "start" failed.

    
asked by Rafael Hernández 20.12.2016 в 20:10
source

1 answer

1

You have to create an index.php file in the root of your VirtualHost.

Enter your folder, create an index.php. And inside I wrote a code like

<?php echo "Hola Mundo"; 

Then save and I went back to the browser.

    
answered by 20.12.2016 / 20:44
source