PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   open_basedir error during 4.8.2 upgrade (http://www.photopost.com/forum/photopost-pro-installation-upgrades/110442-open_basedir-error-during-4-8-2-upgrade.html)

memdy November 9th, 2004 05:41 AM

open_basedir error during 4.8.2 upgrade
 
We just moved to a new server and we are having problems with the open_basedir issue, after reading several posts it looks like the open_basedir errors were corrected/compensated for in the latest version. So we attempted an upgrade. But ....

While running 4.8.2 upgrade.php script I get this error at the top of the page.

---------- error msg -----------

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/config-inc.php on line 11

--------- error msg --------------

How do we correct the open_basedir errors?

Specs
--------------
PP 4.8.2
RedHat9
URL: http://www.offshoreonly.com/gallery
PHP Info: http://www.offshoreonly.com/gallery/phpinfo.php
Apache 2.0
PHP 4.2.2

memdy November 9th, 2004 05:56 AM

That categories aren't showing up as well, the stats say the pics are still there but they aren't showing and i can't login to the admin either.

Chuck S November 9th, 2004 06:53 AM

In config-inc.php


if ( !isset($skip_exheader) ) {
include "header-inc.php";
}


change to

if ( !isset($skip_exheader) ) {
include "/home/httpd/vhosts/offshoreonly.com/httpdocs/galleryheader-inc.php";
}

memdy November 9th, 2004 07:24 AM

I tried both

if ( !isset($skip_exheader) ) {
include "/home/httpd/vhosts/offshoreonly.com/httpdocs/galleryheader-inc.php";
}

and
if ( !isset($skip_exheader) ) {
include "/home/httpd/vhosts/offshoreonly.com/httpdocs/header-inc.php";
}

both produce the error msg below at the top of the page

----------------error msg ----------------------------

Warning: Failed opening '/home/httpd/vhosts/offshoreonly.com/httpdocs/header-inc.php' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/config-inc.php on line 19

-------------- end error msg ----------------------------

Lost my vb3 style integration as well

Chuck S November 9th, 2004 12:04 PM

Notice you forgot the / between gallery and header on that one line above

galleryheader-inc.php

should be

gallery/header-inc.php

memdy November 9th, 2004 03:10 PM

Good catch, thanks. So it looks better now, but what happened to all my categories and pics after the upgrade?

Chuck S November 9th, 2004 04:03 PM

I do not know what you mean an upgrade doesnt delete anything.

what steps did you do when you upgraded?

memdy November 9th, 2004 04:35 PM

1. uploaded all the files for 4.8.2
2. ran /upgrades/upgrade.php
3. upgrade ran successfully, only seemed to be a handful of DB changes
4. i'm now unable to login to the Admin and all the categories are missing
5. The statistics say there are still 4,000 pictures but they are not displayed

memdy November 10th, 2004 10:04 PM

I tried restoring my original 4.7 version and the errors are still there, it's obviously something to do with how the new server is setup and interacts with PP, but what? vBulletin and the rest of the site are working just fine.

Browse to the URL to see the errors with 4.7 (maybe i better go back to 4.8):
http://www.offshoreonly.com/gallery/index.php

memdy November 10th, 2004 10:05 PM

Oh yeah, but the categories and pics are back after going back to 4.7. Should I try the upgrade again or fix the user_basedir problem first?

memdy November 10th, 2004 10:07 PM

I'm having a similiar problem with the classifieds too, i think they may be related.

http://www.photopost.com/members/for...d.php?t=110458

Chuck S November 11th, 2004 12:01 PM

Have you set your pp_path in the config file to this

/home/httpd/vhosts/offshoreonly.com/httpdocs/gallery

memdy November 11th, 2004 04:14 PM

Here is a copy of my config-inc.php and header-inc.php files

http://www.offshoreonly.com/gallery/config-inc.php.txt

http://www.offshoreonly.com/gallery/header-inc.php.txt

The only place i know to set the pp_path is in the admin GUI, where is the config file for that? It shows correctly in the GUI.

I did edit the pp-inc.php to fix the templates error message, by adding my path here.

// Little cleanup in case config-inc.php isn't current
if ( !defined('TMPL_PATH') ) {
define('TMPL_PATH', '/home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/templates/');
}

Chuck S November 11th, 2004 06:42 PM

You using a prior version and not the current thats fine what you did

memdy November 11th, 2004 08:27 PM

The categories and pics are back, but i'm still getting the user_basedir errors.

-------------- begin errors -----------------

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 54

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 54

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 157

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 157

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 158

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 158

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 2071

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 2071

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/index.php on line 30

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/index.php on line 30

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/index.php on line 31

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/index.php on line 31

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/login-inc.php on line 15

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/login-inc.php on line 15

------------------ end errors -------------------

How do I fix this open_basedir problem?

URL to Gallery: http://www.offshoreonly.com/gallery

Chuck S November 11th, 2004 08:30 PM

Yep your php is locked and these must be set. I would if I where you download 4.8 which has the pp_path variable before every file call

memdy November 11th, 2004 08:32 PM

Upgrading now .....be right back

memdy November 11th, 2004 09:19 PM

After uploading all the files for the upgrade, except config-inc.php and install.php then I went to /upgrades/upgrade.php and i got this error

-------------- begin error message --------------------

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/upgrades/upgrade.php on line 15

Fatal error: Failed opening required 'config-inc.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/upgrades/upgrade.php on line 15

-------------------- end error msg -------------------------

So I edited upgrade.php and put "../" in front of the config-inc.php like this....

require "../config-inc.php";

That seemed to solve the upgrade.php errors, i ran 4.7x->4.8 ( i was running 4.7j)

Upgrade script ran but got errors. Here's the output:

----------------- begin --------------------------
Preparing to reorganize admin options...
ALTER TABLE categories DROP INDEX lastphoto failed with error: Can't DROP 'lastphoto'. Check that column/key exists
ALTER TABLE categories DROP INDEX thumbnail failed with error: Can't DROP 'thumbnail'. Check that column/key exists
ALTER TABLE iponline DROP INDEX userid failed with error: Can't DROP 'userid'. Check that column/key exists
ALTER TABLE photos DROP INDEX approved failed with error: Can't DROP 'approved'. Check that column/key exists
ALTER TABLE photos DROP INDEX date failed with error: Can't DROP 'date'. Check that column/key exists


Done! You can now remove this file and check out your new Admin Options layout!

--------------- end ---------------------

Should I be concerned about the above errors? The upgrade looks successful, all the categories and pics are there.

Next i edit the header-inc.php to integrate with vBulletin again, then i get errors.

------------------ begin error msg ----------------------------
Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 63

Fatal error: Failed opening required './languages/english/pp-inc.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/offshoreonly.com/httpdocs/gallery/pp-inc.php on line 63
----------------- end error msg --------------------------------

So now what?

Chuck S November 12th, 2004 08:44 AM

What is your config-inc.php pp_path set to?

Here is line 63

require "{$Globals['PP_PATH']}/languages/$pplang/pp-inc.php";


Do you see why I am asking you what it is set to?

memdy November 12th, 2004 09:19 AM

Thanks OT i don't know why of all the times i've installed PP this was such a beast. It's working now. The PP path was set to "." i guess i was looking right over it each time. Is that in config file somewhere or only set in the DB? Surely i would have seen it in a config file somewhere.


All times are GMT -5. The time now is 01:44 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97