SSH Command

Discussion in 'Apache' started by NetworkTown.Net, Aug 29, 2007.

  1. #1
    Hi

    Does any one know how i can use SSH to change the php version, i need this asap, rep will be added.

    Thanks
     
    NetworkTown.Net, Aug 29, 2007 IP
  2. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you have never done this before, it's best you hire someone.
    php needs to be compiled with the modules that you need
     
    cyanide, Aug 29, 2007 IP
  3. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Iv done it before but i cant remember the command i used to do it.
     
    NetworkTown.Net, Aug 30, 2007 IP
  4. greys

    greys Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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?
     
    greys, Aug 31, 2007 IP
  5. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    #5
    Well it is a linux system. Ostype is Rhel
     
    NetworkTown.Net, Sep 1, 2007 IP
  6. Bryce

    Bryce Peon

    Messages:
    1,235
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Bryce, Sep 1, 2007 IP
  7. jakomo

    jakomo Well-Known Member

    Messages:
    4,262
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    138
    #7
    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?
     
    jakomo, Sep 1, 2007 IP
  8. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    #8
    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
     
    NetworkTown.Net, Sep 1, 2007 IP
  9. Bryce

    Bryce Peon

    Messages:
    1,235
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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.
     
    Bryce, Sep 1, 2007 IP
  10. greys

    greys Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    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.
     
    greys, Sep 2, 2007 IP
  11. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    #11
    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.
     
    NetworkTown.Net, Sep 2, 2007 IP
  12. greys

    greys Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I see. Thanks for clarifying this up!
     
    greys, Sep 3, 2007 IP
  13. netstratics

    netstratics Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    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.
     
    netstratics, Sep 3, 2007 IP
  14. Neptune

    Neptune Well-Known Member

    Messages:
    1,465
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    108
    #14
    Neptune, Sep 7, 2007 IP