Skip to content

Instantly share code, notes, and snippets.

@dbu
Created December 11, 2012 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dbu/4261984 to your computer and use it in GitHub Desktop.
Save dbu/4261984 to your computer and use it in GitHub Desktop.
travis apache run
#!/bin/bash
sudo apt-get install -y --force-yes apache2
sudo a2enmod actions
sudo a2enmod rewrite
echo "export PATH=/home/vagrant/.phpenv/bin:$PATH" | sudo tee -a /etc/apache2/envvars > /dev/null
echo "$(cat scripts/travis/assets/phpconfig.txt)" | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null
echo "$(cat scripts/travis/assets/vhost.txt)" | sed -e "s,PATH,`pwd`/web,g" | sudo tee /etc/apache2/sites-available/default > /dev/null
echo "date.timezone = UTC" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
sudo service apache2 restart
security:
providers:
chain_provider:
chain:
providers: [fos_userbundle, in_memory]
in_memory:
memory:
users:
admin: { password: admin, roles: [ 'ROLE_ADMIN' ] }
[2012-12-11 19:13:31] event.DEBUG: Notified event "kernel.request" to listener
"Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". [] []
447[2012-12-11 19:13:31] event.DEBUG: Notified event "kernel.request" to listener
"Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener::onKernelRequest". [] []
448[2012-12-11 19:13:31] event.DEBUG: Notified event "kernel.request" to listener
"Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". [] []
449[2012-12-11 19:13:31] event.DEBUG: Notified event "kernel.request" to listener
"Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] []
450[2012-12-11 19:13:45] request.INFO: Matched route "search_client_index" (parameters:
"_controller": "project_search.controller.search:indexAction", "_route": "search_index") [] []
451[2012-12-11 19:13:45] event.DEBUG: Notified event "kernel.request" to listener
"Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". [] []
452[2012-12-11 19:13:45] event.DEBUG: Notified event "kernel.request" to listener
"Symfony\Component\Security\Http\Firewall::onKernelRequest". [] []
453[2012-12-11 19:13:45] security.INFO: Populated SecurityContext with an anonymous Token [] []
454[2012-12-11 19:13:45] event.DEBUG: Notified event "kernel.exception" to listener
"Symfony\Component\Security\Http\Firewall\ExceptionListener::onKernelException". [] []
455[2012-12-11 19:13:45] security.DEBUG: Access is denied (user is not fully authenticated)
by "/home/travis/builds/Liip/project/vendor/symfony/symfony/src/Symfony/Component/Security
/Http/Firewall/AccessListener.php" at line 70; redirecting to authentication entry point [] []
456[2012-12-11 19:13:45] security.DEBUG: Calling Authentication entry point [] []
457[2012-12-11 19:13:45] event.DEBUG: Listener "Symfony\Component\Security\Http\Firewall
\ExceptionListener::onKernelException" stopped propagation of the event "kernel.exception". [] []
458[2012-12-11 19:13:45] event.DEBUG: Listener "Symfony\Component\HttpKernel\EventListener
\ProfilerListener::onKernelException" was not called for event "kernel.exception". [] []
459[2012-12-11 19:13:45] event.DEBUG: Listener "Symfony\Component\HttpKernel\EventListener
\ExceptionListener::onKernelException" was not called for event "kernel.exception". [] []
460[2012-12-11 19:13:45] event.DEBUG: Notified event "kernel.response" to listener
"Symfony\Component\Security\Http\Firewall\ContextListener::onKernelResponse". [] []
@dbu
Copy link
Author

dbu commented Dec 11, 2012

this happens on travis on
curl -u admin:admin http://localhost/app_test.php/search

if i do the exact same thing locally with my vagrant machine, it works. any ideas?

@stefanosala
Copy link

Same happens on my production server, did you manage to solve this thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment