Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-20-2006, 04:46 AM
Registered User
 
Join Date: Jan 2006
Posts: 6
ozegreatdeals is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-20-2006, 06:28 AM
serversphere's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 652
serversphere is on a distinguished road
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 06:32 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-20-2006, 06:30 AM
Registered User
 
Join Date: Jan 2006
Posts: 6
ozegreatdeals is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-20-2006, 06:34 AM
serversphere's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 652
serversphere is on a distinguished road
Sorry, I was editing my post while you were replying. lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-20-2006, 06:38 AM
Registered User
 
Join Date: Jan 2006
Posts: 6
ozegreatdeals is on a distinguished road
Quote:
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.
Quote:
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.

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

Quote:
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:58 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc