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