PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 14th, 2006, 08:15 AM
motin motin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 72 motin User rank is Lance Corporal (50 - 100 Reputation Level)motin User rank is Lance Corporal (50 - 100 Reputation Level)motin User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 7 h 26 m 45 sec
Reputation Power: 6
Cannot include existing, chmod 777:ed files despite correct include-path (SOLVED)

I have a strange problem getting PEAR-related files to even be able to be included / used in my scripts:

Code:

PHP Code:
include_once('Mail.php'); 


Error:

Warning: include_once(Mail.php) [function.include-once]: failed to open stream: Filen eller katalogen finns inte in /home/motin/Dev/Pdev/trunk/proc/basicFunctions.inc.php on line 15

Warning: include_once() [function.include]: Failed opening 'Mail.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /home/motin/Dev/Pdev/trunk/proc/basicFunctions.inc.php on line 15

The /opt/lampp/lib/php is chmodded 777 for diagnosis and apache is run as nobody.

Manual checks:

motin@laptop:~$ ls /opt/lampp/lib/php/Mail.php -l
-rwxrwxrwx 1 motin users 8066 2005-08-15 18:12 /opt/lampp/lib/php/Mail.php
motin@laptop:~$ sudo su nobody
Password:
sh-3.1$ ls /opt/lampp/lib/php/Mail.php -l
-rwxrwxrwx 1 motin users 8066 2005-08-15 18:12 /opt/lampp/lib/php/Mail.php
sh-3.1$

Include works great when Mail.php is moved to the same folder, and with other include-paths (like /home/motin/Dev/Pdev/trunk/proc/Smarty) including works fine.

Safe mode is on, but there is no mentioning about safe mode restrictions above so...

Where to go from here...?

Reply With Quote
  #2  
Old April 14th, 2006, 08:25 AM
motin motin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 72 motin User rank is Lance Corporal (50 - 100 Reputation Level)motin User rank is Lance Corporal (50 - 100 Reputation Level)motin User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 7 h 26 m 45 sec
Reputation Power: 6
Solved: open_basedir had not "/opt/lampp/lib/php" in it...

Hope this helps someone else in a similar situation!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Cannot include existing, chmod 777:ed files despite correct include-path


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT