User Tools

Site Tools


check_php_version

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
check_php_version [2017/01/08 13:09] – created walkeradmincheck_php_version [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 2: Line 2:
 \\  \\ 
 To see what the PHP version you have installed (and what is available) then use: To see what the PHP version you have installed (and what is available) then use:
-\\  
 \\  \\ 
     sudo apt-cache policy php5     sudo apt-cache policy php5
Line 8: Line 7:
 \\  \\ 
 You can install the latest PHP with the following command: You can install the latest PHP with the following command:
-\\  
 \\  \\ 
     sudo apt-get -y install php5 libapache2-mod-php5     sudo apt-get -y install php5 libapache2-mod-php5
Line 14: Line 12:
 \\  \\ 
 To make Apache recognize the updated version you will need to restart Apache: To make Apache recognize the updated version you will need to restart Apache:
-\\  
 \\  \\ 
     sudo service apache2 restart     sudo service apache2 restart
 \\  \\ 
 \\  \\ 
check_php_version.1483880979.txt.gz · Last modified: 2023/03/09 22:35 (external edit)