Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th March 2010, 14:34
Focus Focus is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Lightbulb SOLVED! eAccelerator - open_basedir restriction. In Unknown on line 0

Hi,

I have a webserver with ISPConfig 3 installed and running smoothly but it is very slow. So I decided to install eAccelerator, seemingly without any hazzle.

Now, when I hit the page, I get this error:

Quote:
Fatal error: Can't load /var/www/mywebsite.com/web/index.php, open_basedir restriction. in Unknown on line 0
Can anyone give me a hint about what could possibly be the problem?


My php looks like this:

Quote:
PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan 6 2010 22:56:44)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.6, Copyright (c) 2004-2010 eAccelerator, by eAccelerator

And my eaccelerator.ini file:

Quote:
zend_extension = "/usr/lib/php5/20060613/eaccelerator.so"
eaccelerator.shm_size = "0"
eaccelerator.cache_dir = "/var/cache/eaccelerator"
eaccelerator.enable = "1"
eaccelerator.optimizer = "1"
eaccelerator.check_mtime = "1"
eaccelerator.debug = "0"
eaccelerator.filter = ""
eaccelerator.shm_max = "0"
eaccelerator.shm_ttl = "0"
eaccelerator.shm_prune_period = "0"
eaccelerator.shm_only = "0"
eaccelerator.compress = "1"
eaccelerator.compress_level = "7"
eaccelerator.allowed_admin_path = "/var/www/eaccelerator"

Kind regards
Focus

Last edited by Focus; 17th March 2010 at 02:14.
Reply With Quote
Sponsored Links
  #2  
Old 17th March 2010, 02:12
Focus Focus is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

SOLVED!

Necessity is the mother of invention ;-)

After a lot of trial and error I took at look inside the /etc/apache2/sites-enabled folder, where ISPConfig saves the individual site configuration in files like this one:

somewebsite.com.vhost

Here I simply uncommented the line beginning with:

Quote:
# php_admin_value open_basedir /var/www/clients/client2/web9/web:/var/www/clients/client2/web9/tmp...blablabla...
And eAccelerator started immediately the caching mechanism. Works like a charm and what a performance boost!

So there is maybe one question left now.

Can I live without php_admin_value open_basedir ...blablabla..?
Reply With Quote
  #3  
Old 16th June 2010, 11:50
lifodesbois lifodesbois is offline
Junior Member
 
Join Date: Jun 2010
Posts: 3
Thanks: 0
Thanked 2 Times in 1 Post
 
Default

Quote:
Originally Posted by Focus View Post
SOLVED!

Necessity is the mother of invention ;-)

After a lot of trial and error I took at look inside the /etc/apache2/sites-enabled folder, where ISPConfig saves the individual site configuration in files like this one:

So there is maybe one question left now.

Can I live without php_admin_value open_basedir ...blablabla..?
After many days of google-ing, I've found the right solution under F12.
The pb was at eaccelerator.

To properly handle both eaccelerator & open_basedir, you have to rebuild php-eaccelerator with the configure option set to:
--without-eaccelerator-use-inode

I've also found that this option should be unavailable in future release of EA.

Now, all works well !

Regards,
Reply With Quote
The Following 2 Users Say Thank You to lifodesbois For This Useful Post:
falko (17th June 2010), till (13th July 2010)
Reply

Bookmarks

Tags
eaccelerator, ispconfig 3, open_basedir

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SugarCRM Install on ISPConfig3 w/ SuPHP clucena Installation/Configuration 1 9th February 2010 10:29
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 14:06
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18
help on /etc/rc0.d/K20dnsctl -> ../init.d/dnsctl zimele General 13 23rd August 2006 17:06


All times are GMT +2. The time now is 07:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.