Skip to content

Instantly share code, notes, and snippets.

@queval-j
Last active October 24, 2016 15:55
Show Gist options
  • Save queval-j/f71894bc718a36c9ef07677d32622a6e to your computer and use it in GitHub Desktop.
Save queval-j/f71894bc718a36c9ef07677d32622a6e to your computer and use it in GitHub Desktop.
EZPublish 5 (EZPlatform) Install steps
# ./ezpublish_install.sh $folder_name
echo "== Project will be located at" $(pwd)"/$1 =="
sleep 2
echo "==> Create the project"
composer create-project --no-dev ezsystems/ezplatform
sleep 1
mv ezplatform $1
cd ./$1
echo "==> Composer install"
composer install
echo "==> Initialize database"
php -d memory_limit=-1 app/console ezplatform:install --env prod clean
php -d memory_limit=-1 app/console assetic:dump
echo "Website access : http://localhost/"
echo "Admin access : http://localhost/ez"
echo "Username: \"admin\" and password \"publish\""
echo "Change the password right after the first connection (for security purposes)
# $> cd web/ && touch .htaccess
# Copy and paste next content in to .htaccess
# <IfModule mod_rewrite.c>
# Options +FollowSymlinks
# RewriteEngine On
#
# # Explicitly disable rewriting for front controllers
# RewriteRule ^app_dev.php - [L]
# RewriteRule ^app.php - [L]
#
# RewriteCond %{REQUEST_FILENAME} !-f
#
# # Change below before deploying to production
# RewriteRule ^(.*)$ /app.php [QSA,L]
# #RewriteRule ^(.*)$ /app_dev.php [QSA,L]
# </IfModule>
# Script source : http://stackoverflow.com/questions/11149526/symfony2-rewrite-rules-htaccess-app-php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment