0

I recently uploaded a website for a friend in byethost just for viewing purposes. When I tried to check if it is working, all HTML pages are working correctly but when I access php pages a server error 500 occurs. What can be the problem?

I have checked for a .htaccess files as many forums here suggests but to no avail since my account does not have that page. It only occurs when I alter php configuration in the cpanel which suggests to put magic quotes 'on' or 'off' but after, the php page displays no server error but it displays a blank.

I had edited the connection php page to "@ mysql...." Instead of "mysqli" can this be the reason? And can anyone help me with this problem?

Bowdzone
  • 3,827
  • 11
  • 39
  • 52
  • Post your database connection code...done – William Madede Dec 21 '15 at 09:46
  • error 500 can have many reasons, most of them are server-side, if you have access to error log on your server. Try upload blank(empty) `php` file and if even this throw error 500, you should contact websupport. If simple php file is working, problem is in your script – Pepo_rasta Dec 21 '15 at 09:50
  • What changes should I do to the script since I had uploaded recently to that account a joomla working website and it had no problem but I removed it since my friend wasn't impressed with it and I had to use Dreamweaver to create the website. – martin wanjohi Dec 21 '15 at 09:55

1 Answers1

0

You need some debugging. In your php file:

ini_set('display_errors', 1);

In .htaccess file:

php_flag display_errors 1

Also, you might want to check this out: Getting Internal Server Error while trying to access my site

Community
  • 1
  • 1
Slavisa Perisic
  • 1,110
  • 3
  • 18
  • 32
  • Thanks for posting that link, it has helped me learn something new but I haven't found a solution, I have downloaded winScp and modified the permissions to 0711,0755.0644,0744 and 7777 but it still displays a blank page when I reload, I have also set. The ddebug code inone of my php pages and i .htaccess The other but still nothing. – martin wanjohi Dec 21 '15 at 10:42