Prev | Current Page 1207 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

A
single server can easily support many CPG installations using either of these methods.
To install CPG on the Debian system described in this chapter, follow these steps:
1. Install the unzip and imagemagick programs. Unzip is used to unpack the CPG program
after downloading, and imagemagick is used to resize images and create thumbnails:
# apt-get install unzip imagemagick
2. Create a MySQL database for CPG. You can use a database name other than cpg if you wish.
The database username (the part before @'localhost' in the GRANT statement) and the
database name do not need to match. Be sure to replace mypassword with something
different:
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version:
4.0.24_Debian-10-log
NOTE
659
Running a Linux, Apache, MySQL, and PHP (LAMP) Server 24
Type 'help;' or '\h' for help. Type '\c' to clear the
buffer.
mysql> CREATE DATABASE cpg;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON cpg.*
TO 'cpg'@'localhost' IDENTIFIED BY 'mypassword';
Query OK, 0 rows affected (0.00 sec)
mysql> \q
Bye
3. Log in as the user that will own the CPG installation and download the latest version
from the Internet:
$ mkdir -p ~/public_html
$ cd ~/public_html
$ wget http://dl.


Pages:
1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219