#1
  1. A Change of Season
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,246
    Rep Power
    220

    How to run Yum Command


    The thing is I don't have a password. I use a pem key file to log in.

    What should I type as the password in order to be able to install php?
    yum install php
    Loaded plugins: priorities, update-motd, upgrade-helper
    You need to be root to perform this command.
    [ec2-user@ip-10-229-144-89 ~]$ su
    Password:
    Thanks
  2. #2
  3. Lazy Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,436
    Rep Power
    9645
    I don't see how this relates to Apache.

    Try sudo instead.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2016
    Location
    Lakewood, WA
    Posts
    218
    Rep Power
    17
    Find a tutorial online. Here's where I went for CentOS, but of course you are probably using Fedora...

    https://www.digitalocean.com/communi...ck-on-centos-6

    So, let's see what it says...
    Code:
    sudo yum install php php-mysql
    Of course you could do this...
    Code:
    yum search php-
    ...which will give you a huge list of modules you can or maybe need to install...
    Code:
    php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
    php-cli.x86_64 : Command-line interface for PHP
    php-common.x86_64 : Common files for PHP
    php-dba.x86_64 : A database abstraction layer module for PHP applications
    php-devel.x86_64 : Files needed for building PHP extensions
    php-embedded.x86_64 : PHP library for embedding in applications
    php-enchant.x86_64 : Human Language and Character Encoding Support
    php-gd.x86_64 : A module for PHP applications for using the gd graphics library
    php-imap.x86_64 : A module for PHP applications that use IMAP
    ...Here's the basic format:

    [you@localhost] # sudo yum install name of the module

    Just stack 'em all up with a space in-between each one, and go to town!

    Now, note the sudo... I hope you're not like me, doing everything as root, because that's a bad idea.

IMN logo majestic logo threadwatch logo seochat tools logo