Hi Does any one know how i can use SSH to change the php version, i need this asap, rep will be added. Thanks
If you have never done this before, it's best you hire someone. php needs to be compiled with the modules that you need
SSH is just a way to access the Unix command line. Do you know what Linux you have, then perhaps I can give you instructions?
Looks like you're running Red Hat Enterprise Linux. You might look here for the commands to use rpm to upgrade or install php. http://www.cyberciti.biz/tips/how-to-install-php5-redhat-enterprise-linux4.html If that's what you're trying to do? I assume you're trying to upgrade to PHP5 from an earlier version? You will have to be logged in as 'root' to do this.
SHH is a way to access to your operating system, Unix or Linux, You can use Putty software. Really I dont know what do you need... do you need to access to your account to update the PHP version?
Im trying to downgrade it to php 4.4.4 becuase of a script i am going to be running it dont work on php5 so i want to downgrade it to php 4.4.4
Which version of RHEL are you using? cat /etc/redhat-release I would assume if you are running RHEL5 'Tikanga'.. Which means FedoraCore 6 → RHEL 5 This should do the trick... http://www.mjmwired.net/resources/mjm-fedora-php4.html ps. You do know you can edit the php.ini file to fix most incompatibilities.
Feel free to PM me the error you're getting with your script, the incompatibility is rarely this critical that you have to downgrade. Usually it's the upgrades that you're forced to do because of similar problems.
Its no error but i made the script for php 4.4.4 and it wont work on other php versions becuase of url fetch is disabled ect.
You are really asking the wrong forum. Even a general Linux forum is not the best. You should post this question in a forum dedicated to either Red Hat or even Fedora. I am not sure of any Red Hat forums as I have only used Fedora (I am mainly an Ubuntu user.) I believe the same method that would work on Fedora would work on Red Hat though. Check out fedoraforum dot org (can't post link because of my low post count.) Your question has likely been answered there many times over but you can post a new question. Your likely route for fixing this is to remove the PHP 5.X packages that have to do with PHP and then installing the 4.X packages. If you need a more specific version of 4.X rather than whatever are available in the packages then you will likely need to compile PHP and the other components that go along with it to get everything to work correctly. That is the (relatively) simple route. More options are available depending on how well you know Linux. For instance, you can run PHP 4 and 5 side by side but again, this forum will not be able to help you with that. I have never had the need so I cannot even begin to point you in the right direction. Another method of course is to contact your host and see what options they have for helping you out. If this is a dedicated server or VPS then they probably won't be able to do much but it never hurts to ask.
You can always do this rpm -qa | grep -i apache rpm -qa | grep -i httpd rpm -qa | grep -i php rpm -qa | grep -i mysql Then: rpm -e filename to remove what ever comes up with the previous command then you do this. wget http://www.php.net/distributions/php-4.4.6.tar.gz wget http://apache.oregonstate.edu/httpd/apache_1.3.37.tar.gz Then you: tar zxf php-4.4.6.tar.gz tar zxf apache_1.3.37.tar.gz tar zxf mysql-4.1.22.tar.gz I am sure you know what to do after this.