Installing PHP5

They have: 426 posts

Joined: Feb 2005

THe server that i am using at present (a VPS) is running an old version of PHP4. I want to upgrade to PHP5 but not sure how. I have become aware that you need to unistall php4 before installing php5?

Any direction appreciated

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Firstly we'll need to know what distro you're using. Redhat, Fedora, CentOS, Debian? Secondly: have you got SSH (command line) access and access to the root account?

If you do have SSH access, try typing this at the prompt:

cat /proc/version

That should tell us what you're using. Smiling

a Padded Cell our articles site!

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

I don't believe it's necessary to remove PHP4, depending on the system you are running. If you install PHP5 to a different location (or let your package manager do it), all you have to do is configure Apache to use PHP5.

They have: 426 posts

Joined: Feb 2005

Im using Ubuntu. Yes, i do have SSH access through putty. OK so i can just do a fresh install of php5 but in a different location and point apache to the new location - can i specify this in the apache config file?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.