Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

cakephp v1.3.2 unchanged at /var/www/cakephp displays the cakephp default index page
cakephp v1.3.2 unchanged at /var/www/iloved prompts me to download a phtml file

a2enmod php5 says php5 is installed
apache2 was restarted

Why? How to solve?

phpmyadmin is installed, but not loading too (localhost/phpmyadmin says Not Found)

share|improve this question

1 Answer 1

up vote 0 down vote accepted

The troubleshoot for "apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" works for download prompt instead of site too.

It's like this:

use a text editor such as "sudo nano" at the command line or "gksudo gedit" on the desktop to create a new file,

sudo nano /etc/apache2/conf.d/fqdn

or

gksu "gedit /etc/apache2/conf.d/fqdn"

then add

ServerName localhost

to the file and save. This can all be done in a single command with the following:

echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.