1
nofxcwb
open_basedir restriction in effect
  • 2005/4/27 23:03

  • nofxcwb

  • Just popping in

  • Posts: 5

  • Since: 2005/4/27


Hi there,

I built my site in localhost windows, now I'm trying to put it in the server, Linux.

I'm getting the errors below.

Let me exclude the options I've checked up until now.

The cache directory is clean and have 777 permissions.
The template_c directory is clean and have 777 permissions.
None of the files in the server are corrupted.

This information may help: If I put ther a configured mainfile.php I get a blank page instead of the errors.

This is driving me crazy for 5 days!

I'd appreciate any help.

Thanks,

Eduardo.

Warning: main(): open_basedir restriction in effect. File(/class/xoopsblock.php) is not within the allowed path(s): (/home/httpd/htdocs/simionbr/:/usr/local/lib/php:/tmp/) in /home/httpd/htdocs/simionbr/header.php on line 28

Warning: main(/class/xoopsblock.php): failed to open stream: Operation not permitted in /home/httpd/htdocs/simionbr/header.php on line 28

Warning: main(): Failed opening '/class/xoopsblock.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/htdocs/simionbr/header.php on line 28

Warning: main(): open_basedir restriction in effect. File(/class/template.php) is not within the allowed path(s): (/home/httpd/htdocs/simionbr/:/usr/local/lib/php:/tmp/) in /home/httpd/htdocs/simionbr/header.php on line 62

Warning: main(/class/template.php): failed to open stream: Operation not permitted in /home/httpd/htdocs/simionbr/header.php on line 62

Fatal error: main(): Failed opening required '/class/template.php' (include_path='.:/usr/local/lib/php') in /home/httpd/htdocs/simionbr/header.php on line 62

2
Dave_L
Re: open_basedir restriction in effect
  • 2005/4/27 23:36

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Check that XOOPS_ROOT_PATH has the right value in mainfile.php.

3
nofxcwb
Re: open_basedir restriction in effect
  • 2005/4/28 8:22

  • nofxcwb

  • Just popping in

  • Posts: 5

  • Since: 2005/4/27


It is with a clean (dist) mainfile.php. I'm trying to install it, but I get these errors instead of intallation page.

The directory install is there.

4
JohnOliver
Re: open_basedir restriction in effect
  • 2005/4/28 11:05

  • JohnOliver

  • Just popping in

  • Posts: 6

  • Since: 2005/4/2 1


Where is your /class directory? The open base stuff is a security feature that will prevent scripts from writing outside of the root of the defined http area (/home/httpd/htdocs/simionbr/) - It looks to me as if you need to have the class directory here (/home/httpd/htdocs/simionbr/class) as your webserver considers your root directory to be the defined http area and begins all paths from it. So if you unzipped your XOOPS or untarred it, you should be doing so in a manner that has the base files in the root of the web directory and all other directories should then fall under that... I know this is as clear as mud.. :)

5
nofxcwb
Re: open_basedir restriction in effect
  • 2005/4/29 18:18

  • nofxcwb

  • Just popping in

  • Posts: 5

  • Since: 2005/4/27


I'm new to XOOPS, using for less than 2 months.

I think I found the problem.
When I put the site there, I renamed mainfile.dist.php to mainfile.php. I thought that just this would drive me to installation.

A few minutes ago I found out that mainfile.php has "nothing to do" with mainfile.dist.php.
These names are not intuitive.

Thanks!

Eduardo.

6
Dave_L
Re: open_basedir restriction in effect
  • 2005/4/29 18:22

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


mainfile.dist.php is a "template" for mainfile.php. The only difference is that mainfile.php has, or should have, the correct values for the XOOPS path, URL and database access parameters.

Login

Who's Online

269 user(s) are online (229 user(s) are browsing Support Forums)


Members: 0


Guests: 269


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits