Welcome! Log In Create A New Profile

Advanced

Setting PHP variables per site w/Uwsgi-plugin-php

Posted by oeginc 
Setting PHP variables per site w/Uwsgi-plugin-php
December 26, 2013 08:00AM
I understand this may be a uwsgi question, but I couldn't find any place to ask it other than here.

My setup:
- Debian 7.x Wheezy
- Nginx 1.2.1
- uwsgi, uwsgi-emperor, uwsgi-plugin-php, uwsgi-plugin-python

Problem:
I have some legacy websites that still require 'register_globals' to be enabled. I'd prefer not to enable
it for *all* websites, so I want to set it per site.

In /etc/uwsgi-emperor/vassals/mysite.ini:
[uwsgi]
plugins=php
processes=2
cheaper=1
socket=/var/run/uwsgi/site/%n/php-socket

Is there some way to add an option here to set PHP.INI variables like 'register_globals'?

I am using uwsgi to launch applications from Nginx, from what I've read it's the up-and-coming way to do it, and I host a number of python applications as well so I already have it installed. If this is not correct, please let me know. I'm rebuilding my servers and would like to get it as close to 'right' as possible from the start.

Thanks!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 333
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready