Question

wordpress website not working

hi basically i’v setup my wordpress droplet correctly now i brought cvrsocial.uk from cloudflare, but when i put that domain in my browser i’m getting host error now matt told me to check my logs so i have and im getting this

root@wordpress611onubuntu2204-s-1vcpu-1gb-nyc1-01:~# systemctl start apache2
Failed to start apache2.service: Unit apache2.service is masked.
root@wordpress611onubuntu2204-s-1vcpu-1gb-nyc1-01:~# journalctl -u apache2.service -xe
Apr 19 21:13:24 wordpress611onubuntu2204-s-1vcpu-1gb-nyc1-01 systemd[1]: Starting The Apache HTTP Server...
░░ Subject: A start job for unit apache2.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A start job for unit apache2.service has begun execution.
░░ 
░░ The job identifier is 5046.
Apr 19 21:13:24 wordpress611onubuntu2204-s-1vcpu-1gb-nyc1-01 apachectl[17845]: AH00558: apache2: Could not relia>
Apr 19 21:13:24 wordpress611onubuntu2204-s-1vcpu-1gb-nyc1-01 systemd[1]: Started The Apache HTTP Server.
░░ Subject: A start job for unit apache2.service has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A start job for unit apache2.service has finished successfully.
░░ 
░░ The job identifier is 5046.
Apr 19 21:14:32 wordpress611onubuntu2204-s-1vcpu-1gb-nyc1-01 systemd[1]: Stopping The Apache HTTP Server...
░░ Subject: A stop job for unit apache2.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A stop job for unit apache2.service has begun execution.
░░ 
░░ The job identifier is 5758.
Apr 19 21:14:32 wordpress611onubuntu2204-s-1vcpu-1gb-nyc1-01 apachectl[18589]: AH00558: apache2: Could not relia>
Apr 19 21:14:32 wordpress611onubuntu2204-s-1vcpu-1gb-nyc1-01 systemd[1]: apache2.service: Deactivated successful>
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit apache2.service has successfully entered the 'dead' state.
Apr 19 21:14:32 wordpress611onubuntu2204-s-1vcpu-1gb-nyc1-01 systemd[1]: Stopped The Apache HTTP Server.
░░ Subject: A stop job for unit apache2.service has finished
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A stop job for unit apache2.service has finished.
░░ 
░░ The job identifier is 5758 and the job result is done.

I’v also spoken to cloudflare on discord there saying there DNS is correctly configured matts been through somethings with me yes the Droplets firewall is configured


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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 20, 2023

Hi there,

Usually once you make a DNS change it can take up to 24 hours before you can see the new records.

I’ve just tested your website and it seems like that it is loading correct, however it is redirecting to your server IP address.

This is most likely caused by your WordPress site and home URLs. You can change your WordPress site and home URLs by editing your wp-config.php file and adding the following lines:

define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' );

Also make sure to update any redirects that you have in your Apache virtual host that might be causing that redirect.

Let me know how it goes!

Best,

Bobby

Try DigitalOcean for free

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

Sign up

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