Author Topic: So It Works On One Server But Not The Other..  (Read 490 times)

0 Members and 1 Guest are viewing this topic.

Offline l0wTopic starter

  • Irregular
  • Posts: 2
    • View Profile
So It Works On One Server But Not The Other..
« on: March 03, 2010, 03:40:53 AM »
Ok So I Bought This Script, And The People Have Zero Support Once You Buy It.  I Installed It On A Free Host To Check it Out..  It Worked, So I Got A VPS And Now It Doesn't.

The script is a coupon script, I add a website through the admin and it creates a link like localhost.com/somesite.com/ on my main site, now it does not create a directory, but it acts as if it did when working properly, however now I get a 404, as the server is looking for that directory...  Any Ideas?  Maybe I need to install a mod or something???

Thanks,
l0w :confused:

Offline Dennis1986

  • Enthusiast
  • Posts: 78
  • Gender: Male
  • PHP for life!
    • View Profile
    • DennisRasmussen.dk
Re: So It Works On One Server But Not The Other..
« Reply #1 on: March 03, 2010, 03:43:27 AM »
Either you're missing the .htaccess file on your new server or your new server doesn't allow .htaccess files.
.htaccess is the file that allows you to create custom URLs.
Just ask and I'll answer your question(s)! ;)

Offline Mchl

  • Staff Alumni
  • Freak!
  • *
  • Posts: 8,582
  • Gender: Male
  • That's Largo in my avatar, not me.
    • View Profile
    • FlingBits
Re: So It Works On One Server But Not The Other..
« Reply #2 on: March 03, 2010, 04:56:26 AM »
Either you're missing the .htaccess file on your new server or your new server doesn't allow .htaccess files.
.htaccess is the file that allows you to create custom URLs.

actually it just configures rules for custom URLs. The webserver module responsible for parsing such urls is called mod_rewrite. Check if you have it enabled on your server.
NetBeans fanatic | ExtJS masochist | C++ denier
PHP4 & MySQL4 are no longer supported.
PHPFreaks Tutorials | PHP Debugging: A Beginner's guide | PHP Security Tutorial || How To Ask Questions The Smart Way
Flingbits tutorials | Class Autoloading

Offline l0wTopic starter

  • Irregular
  • Posts: 2
    • View Profile
Re: So It Works On One Server But Not The Other..
« Reply #3 on: March 03, 2010, 06:05:27 AM »
Thanks for the replies... I have searched google up and down for info on mod_rewrite and cpanel, and people say it comes installed just not enabled, I looked at my httpd.conf file and this is all i found RewriteEngine on. I searched everything in cpan, the easy apache, i counldn't find anything close to mod_rewrite.
So I dunno  :confused:

Im running centos 5.4 and cpan

Offline Rustywolf

  • Enthusiast
  • Posts: 72
    • View Profile
Re: So It Works On One Server But Not The Other..
« Reply #4 on: March 04, 2010, 03:29:44 AM »
Try re-installing/extracting

you might have missed some files.
or your vps uses outdated apache?