A local issue with a downloaded website

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Maypop
Forum Newbie
Posts: 3
Joined: Thu Jul 10, 2008 2:53 am
Contact:

A local issue with a downloaded website

Post by Maypop »

Hi guys,

I'm getting stuck on the very little step of the project I'm responsible to develop. :banghead: The company I work in has asked me to change their website host.I did download the website over CoreFTP and uploaded it to the desired host space.
But the downloaded website does not work in my own local system.Only the first page appears,and few other links work.I'm using EasyPHP 2.01(Also tested it out on WAMP5 but same results :roll:) The website has got 2 databases which I managed to create from 2 sql script files by SQLyog with no errors.How come the website does not work properly in my own local computer? plz help me out :( I guess there might be some configurations I'm missing.The website was created by PHPMaker(PHP4 code) and has got a CMS in background to be edited and changed in future.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: A local issue with a downloaded website

Post by onion2k »

How do you expect us to be able to help you fix a problem if you don't tell us what the problem is? All you've said is "It doesn't work". That's not enough.
Maypop
Forum Newbie
Posts: 3
Joined: Thu Jul 10, 2008 2:53 am
Contact:

Re: A local issue with a downloaded website

Post by Maypop »

oh! well, there's no syntax error...just the main page appears and the other links redirect me to the main page(while the website works correctly on net)..I don't know what further information is required or what I should check out...I am to develop the site by working with its built-in CMS changing the code, templates, etc.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: A local issue with a downloaded website

Post by onion2k »

Well, a few things to check:

1. Is the database user correct? And password?
2. Is there an htaccess file? Bt default it'd be hidden in FTP so you'd switch on "show hidden files" in your FTP client probably.
3. Are errors switched on on your local server? If not, switch them on and see if anything appears.
4. Are register_globals switch off locally and switched on online? If so, switch them on locally and see if it fixes any problems.
5. Are short tags switched off locally and used in the code? I would think you'd see PHP code in the pages if that was the case but check anyway.
6. Is there anything in the Apache error log?

If none of that helps then start adding 'echo "Hello"; exit;' to the top of pages to see if the code actually runs. If it does then move the echo and exit down the page line by line to see where it's bailing out.
Maypop
Forum Newbie
Posts: 3
Joined: Thu Jul 10, 2008 2:53 am
Contact:

Re: A local issue with a downloaded website

Post by Maypop »

Man!! Thanks a bunch!! :drunk: You're a genius! The problem was on "register_globals" along with "short_open_tag". I hope to get a chance to compensate.
Cheers :)
Post Reply