LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-27-2007, 01:18 PM   #1
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
include_path for Zend


Hi!

I wanted to try the Zend FW but I cant get it working. I copied the Zend dir to /usr/share/lib/php dir so there is a dir Zend. In it there are the mail.php and all the other files the require part of the Zend files are trying to get. I also set up the /etc/php5/apache2/php.ini file.
include_path = ".:/usr/share/lib/php"
after that
/etc/init.d/apache2 reload
I tried restart too. In the phpinfo() I can see the include path. But when I write a script:
PHP Code:
<?
require_once("Zend/Mail.php");
?>
I get an error that the location does not exist.
Quote:
Warning: require_once(Zend/Mail.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/webmail/index.php on line 3
So what else do I need to do? I am using Ubuntu
 
Old 08-28-2007, 08:32 AM   #2
rvandell
LQ Newbie
 
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
include_path for Zend

<?php
Note:
Best to use the formal opening.

what does your command line return?
 
Old 08-29-2007, 09:35 PM   #3
benjieo
LQ Newbie
 
Registered: Jan 2007
Location: Anitpolo City, Philippines
Distribution: RedHat, Fedora and CEntOS
Posts: 4

Rep: Reputation: 0
Smile

What user are you using? Is it root or ordinary user (apache)??
 
Old 09-02-2007, 02:54 AM   #4
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Original Poster
Rep: Reputation: 30
Hi!

I am using apache2 on ubuntu. If u need I can post u the phpinfo output.
The interesting thing is that it works now with the formal opening however it should work with the non-formal one too, shouldn't it?
 
Old 09-03-2007, 04:07 AM   #5
benjieo
LQ Newbie
 
Registered: Jan 2007
Location: Anitpolo City, Philippines
Distribution: RedHat, Fedora and CEntOS
Posts: 4

Rep: Reputation: 0
Have you tried using root as your user?
 
Old 09-03-2007, 11:36 PM   #6
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Original Poster
Rep: Reputation: 30
I did not. It was easier for me to just chown user:user the /var/www dir. That way I could write and read it without any problem with Eclipse. I will try different ownerships now, let's see what is going to happen.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
to setup include_path in php.ini for pear sailu_mvn Linux - Software 1 07-13-2006 03:10 AM
IRM 1.5.7 include_path error bussxr Linux - General 0 06-04-2006 08:55 PM
Failed opening '../main/mainconfig.php' for inclusion (include_path='.:/usr/local/lib ryancoolest Linux - Newbie 3 09-29-2004 09:10 PM
(include_path='.:/usr/share/pear) ???? bentman78 Linux - Software 2 07-11-2003 02:09 PM
Reinstalled Zend Cache and Zend Optimizer jeremy LQ Suggestions & Feedback 0 05-11-2001 11:44 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration