Php Cannot serve directory

Hello

I just installed hestia controlpanel and put my website there. After i installed the website with phph 7.1 and a mysql database i get a white page when i visit it. I do not know if it’s my .htaccess file that is messing it up but i Believe so. It’s a short url site wich would redirect https://mysite.com/shorturl to somewhere else but that also lands on a white page when trying to access it.

I added what is in my .htaccess file if anyone got any idea on what could cause this ?

RewriteCond %{REQUEST_URI} ^(.+)~s$
RewriteRule ^(.) stats.php?url=$1 [L]
RewriteCond %{REQUEST_URI} ^(.+)~q$
RewriteRule ^(.
) generate_qr.php?url=$1 [L]
RewriteCond %{REQUEST_URI} ^(.+)~p$
RewriteRule ^(.) preview_url.php?url=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.
) r.php?url=$1 [L]

Are you sure it has apache installed. If nginx obly .htaccess doesn’t work

Hi.

It said apache is the webserver so i thought it was. I tried to stop Nginx and then i got “ERR_CONNECTION_REFUSED” when trying to visit the s ite.

How can i change from Nginx to Apache?

If apache is installed , then Nginx acts as a proxy in front of it. You need both.

There is no option for apache2 only. So please activate Nginx.

1 Like

Check if the domain points to the right IP address. Maybe there is a mistake there.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.