Author Topic: internal server error and 503 permissions  (Read 182 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
internal server error and 503 permissions
« on: November 08, 2017, 02:06:22 PM »
Hi guys.
Iím having a problem with permissions and I think it may be due to the php version Iíve installed on the server.
Emails give an error forbidden 503 and so do the websites and also if I try and view websites through account and ip address I get an internal server error 500.
Just before these errors occurred the server was working fine and then httpd service failed. As I was unable to restart the service I used yum to reinstall and start the service. I then took the opportunity to upgrade the server php version from 5.3 to 7.0 and it seems that that has caused the problems I have now.
In a bid to sort that problem out I reverted back to php version 5.3 by rebuilding the selector and then restarting the httpd service. The problem continued.
Looking in Apache2 error log I see the following:
Code: [Select]
[Wed Nov 08 14:04:41.081278 2017] [:error] [pid 27686:tid 140447787747072] [client 46.229.168.66:11298] Failed loading /usr/local/php56/lib/php/extensions/ZendOptimizer.so:  /usr/local/php56/lib/php/extensions/ZendOptimizer.so: cannot open shared object file: No such file or directory300mb of log saying the same two errors.
So I rebuilt php 5.3 from selector and included ioncube and zen in the build. I then ran the following command
Code: [Select]
sh /scripts/update_ioncuberestarted httpd services and the problem is still there.
Any ideas please.
« Last Edit: November 08, 2017, 02:19:54 PM by Steff »

Offline
*
Re: internal server error and 503 permissions
« Reply #1 on: November 11, 2017, 09:58:41 PM »
you need to remove zend from your php include files since it works only with php 5.

simply check where its included and remove that line


VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: internal server error and 503 permissions
« Reply #2 on: November 13, 2017, 07:29:36 PM »
Thank you so much studio4host.
I found an entry in the php.ini of one of the websites i was hosting and removed the entry. Not only did it stop the log file filling up it also fixed the internal server error.