I wanted to have a second wordpress webpage on my Linode, getting Connection Refused on the new domain

Hello,

I had a functional Wordpress webpage that worked with a domain.
I wanted to make a second webpage with a new domain that would be hosted on the same Linode.

Now the first domain still opens its webpage correctly, but the new domain says 'Web refused the connection'. I expected there would be the Wordpress installation webpage.

What I did was following this guide https://www.linode.com/docs/websites/cms/configure-apache-to-run-multiple-wordpress-sites-on-one-linode/
However, I had already one working so only did these steps for the new page.

Any help would be appreciated, thank you.

Edit: Please ask for any additional info if needed

Edit2: I find out that I can't apparently restart apache2, dont know why.

root@Example:~# sudo systemctl restart apache2

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

root@Example:~# sudo service apache2 restart

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

root@Example:~# journalctl | tail

Jun 23 18:37:38 Example systemd[1]: Failed to start LSB: Apache2 web server.

Jun 23 18:37:38 Example systemd[1]: apache2.service: Unit entered failed state.

Jun 23 18:37:38 Example systemd[1]: apache2.service: Failed with result 'exit-code'.

Jun 23 18:37:38 Example sudo[3760]: pam_unix(sudo:session): session closed for user root

Jun 23 18:37:57 Example sshd[3779]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=61.177.172.97 user=root

Jun 23 18:37:58 Example sshd[3779]: Failed password for root from 61.177.172.97 port 42183 ssh2

Jun 23 18:38:00 Example sshd[3779]: Failed password for root from 61.177.172.97 port 42183 ssh2

Jun 23 18:38:03 Example sshd[3779]: Received disconnect from 61.177.172.97 port 42183:11: [preauth]

Jun 23 18:38:03 Example sshd[3779]: Disconnected from 61.177.172.97 port 42183 [preauth]

Jun 23 18:38:03 Example sshd[3779]: PAM 1 more authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=61.177.172.97 user=root root@Example:~# cd /etc/apache2

root@Example:/etc/apache2# apache2ctl configtest

(2)No such file or directory: AH02291: Cannot access directory '/var/www/html/webpage2.com/logs/' for error log of vhost defined at /etc/apache2/sites-enabled/webpage2.com.conf:6

AH00014: Configuration check failed

Action 'configtest' failed.

The Apache error log may have more information.

1 Reply

Since the Apache configtest isn't working I'd suggest running it again (since it's been a bit) then providing the output of a tail of the Apache log that should live at /var/log/apache/error.log or wherever you've defined it in your configuration.

You may also want to restart the Apache service again and provide the output of journalctl as outlined below

journalctl -u apache2.service -n 50

This command will give us more specific entries for the issues with you Apache service/configs in case it was missed in the general output you grabbed above.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct