unable to use my website

Ok so I have everything (I thought setup correctly) I have a droplet for my site. I also am using Putty to run everything (like Apache). I am using FileZilla for the obvious reasons. Now my issue is that when I start up the apache server it gives me this “Starting web server: apache2apache2: Could not reliably determine the server’s fully qualified domain name, using for ServerName httpd (pid 20412) already running”

So instead of the server running (my droplets IP) its running This may be a super simple fix and I am just overlooking something. Also if I go to my websites IP I get this “www.’s server DNS address could not be found.”

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

@ghtv99 Your .htaccess should only be this:

RewriteEngine on
RewriteRule ^(\w+)$ index.php?page=$1 [L,NC,QSA]
RewriteRule ^(\w+)+\/$ index.php?page=$1 [L,NC,QSA]

And you don’t have ServerName defined within your VirtualHost block. Don’t you have a domain?

Hi @ghtv99

You web server is doing a failed redirect.

Can you post your VirtualHost configurations? Have a look in the directory: /etc/apache/sites-enabled/

And make sure that you don’t have any .htaccess files in your web root, which might be doing the bad redirect.

Your webserver works fine, you have some configuration that prefixes www. to the request.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel