Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-02-2015, 02:18 PM   #1
Registered: Aug 2007
Posts: 346

Rep: Reputation: 31
Add path to PHP, ubuntu 14.04 not working

Seems like such a simple thing, but I am moving over to some new servers, these are running Ubuntu 14.04. Apache, PHP is installed, and when I hit a webpage I get an error with a requirement missing

Fatal error: require_once(): Failed opening required 'com/log4php/Logger.php' (include_path='.:/usr/share/php:/usr/share/pear') in /websites/test1/index.php on line 22

Now, I checked via a phpinfo page that says loaded config file - /etc/php5/apache2/php.ini

I looked and edited that file under the unix section;
; UNIX: "/path1:/path2"
include_path = ".:/usr/share/php:/websites/includes"

But as you can see the error is not showing the added path. I tried putting just a plain include_path="xxx" and after restarting apache, still get the same error with the same path so it's looking like it's really not using that config file.

Any ideas or help is appreciated.
Old 06-04-2015, 09:17 PM   #2
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hey Lance,

It would seem you have a log4 daemon running somewhere on the instance. It's an apache logging service that utilizes "logger.php" (or at least that would be my guess).
Old 06-05-2015, 12:45 AM   #3
LQ Newbie
Registered: Jun 2015
Posts: 1

Rep: Reputation: 0
I also have same issue here...
Old 06-05-2015, 07:54 AM   #4
LQ Veteran
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: High Sierra
Posts: 9,108
Blog Entries: 37

Rep: Reputation: Disabled


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
Add the xyz directory to your path (what path?) Eerie Linux - Newbie 3 06-06-2012 04:48 PM
Export path with spaces - escape characters and quotes not working - Ubuntu 10.04 clustro Linux - Newbie 2 02-04-2012 06:29 AM
[SOLVED] no PATH variable set but still javac working fine in Ubuntu. How ? daudiam Linux - Software 4 06-14-2010 12:09 AM
Ubuntu - LAMP > PHP path to require_once / include_once not being found KeenAs Linux - Software 2 03-26-2009 09:08 AM
Do you add to the path line or make a new path in /etc/profile? M$ISBS Linux - Newbie 2 12-13-2006 02:14 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:31 PM.

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