Fixed install docs

main
Charlie Root 3 years ago
parent 64dc4f4799
commit d57351d192
  1. 21
      INSTALL

@ -20,13 +20,13 @@ server's setup procedure where necessary.
Change to the directory where you're going to run the website from and Change to the directory where you're going to run the website from and
extract the pages. The tarball contains the phpgiftreg/ directory itself. extract the pages. The tarball contains the phpgiftreg/ directory itself.
user@host $ tar -xvzf phpgiftreg-x.x.x.tar.gz user@host $ https://git.obscuritus.ca:3000/silverwizard/phpgiftreg.git
<output> <output>
Then give everything the proper permissions (thanks to Paul Hubbard for Then give everything the proper permissions (thanks to Paul Hubbard for
pointing this out). An example would be owner-writable, world-readable: pointing this out). An example would be owner-writable, world-readable:
user@host $ cd phpgiftreg-x.x.x user@host $ cd phpgiftreg
user@host $ chmod 644 *.php *.css images/* user@host $ chmod 644 *.php *.css images/*
As of 1.6.0, there is a subdirectory called item_images/ that must be As of 1.6.0, there is a subdirectory called item_images/ that must be
@ -57,8 +57,8 @@ mysql>
Once inside, create the phpgiftreg database: Once inside, create the phpgiftreg database:
mysql> create database phpgiftreg; mysql> create database wishlist;
Database phpgiftreg created. Database wishlist created.
============================================================================= =============================================================================
@ -86,12 +86,12 @@ mysql>
============================================================================= =============================================================================
4. Create MySQL user (optional) 4. Create MySQL user optional
You should have a separate user for the database. If you choose to, create You should have a separate user for the database. If you choose to, create
the new user like so: the new user like so:
mysql> GRANT ALL ON phpgiftreg.* TO username@host IDENTIFIED BY 'password'; mysql> GRANT ALL ON wishlist.* TO username@host IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES; mysql> FLUSH PRIVILEGES;
This creates a user called `username' that can connect from `host'. This creates a user called `username' that can connect from `host'.
@ -100,6 +100,8 @@ This creates a user called `username' that can connect from `host'.
5. Configure includes/config.php 5. Configure includes/config.php
Copy the includes/config-sample.php to includes/config.php.
You MUST edit includes/config.php to define your database connection. You MUST edit includes/config.php to define your database connection.
It is required to set the `pdo_connection_string', `pdo_username' It is required to set the `pdo_connection_string', `pdo_username'
and `pdo_password' settings. See and `pdo_password' settings. See
@ -139,8 +141,13 @@ family. If everything goes well, you'll be ready to begin!
============================================================================= =============================================================================
If you have any problems with these instructions, or if they weren't clear If you have any problems with these instructions, or if they weren't clear
or just didn't plain work, please let me know at generalpf@gmail.com. or just didn't plain work, please let me know at silverwizard@obscuritus.ca.
Original Author:
Ryan Walberg Ryan Walberg
generalpf@gmail.com generalpf@gmail.com
@GeneralPF @GeneralPF
Modified By:
Silverwizard
silverwizard@obscuritus.ca

Loading…
Cancel
Save