Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Installation error on VPS

0

1679 views
Managed to find a MongoDB-friendly webhost.

Verified that server met all specs by running phptest.php.

Now, any attempt to access the site gives the following error:

Got exit signal in error_handler from #0 /var/www/WebSite.com/httpdocs/lib/require.php(62): require() #1 /var/www/WebSite.com/httpdocs/www/bootstrap.php(118): require('/var/www...') #2 /var/www/WebSite.com/httpdocs/www/index.php(57): require('/var/www...') #3 {main}

The error log is reporting lines like:

PHP Warning: require(bootstrap.php): failed to open stream: No such file or directory in /var/www/WebSite.com/httpdocs/www/index.php on line 57

I did rename bootstrap.dist.php to bootstrap.php

Any clues?
 
asked September 22, 2012 at 7:11 PM

 us

2 Answers

0
 
Had to rebuild the system. Now when I attempted to run phptest on the new build, I get this in the browser (this is after making the suggested change in !inc.php:

Got exit signal in error_handler. Exception: OutOfBoundsException Error "CONSTANTS" section of ini file is missing in: /var/www/vhosts/WebSite.com/httpdocs/lib/!inc.php line: 251
Trace: #0 /var/www/vhosts/WebSite.com/httpdocs/lib/require.php(62): require() #1 /var/www/vhosts/WebSite.com/httpdocs/www/bootstrap.php(118): require('/var/www/vhosts...') #2 /var/www/vhosts/WebSite.com/httpdocs/www/index.php(57): require('/var/www/vhosts...') #3 {main}

Without phptest, I get:

Got exit signal in error_handler. Exception: OutOfBoundsException Error "CONSTANTS" section of ini file is missing in: /var/www/vhosts/WebSite.com/httpdocs/lib/!inc.php line: 251
Trace: #0 /var/www/vhosts/WebSite.com/httpdocs/lib/require.php(62): require() #1 /var/www/vhosts/WebSite.com/httpdocs/www/bootstrap.php(118): require('/var/www/vhosts...') #2 /var/www/vhosts/WebSite.com/httpdocs/www/index.php(57): require('/var/www/vhosts...') #3 {main}

The message in the error log says:

PHP Warning: require(bootstrap.php): failed to open stream: No such file or directory in /var/www/vhosts/WebSite.com/httpdocs/www/index.php on line 57
[Mon Sep 24 08:59:55 2012] [error] [client 69.195.199.1] PHP Fatal error: require(): Failed opening required 'bootstrap.php' (include_path='.:/usr/local/php54/lib/php') in /var/www/vhosts/WebSite.com/httpdocs/www/index.php on line 57

In the error log, I also see

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.


Don't know if it matters, but the server is running PHP 5
flag
answered September 24, 2012 at 1:01 PM
This server is a new VPS system with nothing in it. I don't mind proving any additional info you need. The idea is to see it I can get it to work, so I can decide if it's worth moving my main site. Currently, I'm installing it in the root dir, but if it works, I intend to install it in a subdomain. The .htaccess file is in the www dir, and it is the exact one that came with LampCMS.
flag
Sep 24, 2012 01:05 PM
OK, do you have a !config.ini file and does it have [CONSTANTS] section in it?
flag
Sep 24, 2012 06:00 PM
@finid
Also exactly what version of php does your server have? Simply php 5 is not enough, it has to be at least php 5.3 (ideally 5.3.4 or above)
flag
Sep 24, 2012 06:03 PM
yep, that file exists under the config dir and there is a [CONSTANTS] section. The site url is added, and the other values I changed are email, salt cookie-salt, etc
flag
Sep 24, 2012 06:17 PM
@finid
Then the only possible explanation I may have is that your php version is too high. Do you have php 5.4 maybe? I have not tested the code with the 5.4 version. It's possible that php's ArrayObject is behaving slightly differently.
flag
Sep 24, 2012 06:19 PM
Curiously, when the VPS was first setup, it had php 5.4, but when I rebuilt it, I opted for 5.3, but they still rebuilt it with 5.4. If you think that's where the issue is, I can always rebuild it again and have them use 5.3, or just downgrade to 5.3.
flag
Sep 24, 2012 06:23 PM
@finid
Try one more thing first: In file Lampcms/Config/Ini.php around line 108 replace this line parent::__construct($aIni); with this: $this->exchangeArray($aIni); This may solve the problem. We'll see
flag
Sep 24, 2012 06:27 PM
I'm on it. Just give me a few minutes.
flag
Sep 24, 2012 06:29 PM
That line is at line 105, but no dice. Changed it, but the error is still the same.
flag
Sep 24, 2012 06:37 PM
@finid
We need to know what exactly is the contents of your Ini object. Around line 128 replace the: throw new IniException('"CONTSTATS" section is mission.... with this line. throw new IniException('"CONSTANTS" section is missing in !config.ini file: '.$this->iniFile. ' config: '.\print_r($this->getArrayCopy(), true)); Then you will hopefully have detailed error in your log and it will have a full path to !config.ini file that was used and the contents of it after it was parsed.
flag
Sep 24, 2012 06:42 PM
On the browser window, that just dumped the whole content of !config.ini. Is that what you were expecting? If it will help, I can just give the real url of the website. It is a test site and there is nothing on the VPS itself, so nothing to hide.
flag
Sep 24, 2012 06:53 PM
@finid
Yes please let me look at it
flag
Sep 24, 2012 06:54 PM
eluminix.com. Btw, nothing is being written to the error log.
flag
Sep 24, 2012 06:55 PM
@finid
That's fine, probably expected behaviour in this situation because there is some problem with config object, so the logger replies on config object to get path to log file and since it can't get path to log file it cant' log anything
flag
Sep 24, 2012 07:04 PM
Any update on this?
flag
Sep 25, 2012 05:40 PM
No further help on this?
flag
Sep 29, 2012 12:51 PM
0
 
A little strange.
Basically this error means that your bootstrap.php was found and loaded, the require.php was found and loaded
and the !inc.php was found and loaded.

Unfortunately the way php outputs the trace from exception is pretty crappy.

This is what you should do:

Open !inc.php in lib directory.
Around line 96 find this line:
echo('Got exit signal in error_handler from ' . $e->getTraceAsString());

replace it with this:
echo('Got exit signal in error_handler. Exception: '.get_class($e).' Error ' . $e->getMessage().' in: '.$e->getFile().' line: '.$e->getLine()."\n<br>Trace: ".$e->getTraceAsString());

This will at least give a much clearer error and will point us to the root of the problem. (hopefully)
flag
answered September 22, 2012 at 8:24 PM
Will do that. What about the guide for the phar-based installation? It's not in the Install.txt file.
flag
Sep 22, 2012 10:22 PM
Right now it's important to solve this issue first. It's a lot more difficult to debug phar based installation because you cannot edit any files packed in phar archive. But if you need to know about phar installation there is a hint in the bootstrap.php - just define path to phar and you dont' need to upload the 'lib' directory
flag
Sep 22, 2012 10:31 PM

Your answer

Join with account you already have

FTTF

Preview

Alert