About This Repository
This is my practice repository as I re-learn ZF2 from scratch following the SkeletonApp's Album tutorial.
Running The App Yourself..
This app assumes that you are using Apache HTTPD server. Here are the steps:
-
Clone this app
shell$> git clone https://github.com/juneym/zf2app-tutorial.git /path/to/zf2app-tutorial shell$> cd /path/to/zf2app-tutorial shell$> composer install
-
Make some adjustment to the
etc/httpd/vhost.conf
file by setting the correct path forDocumentRoot
andDirectory
directives. -
Finally, once you're okay with the above adjustments, copy the vhost.conf to the appropriate directory (depends on the distrubution or OS that you're using)
-
Restart the
httpd
daemon -
Ensure that MySQL is user. Connect to the MySQL server using an "admin" (or root) privileged user.
-
Create the required database, users and privileges
shell$> mysql -u root -p
mysql> CREATE DATABASE zf2app;
mysql> GRANT ALL ON zf2app.* TO demouser@localhost IDENTIFIED BY 'demouserpass';
shell$> mysql -u root -p zf2app < /path/to/zf2app-tutorial/data/db/zf2app.sql
- Modify you machine's
hosts
file
echo "some.ip.address zf2app.vbox" >> /etc/hosts
- Access the app on your browser (http://zf2app.vbox/)