Adding these 2 parameters solved everything for me:
--check-static /var/www/prestashop/ --static-skip-ext .php


The complete uwsgi parameter:

LD_LIBRARY_PATH=/usr/local/php5-emb/lib ./uwsgi --plugin plugins/php/php
--php-ini /usr/local/php5-emb/lib/php.ini --check-static
/var/www/prestashop/  --static-skip-ext .php --php-allowed-ext .php
--php-index index.php --php-docroot /var/www/prestashop --master
--socket 127.0.0.1:3030 --processes 4 --chdir /var/www/prestashop
--route-run setmodifier1:14



Thanks again, Tamer!


Am 19.09.2014 um 16:16 schrieb Roberto De Ioris:
> 
>> Hi Roberto!
>>
>> I got it working... I am really happy.
>> now I have to figure out, how to set the mime-type as uwsgi gives
>> everything out as text/html.
>>
>> uwsgi loads the mime file, but gives back everything to apache with
>> text/html. Any ideas ?!
>>
>>
>> LD_LIBRARY_PATH=/usr/local/php5-emb/lib ./uwsgi --plugin
>> 0:plugins/php/php --php-ini /usr/local/php5-emb/lib/php.ini --php-index
>> index.php --php-docroot /var/www/prestashop --master --socket
>> 127.0.0.1:3030 --processes 4 --chdir /var/www/prestashop --mime-file
>> /etc/mime.types
>>
>>
> 
> It is because the php engine is serving your static files. Can't you map
> (in apache) only the requests ending with .php to uWSGI ?
> 

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to