MX on Linux: Difference between revisions

142 bytes added ,  17:13, 5 September 2020
m
Line 394: Line 394:
== Install PHP Hypertext Pre-processor ==
== 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.
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 it, but you can install just the main php components with <tt>sudo apt install php7-fpm php7-cgi php7-cli php7-common</tt>, if you are short of space, and you are only going to use simple PHP without a database.
Alternatively, you can install <tt>sudo apt install</tt> particular php components, or a particular version 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 some of the php features.


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.
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