FIGURE 24-1
The PHP information page
NOTE
653
Running a Linux, Apache, MySQL, and PHP (LAMP) Server 24
If, instead of an information page, you are prompted to download the file, check the appropriate PHP
installation section (earlier in the chapter) to verify that all the steps were completed successfully.
After everything is tested and working, you should remove the info.php file so that it can??™t be
used by potential attackers to gather specifics about your system:
# rm -f /var/www/info.php
Installing MySQL
The MySQL database system is divided into three main packages: the server, clients, and client
libraries. The server is contained within the mysql-server package and requires the other two to
function. APT is aware of this, which means the packages will be installed automatically when you
install mysql-server:
# apt-get install mysql-server
Make sure the hostname settings have been configured as described in Chapter 9 before
installing the mysql-server package. Failure to do so could result in an error that causes
the installation to fail.
The installation scripts in the mysql-server package provide you with a couple of notices and ask
whether you want to remove databases when purging the mysql-server package. ???No??? is the safest
option because it reduces the chance of accidentally losing your data.
Pages:
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207