Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15
  1. #1
    New Coder
    Join Date
    Oct 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Off but not on? Why?

    Hi,

    I host a website www.pigtrough.com now offline on my localhost the guestbook works fine, but online it doesn't work, does anyone know why this is?

    Sam
    Last edited by Spookster; 12-03-2003 at 05:13 PM.
    <i>www.pigtrough.com

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    That's easy. Your host either doesn't support PHP or they have it disabled or turned off.

    I would advise you right now to remove any PHP files containing things like database login information because anyone can currently access those files since the PHP files are not being parsed by a PHP engine. Example:

    PHP Code:

    <?php


    // phpBB 2.x auto-generated config file
    // Do not change anything in this file!

    $dbms 'mysql4';

    $dbhost 'localhost';
    $dbname 'phpbb';
    $dbuser '***********';
    $dbpasswd '**********';

    $table_prefix 'phpbb_';

    define('PHPBB_INSTALLED'true);

    ?>
    I've starred out your username and password so as not to give it to everyone but you get the idea. That was from your forum by the way. This would also apply to your guestbook.

    Your solution would be to either find a host that supports PHP or if your current host does support PHP then contact them immediately and inquire as to why it is not currently running.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    New Coder
    Join Date
    Oct 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    But, I know it supports php, how do I enable it?

    If it is disabled?
    <i>www.pigtrough.com

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Is this your own server that you are in control of?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    New Coder
    Join Date
    Oct 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, I own the .com... And it doesn't work online but it does on the localhost, so, it is working, but I dont know what the problem is...
    <i>www.pigtrough.com

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    I'm not talking about the domain name. The domain name doesn't have anything to do with the problem. Is the server (the computer which has the web server software and is where the website files are) physically located in your home or office? Are you the administrator of that server?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    New Coder
    Join Date
    Oct 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes I am, I own the computer files and web server etc... It is in my room, now....
    <i>www.pigtrough.com

  • #8
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Ok. How did you install everything and which web server are you using? Apache or IIS? If Apache did you did you install Apache, MySQL and PHP seperately or did you install one of the many ready made packages that include all of those and installs everything for you?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #9
    New Coder
    Join Date
    Oct 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It nis pache, and I used phptriad to install all of them
    <i>www.pigtrough.com

  • #10
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    I've never used PHPTriad. I currently use IBServer which i've found to be much easier to work with.

    Although this is not my area of expertise my guess is your problem is going to have to do with an Apache configuration. You said it works find locally but as soon as you go through the Internet PHP no longer works. Might be some kind of permissions problem. Firepages might have more insight to this problem since he develops his own ready made package called PHPDev and deals with issues like this. Maybe he will pop his head in here later.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #11
    New Coder
    Join Date
    Oct 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok thanks for that... I will try other servers....
    <i>www.pigtrough.com

  • #12
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Keep in mind they are not different servers. PHPTriad, PHPDev, IBServer and others are just bundles of software typically including Apache, MySQL, PHP, Perl, and various forum software and such and usually come with some kind of control panel to control everything. The configuration of Apache and PHP and MySQL in each of these bundles may be different but all use the same software.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #13
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,048
    Thanks
    10
    Thanked 93 Times in 91 Posts
    errr confused ...

    a quick scan of your domain name shows that you are running Microsoft-IIS 5 , not apache , at least not on port 80 , and no other ports show activity , so you best have another look at your machine.

    If you have apache running (ctrl-alt-delete to be sure) then you need to shut down IIS (some may suggest uninstall b4 its too late )
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #14
    New Coder
    Join Date
    Oct 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How do i uninstall IIS????

    If that is my problem....
    <i>www.pigtrough.com

  • #15
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,048
    Thanks
    10
    Thanked 93 Times in 91 Posts
    Hi ok , well dont uninstall just yet .. its working , so perhaps just turn it off for now (somewhere in control panel > administrative tools)

    of course you have the option to run PHP via IIS though I know that many ready-made scripts just wont work on IIS!

    so decide whether you want to use apache or IIS for serving your web-pages.. I know >.< about IIS though I am sure others here can help.

    but if Apache , check the installation of your apache/PHP/MySQL setup actually works by trying to start apache

    (at a DOS prompt)
    cd c:/path/to/apache/bin
    (for apache 1.*)
    apache -k start
    (for apache 2.*)
    apache -n apache -k start

    if you get no errors go to http://localhost and tell us what you see, if you get errors then tell us what they are , if you get no errors but still no apache try
    apache -t
    which will run a syntax check on your apache config.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •