This is a followup on my previous question that I haven’t been able to solve https://www.digitalocean.com/community/questions/cannot-access-my-server-properly
https://check-your-website.server-daten.de/?q=178.62.111.79
https://imgur.com/a/7lQMpEt cert failure
000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName codeandchill.net
ServerAlias www.codeandchill.net
DocumentRoot /var/www/html
<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.codeandchill.net [OR]
RewriteCond %{SERVER_NAME} =codeandchill.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
I tried following the certbot but unfortunately I get a timeout for both domains (and I cannot access them), I cannot use codeandchill.net, but I have to use https://codeandchill.net
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!
Hello, @nikolamilovic
It seems like the site is taking too long to long. Have you tried restarting the Apache server? The server also might be running out of Apache workers to handle to requests and they simply build a queue and the request will be served when there is a free/spare worker to handle the process.
Regards, Alex
Hey, @nikolamilovic
Thanks for providing the screenshot. The WordPress installation is indeed hosted in the /var/www/html directory.
I wanted to double check this with you because the usual setup will include to have one additional directory in the /var/www/html which will have the have the domain name as the name of the folder and the site files will be hosted there.
Have you tried to execute strace in order to further troubleshoot the issue? It is a powerful command line tool for debugging and trouble shooting programs in Unix-like operating systems such as Linux. It captures and records all system calls made by a process and the signals received by the process. It displays the name of each system call together with its arguments enclosed in a parenthesis and its return value to standard error; you can optionally redirect it to a file as well.
You can navigate to /var/www/html the directory and execute.
strace -vvv -s 10000 php index.php
To write the trace messages sent to standard error to a file, use the -o option. This means that only the command output is printed on the screen as shown below.
strace -o debug.txt php index.php
To look through the file, use cat command.
For additional information, see the strace man page.
man strace
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.