I have read countless answers and tried countless methods:
- how reinstall apache2?
- How can I host a domain/website on my new VPS?
- https://stackoverflow.com/questions/5121495/php-code-is-not-being-executed-instead-code-shows-on-the-page
- https://stackoverflow.com/questions/18086011/why-is-php-not-running
Currently running:
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
I installed it using this guide from digital ocean.
I've followed other guites to purge and reinstall but it has not worked. I can't see this DARN it WORKS page after I install it.
This is in my apache2.conf file:
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"
#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
This is in my 000-defualt.conf file:
<VirtualHost *:80>
.
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Any help is much appreciated!
Note:
- I did NOT INSTALL any additional packages as per Digital Oceans guide.
- I can't fine anything when I got here
http://myserver ip
But if I run curl http://icanhazip.com
it will show the raw code.
Almost giving up on this!
telnet server_ip 80
? – AzkerM Mar 16 '17 at 13:43sudo service apache2 status
? – Organic Marble Mar 16 '17 at 13:46