My site is down eventhough its says it is running

my site is down eventhough its says it is running

You’ve forget to give us vital information to allow us to assist you.

You must provide your 000webhostapp URL in future for help with anything.

So when I visit your website I see a 500 error.

This normally means a bad .htaccess or code on your behalf.

I’ve checked your public_html and it doesn’t have a .htaccess so I will rule that out.

I’ll use a piece of code

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

To display the errors on your index.php page

Now we get a more user friendly error if you can call it that.


Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] ProxySQL Error: Access denied for user ''@'2a02:4780:bad:f00d::13' (using password: NO) in /storage/ssd4/560/10108560/public_html/inc/config.php:9 Stack trace: #0 /storage/ssd4/560/10108560/public_html/inc/config.php(9): PDO->__construct('mysql:host=loca...', '', '') #1 /storage/ssd4/560/10108560/public_html/index.php(9): include('/storage/ssd4/5...') #2 {main} thrown in /storage/ssd4/560/10108560/public_html/inc/config.php on line 9

Basically you need to setup the configuration of your script correctly.
You can use the “Manage Database” on 000webhost.com panel to create yourself a
database, username and password and using localhost as the host you can input this into your script to run it.

It is always worthwhile to follow documentation from your script author/developer to aid you to installing it without hitting these issues in future :slight_smile: