Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd May 2011, 18:30
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 Ispconfig 3 ZendFramework

Hi
I have installed the latest version of the ZendFramework, but cannot see where I need to set the php include path.
I've set:-
ln -s release-1.11.6 current

include_path = ".:/opt/ZendFramework/current/library:/usr/share/php5:/usr/share/pear"

in:-

/etc/php5/apache2/php.ini

but this does not seem to be correct as I still receive file not found errors for the Zend php files

Brian A
Reply With Quote
Sponsored Links
  #2  
Old 23rd May 2011, 10:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Did you restart Apache?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 23rd May 2011, 10:32
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

Yes; in fact I followed the relevant part of this how to
http://www.howtoforge.com/basic-web-...zend-framework
Apache was restarted serveral time and even did a complete reboot.

Brian
Reply With Quote
  #4  
Old 23rd May 2011, 12:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Which php type have you set in the website settings in ispconfig for thsi website? Did you add any custom php.ini settings in that website?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 23rd May 2011, 15:00
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

In ISPConfig the php settings for this site are Fast-CGI.

The adddress is www.thissite.com/BookPdf.php
There are no custom php.ini settings in this site i.e we are not using set_include_path() or anything else.

Here is index.php for this folder
<?php

include_once("BookPdf.php");
include './Templates/BookConfig.php';
include './Templates/BookTemplate.php';

$pdf = new BookPdf();
$pdf->PrintBook($bookTemplatePort, $book, 4);

?>

and here is the header of the BookPdf class

require_once('Zend/Pdf.php');

class BookPdf {
//*****//
}

When we run this web address
we get
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Pdf.php' (include_path='/opt/ZendFramework/current/library/') in /var/www/clients/client1/web1/web/BookPdf/BookPdf.php on line 15

So I'm lost at the moment

Brian A
Reply With Quote
  #6  
Old 23rd May 2011, 15:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

I guess you edited the wrong php.ini file. The file /etc/php5/apache2/php.ini is for mod_php only. I you want to set a value for cgi or fastcgi, you have to edit the file /etc/php5/cgi/php.ini
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 23rd May 2011, 15:54
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

Ok I edited that file too without any change, so set the php call to the full path like this

require_once('/opt/ZendFrameWork/current/library/Zend/Pdf.php');

Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/opt/ZendFrameWork/current/library/Zend/Pdf.php) is not within the allowed path(s): (/var/www/clients/client1/web1) in /var/www/clients/client1/web1/web/BookPdf/BookPdf.php on line 15

So does this mean I should set some permissions in some place?

Brian
Reply With Quote
  #8  
Old 23rd May 2011, 15:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

First, make sure that you resatrted the apache webserver after the changes. Then add your installation path /opt/ZendFrameWork/current/library/ at the end of the open_baesir paths separated by a : in the website settings and wait a minute until your system is reconfigured.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 23rd May 2011, 16:11
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

I'm sure each time to restart apache, but I'm not sure when you say 'at the end of the open_baesir' where to find this? I don't find it the php.ini or in the ISPConfig panel.

Can you tell me where to find it.

Brian A
Reply With Quote
  #10  
Old 23rd May 2011, 16:25
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
 
Default

See website settings in ISPconfig, there is only one field with the name open_baesdir on the options tab.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

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
Control Panel - E-mail Tab is empty domi-nik General 15 14th April 2011 19:17
ISPConfig forward to VirtualBox ISPConfig Rescue9 General 3 11th March 2011 15:25
chroot SSH IspConfig2 kextra1 General 4 20th January 2011 19:41
ISPConfig 2.3.1-dev released till General 0 8th May 2006 23:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16


All times are GMT +2. The time now is 02:20.


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