Author Topic: Guest book php  (Read 2427 times)

0 Members and 1 Guest are viewing this topic.

Offline kered

  • Senior Member
  • **
  • Posts: 64
    • Laracha-Meteo Multilingual Website with PHP & AJAX
Guest book php
« on: October 11, 2011, 01:38:59 PM »
Hi my host has an included app called gBook for install if you require it. i installed it like an idiot, it trashed my site. On entry the guestbook comes up first as it changed the index.php(which i found out later) with something like
rediredt index.php(301 perminant)to gbook.php.

when i saw the damage i just uninstalled it but it didn't replace the old index.php, ok me thinking i'm clever i just re-uploaded the index.php, all worked fine for about 3 minutes then when i try to go to home(index.php) i kept getting gbook.php not available on the server and my site won't load.

As a workarround i renamed the index.php to gbook.php and the site works again.
What i need to know is where is the register stored that permanently redirects the index.php to gbook.php so i can either delete or modify it.
I checked in my redirects but nothing there, any ideas
thanks
Derek

.     Updated every 15 minutes                                            Updated every 5 seconds


If its not broke don't try to fix it.

Offline SLOweather

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 3456
    • Weatherelement Moline IL
Re: Guest book php
« Reply #1 on: October 11, 2011, 03:18:54 PM »
Call their tech support...

Offline kered

  • Senior Member
  • **
  • Posts: 64
    • Laracha-Meteo Multilingual Website with PHP & AJAX
Re: Guest book php
« Reply #2 on: October 11, 2011, 03:39:53 PM »
Call their tech support...

I was saving that for last resort :grin: as its probably something simple, i also like trying to figure out/find/cure my own mistakes, you learn more things along the way while looking.
Also maybe we get an answer from the knowhow people and its for all to refer to, will also show how much i don't know :oops:

 
.     Updated every 15 minutes                                            Updated every 5 seconds


If its not broke don't try to fix it.

Offline WeatherHost

  • Forecaster
  • *****
  • Posts: 3649
Re: Guest book php
« Reply #3 on: October 11, 2011, 05:05:53 PM »
Guestbooks are a REALLY bad idea unless you want to monitor them all day every day.  They load up with Spam pronto.

Offline xykotik

  • DonkeyTailWX DW6891
  • Forecaster
  • *****
  • Posts: 696
  • I'll deal with it tomorrow
    • DonkeyTail Weather
Re: Guest book php
« Reply #4 on: October 12, 2011, 12:50:38 PM »
If it was the hosting-company's built-in script that did this, then tech support should be able to help you undo it.  If installing the script made some changes to your .htaccess file, you "may" be able to fix it there.  It sounds like your site has a control panel of some sort.  See if there is a place for "redirects" and it may edit that for you with a few clicks, if that shows up.  Often times when the web server gets a common errir (like a 403 or 404) it will redirect to a custom page (like this one) or sometimes default to your homepage (/index.???) unless there is a specific file called for, perhaps "404.htm" or "notfound.htm" or something like that.  If your index.php still has a pointer in a meta tag to a file that it can't find (like gbook.php) that may be what is happening.


Facit solem suum oriri super bonos et malos et pluit super iustos et iniustos.

Springtime in Seattle...  March comes in like a lion and out like a wet lion.

Offline kered

  • Senior Member
  • **
  • Posts: 64
    • Laracha-Meteo Multilingual Website with PHP & AJAX
Re: Guest book php
« Reply #5 on: October 12, 2011, 02:32:25 PM »
The server is linux and uses cpanel, nothing in .haccess or redirects, i reuploaded the index.php and still didn't cure it so i sent a message to admin, within less than an hour all fixed again(for now) till i break something else with my tweeking.
thanks all for help
Derek
.     Updated every 15 minutes                                            Updated every 5 seconds


If its not broke don't try to fix it.

Offline xykotik

  • DonkeyTailWX DW6891
  • Forecaster
  • *****
  • Posts: 696
  • I'll deal with it tomorrow
    • DonkeyTail Weather
Re: Guest book php
« Reply #6 on: October 12, 2011, 11:39:27 PM »
Great news!  Plus, you won't touch the stove again.  I had to get myself burned a few times before I accepted that those pre-installed scripts (when they work) are hacker magnets! 

I had some rectal orofice from Turkey hack the pre-installed "gbook" for my uncle's funeral and totally hose my db, just to insert commie propoganda to replace family photos.  My buddy's pre-installed "gallery" for pics of his new grandkid was spammed with comments linking to "adult toy" and porno sites.  The hackers look for the common folder locations of popular pre-installed scripts for which they know exploits.  Keeping them updated is only good after a new exploit is discovered and the only way to avoid the sniffing and door-knocking is to tweak ALL of the code with changed file names, pointers and paths.  That's typically not for the user that would install a pre-installed script.  More than anything else now, I use ubiquitous services (that are maintained and updated by the operators) like Picasa, YouTube and Blogger.  Plenty of controls to keep the baddies away, and I don't break my site with my dumb mistakes.


Facit solem suum oriri super bonos et malos et pluit super iustos et iniustos.

Springtime in Seattle...  March comes in like a lion and out like a wet lion.

 

anything