dev-master
9999999-devCMS (Car Management System) for Checo Pérez
MIT
The Requires
by Luis Montealegre
Wallogit.com
2017 © Pedro PelĂĄez
CMS (Car Management System) for Checo Pérez
To install Composer run the folwing command in your Apache document root folder., (*1)
curl -s https://getcomposer.org/installer | php
Create the project using the composer.phar file recently downloaded., (*2)
php composer.phar create-project --stability="dev" montealegreluis/carmsys dgztl
This command will install the project in a folder named dgztl. Enter Y when prompted
to remove the VCS files., (*3)
In order to use the configuration in the project as is, you will have to run the following command in your MySQL server instance., (*4)
GRANT ALL PRIVILEGES on car_mgmt_sys.* TO checo_perez@localhost IDENTIFIED BY 'Ch3c0_p3r3z';
You can use your own user by modifying the file config/databases.yml providing valid
credentials., (*5)
cd to your dgztl folder and run the following command to create the database, (*6)
./symfony doctrine:build-db
Run the following command to create the database schema, (*7)
./symfony doctrine:insert-sql
Run the following command to load the initial data, (*8)
./symfony doctrine:data-load
Add this line to your hosts file (/etc/hosts), (*9)
127.0.0.1 checoperez.dev
Add this to your Apache's vhost.conf file (/etc/httpd/conf.d/vhosts.conf), (*10)
#
# checoperez.dev
#
<VirtualHost *:80>
ServerName checoperez.dev
DocumentRoot /path/to/documentroot/dgztl/web
<Directory "/path/to/documentroot/dgztl/web">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Create a symlink to the application assets, (*11)
cd web/ ln -s ../lib/vendor/symfony/symfony1/data/web/sf/ sf
Restart Apache, (*12)
sudo service httpd restart
Open a browser and go to, (*13)
http://checoperez.dev
CMS (Car Management System) for Checo Pérez
MIT