i have a lil problem with some include_path settings on my server running on OpenSuse 10.2 with Apache2/ PHP5.2.5/ mySQL 5.0.26/ Plesk 8.3. The default(global) include_path is set to:
--
2. I created a file called vhost.conf which is included by plesk websrvmanager(in httpd.conf) while overwriting the default values to set the include_path manually to the following values
With this solution i don’t have the front- & backend include_path bug till yet (praying ), but still(and clearly) a problem with the PEAR include_path in Magento Connect resulting the following error:
Warning: require_once(PEAR.php): failed to open stream: No such file or directory in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/downloader/pearlib/php/PEAR/Registry.php on line 28 [0] in require_once() in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/downloader/pearlib/php/PEAR/Registry.php on line 28 [1] in require_once("/srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/downloader/pearlib/php/PEAR/Re") in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/lib/Varien/Pear.php on line 25 [2] in require_once("/srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/lib/Varien/Pear.php") in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/lib/Varien/Pear/Package.php on line 3 [3] in require_once("/srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/lib/Varien/Pear/Package.php") in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/app/code/core/Mage/Adminhtml/controllers/Extensions/LocalController.php on line 22 [4] in include("/srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/app/code/core/Mage/Adminhtml/c") in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 116 [5] in Mage_Core_Controller_Varien_Router_Admin->match(Mage_Core_Controller_Request_Http) in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/app/code/core/Mage/Core/Controller/Varien/Front.php on line 147 [6] in Mage_Core_Controller_Varien_Front->dispatch() in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/app/Mage.php on line 431 [7] in Mage::run("default") in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/index.php on line 40
Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='/srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento:app/code/core:app/code/community:app/code/local:lib:') in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/downloader/pearlib/php/PEAR/Registry.php on line 28
--
3. Than i started trying to include PEAR libraries. I logged in via putty/SSH and did a search, found out that the PEAR stuff is located under
/usr/share/psa-horde/pear
and wonder about the default include_path posted above.
Setup the vhost.conf -> php_admin_value include_path to
causes an error cause the class is allready declared:
/srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento:app/code/core:app/code/community:app/code/local:lib:/usr/share/psa-horde/pear:. Fatal error: Cannot redeclare _pear_call_destructors() (previously declared in /srv/www/vhosts/mydomain.de/subdomains/mysubdomain/httpdocs/magento/downloader/pearlib/php/PEAR.php:775) in /usr/share/psa-horde/pear/PEAR.php on line 796
I saw the pearlib in magento folder “downloader” but still can’t get rid of this problem, also tested to route to the pearlib PEAR within magento root.
Any help on this issue would be nice , thanks in advance…
Update
I tried to reset the include_path in ../magento/downloader/pearlib/php/PEAR/Registry.php with
BIG BIG thanks for that hint, thread could be closed. Sometimes i am to fuc*’#g blind to see… Setup the include_path as different php_value in /root/.htaccess and /root/downloader/.htaccess does it for me.