Internal Server Error during installation

Permalink
Hopefully someone can help me ASAP with an install error of 5.7.4+

I had an issue a few days ago with an install of 5.7.4 showing a red box with "Internal Server Error". I thought it might have been a server HDD allocation (as I realsied we still had it on a parked package with only 200MB). After upping them to a proper package (with 2GB) I tried again today, deleting everything, and starting from scratch after downloading the latest C5 release 5.7.4.2.

Unfortunately the same thing happened again. I tried to install again - by simply going to {site}\index.php - entered my details, pressed install, and it came up with "There are already 206 tables in this database..."

I then deleted the My SQL database (and the user), created it again, then tried again, all looked good...until the same, "Internal Server Error".

I've attached a screensnap of the error and the sites error_log file.

The log seems to point to something missing, refering to line 257 of install.php:
require(DIR_CONFIG_SITE . '/site_install.php');

We've already got behind with this site and we have content ready to put up...but just can't get anything happening. Can someone please help. Thanks in advance.

BTW, all folders have persmissions set to 755 and individual files set to 644 (default settings).

Cheers,
Brett...

2 Attachments

BrettDashwood
 
mesuva replied on at Permalink Best Answer Reply
mesuva
I think I saw something like this the other day.

I'm pretty certain it was when a default PHP install had eaccelerator on, and maybe suhosin (but I've got a feeling it's just eaccelerator).

The solution was (if you are using cPanel), to change your PHP version in cPanel to a non-native/default version of PHP, such as PHP5.5. Then you can turn off eaccelerator off (which is outdated anyway), and suhosin. Then after install, I'd turn suhosin back on.
BrettDashwood replied on at Permalink Reply
BrettDashwood
Thank you, thank you, thank you!

I changed to PHP 5.5, recreated database, tried again and all good.

I am using cPanel. eaccelerator and suhosin are not available as setting options for PHP 5.5 (they are for 5.4 and 5.3).

Is there something specific that you think I need suhosin for?
mesuva replied on at Permalink Reply
mesuva
Suhosin is really just some extra security hardening stuff for PHP. It's not needed for any features as such, it's just something that was good to have for PHP5.3 and 5.4.

It may actually be already compiled in for the PHP5.5 version installed, or it may not actually be necessary for 5.5. It's arguably more important to use a recent version of PHP than it is to use an older one with suhosin. Many servers appear to have Mod Security installed these days, which also provides some protection anyway.

As a sidenote, while you are looking at your PHP options, if you have opcache available as an option, and apcu, you might want to try turning them on to see if you have any speed improvements. YMMV.
BrettDashwood replied on at Permalink Reply
BrettDashwood
Thanks for the tip. They were both options and I've turned them both on (blindly from your advice ;-)

BTW, do you think the system requirements should be updated? If not to say PHP verison 5.5, at least to say if 5.3.3+ or 5.4 turn off the eaccelerator and suhosin options?
mesuva replied on at Permalink Reply
mesuva
Well as you're the second person I've seen with this issue, yes I do think they should be updated!
srjahir32 replied on at Permalink Reply
srjahir32
Im on cPanel. Where Can i find eaccelerator to turn it off ?
BrettDashwood replied on at Permalink Reply 2 Attachments
BrettDashwood
If you can change your PHP version to 5.5 eaccelerator is no longer an option.

But if you have to keep the version of PHP you have and want to turn eaccelerator off, then go down to the Software and Services section, then select Select PHP version. Once on that page, click the version down arrow and select another version (or the same version you're on, don't worry, nothing changes until you press Set as current) and then the settings will come up. If eaccelerator is an option in your version, then it will be in the list to optionally turn off. If it's not there on your version, it's not an option.

See screensnaps attached.

Hope this helps.
srjahir32 replied on at Permalink Reply 1 Attachment
srjahir32
I do not have any option for selecting php version.
And I am getting internal server error, on installation of concrete 5.7.4

Attached screenshot.
BrettDashwood replied on at Permalink Reply 1 Attachment
BrettDashwood
In that case, if you don't control your Control Panel Features, then you need to ask your domain admin to do so.

WebHost Manager (WHM) is the account manager for Control Panel accounts.

See the attached screensnap, you (or they) need to modify the Features (under Packages) and activate the Select PHP version setting under the Feature List that your Control Panel is controlled by.

Good luck.