MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to check PHP Version and how to upgrade latest one ?  (Read 6957 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
How to check PHP Version and how to upgrade latest one ?
« on: December 19, 2013, 06:00:46 AM »
Hello guys,

I would like to request the latest version of PHP be installed on my domain before that I want to check my current php version,
so how I can get this ?

To check current php version you will have to add a file phpinfo.php or whatever_name.php into public_html directory.

Quote
username/public_html]#vi phpinfo.php

Add the following line in your file and save it.
Quote
<?php phpinfo(); ?>

:wq
Now change the ownership of this file root to username. e.g my username is dipawe.
Quote
public_html]#chown dipawe:dipawe phpinfo.php

Now you can check it with the link --> http://yourdomain.com/phpinfo.php.

To upgrade php version you will have to add a single line into .htaccess file and save it. You can add this line at top of file.
Quote
public_html]#vi .htaccess

AddType application/x-httpd-php53 php

:wq

Now you can check it with the link --> http://yourdomain.com/phpinfo.php.

MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum

How to check PHP Version and how to upgrade latest one ?
« on: December 19, 2013, 06:00:46 AM »