Re: [cgiwrap-users] CGIWrap / PHP / override of variables
Brought to you by:
nneul
From: Tuc at T-B-O-H.N. <ml...@t-...> - 2007-05-01 17:00:03
|
Hi Nathan, Unfortunately, not in a position to do that. So in the absence of that, any ideas how to wrangle cgiwrap? I've implemented what I mentioned, making a "php4phpwebsite" that looked like : #!/bin/sh /usr/local/bin/php -d session.auto_start=0 $* And in debug mode I see the following... But the problem is that when I take the debug off, I get an error 500 of : [Tue May 1 12:27:50 2007] [error] [client 69.249.95.230] malformed header from script. Bad header=<html>: /usr/local/www/cgi-bin/phpwebsite-php-cgiwrap Why would <HTML> be a bad header? Tuc OUTPUT : Initializing Logging Redirecting STDERR to STDOUT Setting SIGXCPU to default behaviour Environment Variables: QUERY_STRING: '' SCRIPT_NAME: '/gcgi-bin/phpwebsite-php-cgiwrapd' SCRIPT_FILENAME: '/usr/local/www/cgi-bin/phpwebsite-php-cgiwrapd' REDIRECT_URL: '/setup/index.php' PATH_INFO: '/phpweb/setup/index.php' PATH_TRANSLATED: '/home/phpwebsite/phpweb/setup/index.php' REMOTE_USER: '<NULL>' REMOTE_HOST: '<NULL>' REMOTE_ADDR: '69.249.95.230' Trying to extract user from PATH_INFO. Retrieved User Name: 'phpweb' User Data Retrieved: UserID: 'phpweb' UID: '1019' GID: '1019' Home Dir: '/home/phpwebsite' Checking user minimum uid. Checking for required REDIRECT_URL. Checking for CGIWRAP_REQUIRE_USER in environment. Script Base Directory: '/home/phpwebsite/' Fetching script string Trying to extract script from PATH_INFO Extracted PATH_INFO '/setup/index.php' Building script path Condensing slashes. Script Relative Path: 'setup/index.php' Script Absolute Path: '/home/phpwebsite//setup/index.php' Checking for special interpreted script (php). Interpreter Path: '/usr/local/bin/php4phpwebsite' Fixing Environment Variables. Environment Variables: QUERY_STRING: '' SCRIPT_NAME: '/gcgi-bin/phpwebsite-php-cgiwrapd/phpweb/setup/index.php' SCRIPT_FILENAME: '/home/phpwebsite//setup/index.php' REDIRECT_URL: '/setup/index.php' PATH_INFO: '<NULL>' PATH_TRANSLATED: '/home/phpwebsite/phpweb/setup/index.php' REMOTE_USER: '<NULL>' REMOTE_HOST: '<NULL>' REMOTE_ADDR: '69.249.95.230' Logging Request (syslog) UIDs/GIDs Changed To: RUID: '1019' EUID: '1019' RGID: '1019' EGID: '1019' Changing current directory to '/home/phpwebsite//setup' Executing: '/usr/local/bin/php4phpwebsite' Arguments: 0: '/usr/local/bin/php4phpwebsite' 1: 'index.php' Output of script follows: ===================================================== <html> <head> <title>phpWebSite 1.1.0 - Directory Permissions</title> > > I would probably change the app to not require changing php.ini, that's > seems ugly as an installation requirement. > > -- Nathan > > ------------------------------------------------------------ > Nathan Neulinger EMail: nn...@um... > University of Missouri - Rolla Phone: (573) 341-6679 > UMR Information Technology Fax: (573) 341-4216 > > > -----Original Message----- > > From: cgi...@li... [mailto:cgiwrap- > > use...@li...] On Behalf Of Tuc at T-B-O- > > H.NET > > Sent: Tuesday, May 01, 2007 11:07 AM > > To: cgi...@li... > > Subject: [cgiwrap-users] CGIWrap / PHP / override of variables > > > > Hi, > > > > I'm trying to install PHPWebSite. The first issue I ran into > > was > > they wanted a variable set in the php.ini. Since I didn't want to > > break > > EVERYTHING ELSE, I used the "php_value BLAH 1" syntax. All was > > good. > > > > Then I realized it needed to write to all sorts of > > directories, > > and said "Um, I need to cgiwrap this". So I did. But then it > > started > > to complain about the variable not being set in php.ini. > > > > So now I'm stuck. Any hints on what to do? Right now the only > > thing I can think of is create another version of cgiwrap that will > > have "/usr/local/bin/php -c /usr/local/etc/sitespecific.php.ini" > > as the --with-php= . Is there a better/different way to do it? > > > > Thanks, Tuc > > |