/api-mani-in-pasta

ApiManiInPasta

Primary LanguagePHP

virtual host

<VirtualHost *:80>
        ServerAdmin asalidu@it.tiscali.com
        ServerName api.maniinpasta.com
        DocumentRoot /var/www/mani_in_pasta_behat/web
        <Directory /var/www/mani_in_pasta_behat/web/>
                Options All
                AllowOverride All
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/maniinpasta_error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel debug

        CustomLog ${APACHE_LOG_DIR}/maniinpasta_access.log combined
</VirtualHost>


in /etc/hosts aggiungere

127.0.0.1  api.maniinpasta.com


== Database ==
Connettersi a mysql come admin/root e inserire:

    create database maniinpasta;
    grant all privileges on maniinpasta.* to maniinpasta@'localhost' identified by 'maniinpasta';
    grant all privileges on maniinpasta.* to maniinpasta@'%' identified by 'maniinpasta';


Da console, in api-mani-in-pasta

    php app/console doctrine:schema:create