5,838
edits
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. | ||
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. |
edits