Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    6

    Question New VPS site loading but clicking php link just redirect to index.php

    Hi,
    I copied an account from my main server to a smaller vps server.
    It works as in loads the website but when I click a link on the website is redirects back to index.php instead of loading the actually link.

    I put this code into a blank php file and got a blank page.
    <?php
    phpinfo();
    ?>

    I have ssh access and typed:
    ps x | grep php
    And got a reply of:
    15090 pts/0 S 0:00 grep php

    So I am really confused to why the site is not working.

  2. #2
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    PHP isn't a process that runs, so the PS command won't show you a line for it. But with the blank phpinfo page, it sure seems like PHP isn't installed. Is the main website page a PHP page? Are you saving them with .php extension? When you moved them over how did you do so?
    Last edited by serversphere; 01-20-2006 at 07:32 AM.

  3. #3
    Member
    Join Date
    Jan 2006
    Posts
    6

    Default

    Yes it is. And php v4.4.0 is installed. But the site was copied from the other server which runs v4.4.1.. so I have asked admin to update version just incase that is the problem.

  4. #4
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Sorry, I was editing my post while you were replying. lol

  5. #5
    Member
    Join Date
    Jan 2006
    Posts
    6

    Default

    But with the blank phpinfo page, it sure seems like PHP isn't installed.
    I got a reply back from admin stating that php is installed otherwise the main page would not load.
    Is the main website page a PHP page?
    Yes. All pages associated with site a .php it is a "PTC" site driven by mysql database.

    Are you saving them with .php extension?
    Yes all files are saved with .php extension.

    When you moved them over how did you do so?
    I logged in as root to WHM and used the copy from another server.
    I have root access on the other server so used my root password just to copy account.

Similar Threads & Tags
Similar threads

  1. Index.php not loading...
    By devGOD in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-23-2007, 10:00 AM
  2. index.php not loading.
    By aboyz in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-18-2006, 03:19 PM
  3. PHP error on clicking link - need help
    By schabotte in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-09-2006, 05:56 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube