Trouble with require_once on (a virtual ?) server

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Trouble with require_once on (a virtual ?) server

Postby Francois » 28. January 2005 21:21

Hi there
I planed to use php with mysql, and with xampp, everything went nice. Now I'm
trying the script on the server of my internet provider and can't use DB.php
anymore. The line require_once 'DB.php'; gives message like
Warning: main(DB.php): failed to open stream: No such file or directory in /home/virtual/site100/fst/var/www/html/regate_test/aviron.php on line 2
Fatal error: main(): Failed opening required 'DB.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site100/fst/var/www/html/regate_test/aviron.php on line 2
and tried to add somthing like
ini_set("include_path", '/var/www/www.aviron-vevey.ch/includes/'.PATH_SEPARATOR . ini_get("include_path"));
in the beginning of the script but that does not work either.
The server config can be seen at http://hosting-box.com/phptest.php
Our Doc_root is /var/wwww/html
The site url is http://www.aviron-vevey.ch
I have read something about a file httpd.conf but it does'nt exist.

I know this question is'nt directly related to xampp but the providers just say "we don't support the script we are not selling"

Thanks for any suggestions

François
Francois
 
Posts: 12
Joined: 20. December 2004 18:31

Postby Wiedmann » 28. January 2005 21:30

Where is the file "DB.php" stored on your server?
I think it's part of PEAR.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Francois » 28. January 2005 21:58

Wiedmann wrote:Where is the file "DB.php" stored on your server?
I think it's part of PEAR.



Sure, it is. The guy told me to include /usr/share/pear in the include_path, but I received "The script whose uid is 550 is not allowed to access..."
But it is the module DB from PEAR.

Francois
Francois
 
Posts: 12
Joined: 20. December 2004 18:31

Postby Wiedmann » 28. January 2005 22:09

Who has installed PEAR, you or the server admin?

BTW:
with the include path "/usr/share/pear" the script can found the required "DB.php". But:
"The script whose uid is 550 is not allowed to access..."

This told us, PEAR is not setup correctly.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Francois » 29. January 2005 15:43

The server admin has set up the server. I have not install anything, and I suppose the guy who answer me neither... Well thanks for helping.

I think I will use mysql without PEAR::DB.php

Francois
Francois
 
Posts: 12
Joined: 20. December 2004 18:31

I had a problem like this too.

Postby dcm1104 » 17. February 2005 17:18

It has been long ago, but I had a similar problem to yours. I installed my own PEAR. You can download a complete installation into your own www directory and set the permissions however you want (if your account has shell access) Then set your includes to access this PEAR.
dcm1104
 
Posts: 2
Joined: 17. February 2005 05:23

Provider blues

Postby Francois » 17. February 2005 22:16

Hi
Thanks for the suggestion !
I made all the code for mysql, and missing PEAR was not a problem after all. I will probably think to change the provider...

Another thing which surprise me is that I hade to connect to mySQL as the user which has all the rights (Create, drop and so on) in the php scripts

When I ask the provider to create a user with more appropriate rights, he said this was not possible....

I ask if more then one user was faisible to other providers and they said it was, so I think we have been unlucky with the choice of our provider.

Regards

François :cry:
Francois
 
Posts: 12
Joined: 20. December 2004 18:31

Postby Oswald » 17. February 2005 23:52

Dear Fancois!

The error message

Francois wrote:"The script whose uid is 550 is not allowed to access..."


indicates that PHP's safe_mode is activated on your providers machine. That's a usual configuration. So you don't need to blame your provider. Every serious provider will do so. If you want to use DB.php the only solution is to upload it by yourself.

Greetings and good luck
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests