All text is available under the terms of the GNU Free Documentation License. For the latest version of this document, see Wikibooks.
Contents |
First, make sure you meet all the requirements in the previous chapter.
$ mysqladmin -u root -p create zoph $ mysql -u root -p zoph < sql/zoph.sql
I created two users: zoph_rw is used by the application and zoph_admin is used when I work directly in mysql so I don't have to use root.
$ mysql -u root -p mysql> grant select, insert, update, delete on zoph.* to zoph_rw@localhost identified by 'PASSWORD';
mysql> grant all on zoph.* to zoph_admin identified by 'PASSWORD';
Please see the chapter on configuration for details.
Create a zoph/ directory off the doc root of your web server, or create a Virtual Host with a new doc root.
$ mkdir /var/www/html/zoph
$ cp -r php/* /var/www/html/zoph/
The perl scripts points to /usr/bin/perl. If your perl is in a different place, edit the first line of the script.
Edit bin/zophImport and bin/zophExport so that the following variables match the values you put in config.inc.php:
$db_name = 'zoph'; $db_user = 'zoph_rw'; $db_pass = 'password';
In addition, in zophExport set $image_dir to you image directory.
Or some other directory in your PATH.
A man page for zophImport is in the man/ directory. Copy this to somewhere in your manpath, /usr/local/man/man1 for example.
Try hitting http://localhost/zoph/logon.php. You should be presented with the logon screen.
If you get a 404 error...
If you see a bunch of code...
If you see a MySQL access denied error...