skip to Main Content

I’d like to check the MySQL & PHP Versions that are running on my Linux VPS. I don’t anything about this stuff.

php -m

mysql -v

I’ve found these commands above to run, but I don’t physically know where to input them? Where’s the command line? Sorry if this is stupid.

I have access to my WHM, root, cPanel etc.

Thanks

2

Answers


  1. You might be able to ssh into the machine, which will show you a bash prompt where you can input your commands.

    If you can’t ssh because it is just a rented php server, you can write a script in php to execute your commands, also php has a phpinfo(); command which is useful.

    Login or Signup to reply.
  2. You can view the MySQL and PHP version from cPanel using the following steps.

    1. Log into cPanel.
    2. Under General Information on the right panel, click Server Information.
      General Information View
    3. Under the Item column, find PHP & MySQL Version.
    4. In the Detail column, note the version number.
      Server Information View
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search