Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 6th January 2010, 16:44
Brian_A Brian_A is offline
Member
 
Join Date: Nov 2008
Location: Paris France
Posts: 31
Thanks: 8
Thanked 3 Times in 2 Posts
Default Pear Mail in CHROOT Apache

Hi

I need to get apache which is chrooted to acces pear. So I tried first a test like this, but it fails and cannot see why.

mkdir -p /webroot/usr/share/pear
cd /webroot/usr/share/pear
cp -avr /usr/share/pear .

chown apache:apache /webroot/usr/share/pear -R

/etc/php.ini
include_path = ".:/webroot/usr/share/pear/pear"

apache restart

then run: www.idole.com/infoTest.php

<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);

require_once 'System.php';
var_dump(class_exists('System'));

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/


//set_include_path('');
phpinfo();


?>

produces:

Warning: require_once(System.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/idole.com/httpdocs/infoTest.php on line 7

Fatal error: require_once() [function.require]: Failed opening required 'System.php' (include_path='.:/webroot/usr/share/pear/pear') in /var/www/vhosts/idole.com/httpdocs/infoTest.php on line 7

So I guess there is something I don't see here. Can anyone help me fix this please

Brian
Reply With Quote
Sponsored Links
 

Bookmarks

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
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 20:43
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Would the problem come from postfix? satimis Server Operation 10 27th January 2008 10:31
Can not recieve mail with de virtual mail adress Mounir Installation/Configuration 9 24th July 2006 23:16


All times are GMT +2. The time now is 16:31.


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