Jump to content

Recommended Posts

Posted

Hi,

When I tried to open a PHP file in a subdirectory of my main website, the website encountered a 500 error (screenshot attached below).

Is PHP not supported in subdirectories?

post-174521-0-91770800-1559978308_thumb.png

  • Like 1
Posted

Not everything. Only folders need to have 755 permission. Files should be set to 644.

I was too thinking about that.

Posted

The thing is, there was no .htaccess by default in the main directory. I just created it for SSL certificate.

This problem was there even before I create that file.

Posted

Wait… I think it is not a PHP problem…

So basically, in my subdirectory "beta" I tried to connect to a MySQL database using mysqli, and it showed me the 500 error.

Now I copied the files from the subdirectory to the main folder, it showed me the error when I tried to visit the main page.

I think there's something wrong with handling SQL.

Guest
This topic is now closed to further replies.
×
×
  • Create New...