500 Internal Error on .php pages

I created 2 pages, register.php and login.php.

This is what I see when I navigate to both pages:

(I coded this in: Error: connection error.) (mysql error:)

Access denied for user ‘faiqappc_admin’@‘’ to database ‘faiqappc_FBS’

I saw another post with a similar issue and I tried running these commands in cPanel terminal, but they did not work
find . -type d -exec chmod 755 {} ;
find . -type f -exec chmod 644 {} ;

What should I do to fix this?

Hi there,
Great question! This is likely an issue with your FTP client changing the default permissions on the files when uploading.

I’ve run a script at the server level that makes sure all files and folders are using the 644 and 755 permission. You should be able to see those PHP files now.

If you’re uploading a few files through FTP you can manually modify the file permissions directly in cPanel’s file manager.

If you’re uploading batches of files and folders, I would make sure to modify your FTP client’s default file permissions

This will help make sure your files are using the proper permissions to start when you’ve uploaded to your account.

Let me know if you have any other questions!

I looked at both of your recommended fixes, but nothing seems to work. Can I reach out to someone and fix this over the phone?

This topic was automatically closed after 365 days. New replies are no longer allowed.