MX on Linux: Difference between revisions

m
== Install PHP Hypertext Pre-processor ==
 
PHP is not the only script language available, but it is quite comprehensive being able to be used either in a fairly simple way or in an object-oriented way for those trying to achieve more complex scripts. The instruction to install it is <tt> sudo apt install php -y</tt>, which version you get depends on your Pi and its operating system.
 
I don't advise itAlternatively, but you can install just<tt>sudo theapt maininstall</tt> particular php components, withor <tt>sudoa aptparticular installversion by selecting components from a list like "<tt>php7-fpm php7-cgi php7-cli php7-common php7.3-mbstring php7.3-mysql php7.3-curl php7.3-gd php7.3-zip -y</tt>, only use this approach if you are short of space, and you are only going to use simplesome PHPof withoutthe aphp databasefeatures.
 
You may wish to create a index.php web page at /var/www/html which is the web server root for browsing, or of course you may wish to copy or FTP here all your existing web pages.
5,838

edits