Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 696
  • Last Modified:

failed opening required

phpmailer script worked on another host, but I am getting this error on a linux host

Fatal error: require_once() [function.require]: Failed opening required '/PHPMailer_v5.1/class.phpmailer.php' (include_path='.:/usr/lib/php5') in
0
rgb192
Asked:
rgb192
4 Solutions
 
SediqdCommented:
Have a look here :
http://drupal.org/node/311151
0
 
Loganathan NatarajanLAMP DeveloperCommented:
Make sure you have the files in the directory and having proper permission to access the files
0
 
Amar BardoliwalaCommented:
Also please check your file spellings with case as LINUX is case sensitive OS
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
rgb192Author Commented:
>>
http://drupal.org/node/311151

similar problem


but my problem is my script knows that there is a phpmailer directory

but the error is the require that is in the phpmailer directory
0
 
Amar BardoliwalaCommented:
Hello rgb192,

As stated above.. problem should be that you script is not able to find or include or access '/PHPMailer_v5.1/class.phpmailer.php'

So there is a possibility that your path /PHPMailer_v5.1/class.phpmailer.php is wrong
 or your script does not have permission to access that path or file.

See if following helps you.

http://unix.stackexchange.com/questions/9241/permissions-whats-the-right-way-to-give-apache-more-user-permissions

http://www.geeksengine.com/article/php-include-path.html

Thank you.

Amar.
0
 
rgb192Author Commented:
when I remove
/
then the folder is accessable

I still get errors, but that is another question
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now