 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
August 17th, 2006, 01:35 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jul 2002
Posts: 49
| Moved from Windows server to Linux - help!
I just moved from a windows server to a linux server. Everything was working great on the windows server, but now all I get is a blank page when I try to open the PhotoPost gallery or the admin control panel.
I'm assuming my problem (or at least part of it) is my $PP_PATH setting in my config_inc.php file. It is currently set to:
$PP_PATH = "C:/Inetpub/vhosts/mustanggt.org/httpdocs/photopost"
Any idea what it should be now (or where I get that info from)? I believe I read somewhere that the slashes on windows vs. linux are different (i.e. forwards vs. backwards)?
I apologize if this is a dumb question.  I'm a little brain-dead right now trying to get this up and running again.
Thanks!
|
| |
August 17th, 2006, 01:39 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
You can download a PHPINFO file from our requirements page and upload to your new server and run in the browser. You will then see your new path. You must upload the path above plus once thats done sign into admin and change all server paths in global options and storage options to the new path as well
|
| |
August 17th, 2006, 02:58 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jul 2002
Posts: 49
|
OK, I downloaded the PHPINFO file, uploaded it to the server and ran it. Based on the info I got from that I changed my $PP_PATH to this...
$PP_PATH = "/var/www/vhosts/mustanggt.org/httpdocs/photopost"
I tried to go to my admin control panel to reset the other things you said, but I'm still getting a blank screen (both for the control panel and the index.php). I realized then that I probably need to change the settings in config-int.php, too so I did that and I'm still getting a blank screen.
I was just wondering if there is a step-by-step guide somewhere on what needs to be done when you switch servers? I'm not sure I'm going about this the right way.
Thanks.
|
| |
August 17th, 2006, 03:42 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
well did you update your config file to include the new mysql info to connect to the database you also restored on the new server? Your mysql info would change also
|
| |
August 17th, 2006, 05:38 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jul 2002
Posts: 49
| Quote:
Originally Posted by Chuck S well did you update your config file to include the new mysql info to connect to the database you also restored on the new server? Your mysql info would change also | The databases were set up the same way with the same database names, same users and same passwords. I will double and triple check them, but I don't see how that could be the problem.
|
| |
August 17th, 2006, 07:03 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
well if your getting a blank page your server path is wrong database info is incorrect or you are missing files or corrupt files.
Try turning on display_errors in PHP so there is some sort of info so we can assist you
|
| |
August 17th, 2006, 07:46 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jul 2002
Posts: 49
| Quote:
Originally Posted by Chuck S Try turning on display_errors in PHP so there is some sort of info so we can assist you | I will do that if I can figure out how...  I'm on a VPS now and I'm pretty unfamiliar with how to do things on it at this point in time - I'm still learning. Do I do that through my Plesk 8.0 control panel or ?
Sorry for the dumb questions. |
| |
August 17th, 2006, 09:21 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jul 2002
Posts: 49
|
OK - my host's support guy turned display_error on for me... here's the error message I get trying to open adm-index.php:
Warning: main(/var/www/vhosts/mustanggt.org/httpdocs/photopost/languages/english.php) [function.main]: failed to open stream: No such file or directory in /var/www/vhosts/mustanggt.org/httpdocs/photopost/pp-inc.php on line 131
Fatal error: main() [function.require]: Failed opening required '/var/www/vhosts/mustanggt.org/httpdocs/photopost/languages/english.php' (include_path='.:') in /var/www/vhosts/mustanggt.org/httpdocs/photopost/pp-inc.php on line 131
Can you tell me what the problem is?
Thanks!
|
| |
August 17th, 2006, 09:32 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Jul 2002
Posts: 49
|
OK... I think I figured out part of what's going on. It appears that many of my files did not get transferred over in the server move.
I'll re-upload the files and see if it helps.
Thanks!
|
| |
August 18th, 2006, 07:06 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Yes exactly your missing files
|
| |
August 18th, 2006, 09:59 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Jul 2002
Posts: 49
|
Well, things are looking better but still not quite right yet. I can now get into the adm-index.php file in my browser, but I get the following error messages at the top:
"Warning: opendir(C:/Inetpub/vhosts/mustanggt.org/httpdocs/photopost/data/) [function.opendir]: failed to open dir: No such file or directory in /var/www/vhosts/mustanggt.org/httpdocs/photopost/adm-inc.php on line 682
Warning: readdir(): supplied argument is not a valid Directory resource in /var/www/vhosts/mustanggt.org/httpdocs/photopost/adm-inc.php on line 684
Warning: closedir(): supplied argument is not a valid Directory resource in /var/www/vhosts/mustanggt.org/httpdocs/photopost/adm-inc.php on line 692"
Obviously, I've missed changing a path somewhere, but I can't figure out where... any idea which file to look in?
Thanks!
|
| |
August 18th, 2006, 10:18 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Jul 2002
Posts: 49
|
Nevermind the question above... I fixed it by doing what was explained in this thread - Wrong path but cant find where to change it.
Now I have another problem:
At the top of the photo gallery page (index.php), I'm getting the following error message - "Notice: Undefined variable: argv in /var/www/vhosts/mustanggt.org/httpdocs/photopost/index.php on line 15"
Thanks!
Last edited by 91GT; August 18th, 2006 at 11:11 PM.
|
| |
August 19th, 2006, 08:57 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Well the correct action would be to adjust your PHP settings on the server so that error reporting is not set so high but if you can not just remove that if clause at the top of index.php Code: Content visible to verified customers only.
|
| |
August 19th, 2006, 09:30 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Jul 2002
Posts: 49
|
So will it hurt anything if I take it out completely?
In looking at my PHP info, the error_reporting is set at 2047 for both the local and master values. What would this setting have to be changed to if I were to change it?
Thanks!
|
| |
August 19th, 2006, 10:18 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
nah it wont hurt to remove it. Just set error reporting to report true errors not empty variables 341 is a normal install
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 06:15 PM. | |