![]() Now check the installed version of PHP with a simple: php -v To let your system (beside some other stuff) check for updateable software, then do this to upgrade PHP: sudo apt-get -only-upgrade install php5Īfter this is done, restart the Apache server with: sudo service apache2 restart To update PHP, log into your server and do this on the command line (or “shell” or “bash”, whatever you call it): sudo apt-get update ![]() Updating PHP is a big topic, so let’s do it the quick way. THE FURTHER REQUIREMENTS: Update the PHP version (if older than 5.3.7) Is your PHP version 5.3.7 or higher ? Fine, then let’s go on ! If not, then you are using a very old version of PHP that should be updated instantly.īy the way, you can also find out your installed PHP version by doing this on the linux command line (but we did it the above way to check if your server displays php files correctly ) php -v When you have moved the phpinfo.php file to your web root, open your browser and go to I think it’s a good idea to create such an phpinfo.php on every new server you set up.Ĭopy the file to your server’s web root folder, usually /var/WinSCP will automatically open Putty (already connected to your server) when you log in. The function phpinfo() shows the entire configuration and settings of PHP, so it’s perfect for inspecting and finding out what your installed version of PHP can do and what not. This script does not use MySQL, but a simple SQLite database file (which is in this case just a file), so we need to make sure that the installed version of PHP is able to handle SQLite:Ĭreate a file called phpinfo.php on your local computer and put the following stuff in there:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |