parent
ee582988e6
commit
cf27c1377c
@ -1,37 +1,42 @@ |
|||||||
IP Reg Installation |
IP Reg Installation |
||||||
|
|
||||||
1. Install requirements |
1. Install requirements |
||||||
IP Reg version 0.6 and up depends on smarty template engine. |
IP Reg version 0.6 and up depends on smarty template engine. |
||||||
In Debian install ist with: "apt-get install smarty3". |
In Debian install ist with: "apt-get install smarty3". |
||||||
The GHP-GD module is also required: "apt-get install php-gd". |
The GHP-GD module is also required: "apt-get install php-gd". |
||||||
|
|
||||||
2. Create database |
2. Create database |
||||||
Create a database for IP Reg on your web server, as well as a MySQL user who |
Create a database for IP Reg on your web server, as well as a MySQL user who |
||||||
has all privileges for accessing and modifying it. |
has all privileges for accessing and modifying it. |
||||||
|
|
||||||
CREATE DATABASE ipreg; |
CREATE DATABASE ipreg; |
||||||
|
|
||||||
Create database-user for application with minimum necessary rights. |
Create database-user for application with minimum necessary rights. |
||||||
|
|
||||||
CREATE USER 'ipreg'@'localhost' IDENTIFIED BY '********'; |
CREATE USER 'ipreg'@'localhost' IDENTIFIED BY '********'; |
||||||
GRANT SELECT, INSERT, UPDATE, DELETE ON ipreg.* TO 'ipreg'@'localhost'; |
GRANT SELECT, INSERT, UPDATE, DELETE ON ipreg.* TO 'ipreg'@'localhost'; |
||||||
|
|
||||||
3. Run import |
3. Run import |
||||||
Import the mysql.sql file into your database, which will create the tables |
Import the mysql.sql file into your database, which will create the tables |
||||||
and some sample data. |
and some sample data. |
||||||
|
|
||||||
mysql ipreg < mysql.sql |
mysql ipreg < mysql.sql |
||||||
|
|
||||||
4. Edit config file |
4. Edit config file |
||||||
Open config.php in a text editor and fill in your database details. |
Open config.php in a text editor and fill in your database details. |
||||||
|
|
||||||
5. Upload files |
5. Upload files |
||||||
Upload all files and directory's (except the install directory) to your |
Upload all files and directory's (except the install directory) to your |
||||||
webserver. |
webserver. |
||||||
|
|
||||||
6. Check file access rights for security |
6. Check file access rights for security |
||||||
Only directory tpl_c should be writeble by webserver |
Only directory tpl_c should be writeble by webserver |
||||||
|
|
||||||
7. Start using IP Reg |
chmod 640 config.php |
||||||
Start your browser and login to IP Reg with the default username/password: |
chgrp www-data config.php |
||||||
admin/admin |
|
||||||
|
chown www-data tpl_c |
||||||
|
|
||||||
|
7. Start using IP Reg |
||||||
|
Start your browser and login to IP Reg with the default username/password: |
||||||
|
admin/admin |
||||||
|
Reference in new issue