|
88.
|
|
|
There is a default HTTPS configuration file in <filename>/etc/apache2/sites-available/default-ssl.conf</filename>. In order for <application>Apache2</application> to provide HTTPS, a <emphasis>certificate</emphasis> and <emphasis>key</emphasis> file are also needed. The default HTTPS configuration will use a certificate and key generated by the <application>ssl-cert</application> package. They are good for testing, but the auto-generated certificate and key should be replaced by a certificate specific to the site or server. For information on generating a key and obtaining a certificate see <xref linkend="certificates-and-security"/>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:580(para)
|
|
96.
|
|
|
For more than one user to be able to write to the same directory it will be necessary to grant write permission to a group they share in common. The following example grants shared write permission to <filename>/var/www/html</filename> to the group "webmasters".
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:631(para)
|
|
100.
|
|
|
These commands recursively set the group permission on all files and directories in /var/www/html to read write and set user id. This has the effect of having the files and directories inherit their group and permission from their parrent. Many admins find this useful for allowing multiple users to edit files in a directory tree.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:643(para)
|
|
103.
|
|
|
<ulink url="http://httpd.apache.org/docs/2.4/">Apache2 Documentation</ulink> contains in depth information on Apache2 configuration directives. Also, see the <application>apache2-doc</application> package for the official Apache2 docs.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:663(para)
|
|
108.
|
|
|
PHP - Scripting Language
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:699(title)
|
|
109.
|
|
|
PHP is a general-purpose scripting language suited for Web development. PHP scripts can be embedded into HTML. This section explains how to install and configure PHP in an Ubuntu System with Apache2 and MySQL.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:700(para)
|
|
110.
|
|
|
This section assumes you have installed and configured Apache2 Web Server and MySQL Database Server. You can refer to the Apache2 and MySQL sections in this document to install and configure Apache2 and MySQL respectively.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:704(para)
|
|
111.
|
|
|
PHP is available in Ubuntu Linux. Unlike python and perl, which are installed in the base system, PHP must be added.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:711(para)
|
|
112.
|
|
|
To install PHP and the Apache PHP module you can enter the following command at a terminal prompt: <screen>
<command>sudo apt install php libapache2-mod-php</command>
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:715(para)
|
|
113.
|
|
|
You can run PHP scripts at a terminal prompt. To run PHP scripts at a terminal prompt you should install the <application>php-cli</application> package. To install <application>php-cli</application> you can enter the following command at a terminal prompt: <screen>
<command>sudo apt install php-cli</command>
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:724(para)
|