Keywords: LAMP/MAMP/WAMP - Google Cloud Platform - Technical issue - Other
bnsupport ID: ca6bbac9-b916-034e-3d1f-79b535aa9359
At my websites static IP 188.8.131.52 I get DNX_PROBE_FINISHED_NXDOMAIN, IP address not found. At the URL cognitame.com I get HTTP ERROR 500, unable to hand this request.
Here's what I've tried so far:
- Fixed all errors showing up in the aparche2 error_log. (One was a permissions error, I had to give a folder back to root. The second was a syntax error in my header file.)
- Checked the mysqli connection file to make sure it's set up properly. (Code below.)
- Checked HTACCESS (Code below.)
- On Google Domains the DNS is set up with "custom" name servers pointing to my Google cloud nameservers.
- I added the information to DNSSEC to Google Domains
- I added resource records for @ and www for the IP to Google Domains.
- On Google Cloud DNS I'm using the default nameservers. (ns-cloud-c[1-4].googledomains.com
- I added record sets for A and CNAME (www) to GCloud DNS.
- I've installed SSL using Bitnami's configuration tool command here: https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/ That seems to have worked fine.
- That command also sets up redirection from http: to https: and non-WWW to WWW.
- I've flushed the DNS cache on my local machine.
- I've cleared the cache and cookies on my local machine and use Google Developer tools (Network -> Disable Cache) when reloading the page to check.
- Ownership of htdocs has been given to the user I created for Filezilla, permissions are set to 755.
- Outside of htdocs, permissions on my database connection file is set to 700.
Is anything wrong there? Or am I missing something?
Database connection file:
<?php # Database connect, leave file outside of public_html
DEFINE ('DB_USER', 'fakeusername');
DEFINE ('DB_PASSWORD', 'fakepassword');
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'cognitame');
$dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD,
OR die ('Could not connect to MySQL: ' . mysqli_connect_errno() . ' ' .
# Follow symbolic links.
# Add Caching.
Header set Cache-Control "max-age=86400"
# Prevent viewing of htaccess file.
deny from all
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml