[EMAIL PROTECTED] Set Environmental Variable for PHP

2006-03-29 Thread Tom Cat
I'm trying to set ORACLE_HOME so that PHP will connect to Oracle. I first tried to stick the following into /etc/bashrc ORACLE_HOME=/home/oracle/oracle/product/10.2.0/client_1 export ORACLE_HOME That works fine for everyone on the box who has a shell, but the apache user doesn't have a shell so

Re: [EMAIL PROTECTED] Set Environmental Variable for PHP

2006-03-29 Thread Tom Cat
On 3/29/06, Joshua Slive [EMAIL PROTECTED] wrote: On 3/29/06, Tom Cat [EMAIL PROTECTED] wrote: I'm trying to set ORACLE_HOME so that PHP will connect to Oracle. I first tried to stick the following into /etc/bashrc ORACLE_HOME=/home/oracle/oracle/product/10.2.0/client_1 export

[EMAIL PROTECTED] password protected dir with unprotected subdir

2006-03-13 Thread Tom Cat
I've set up one directory to be password protected. Alias /work /work1/ Directory /work1 Options Indexes MultiViews AllowOverride None Order allow,deny AuthUserFile /etc/httpd/htpasswords AuthType Basic AuthName Work1 require user strycat

[EMAIL PROTECTED] Premature end of script headers

2006-02-21 Thread Tom Cat
All of my perl scripts generate this error when I try to have Apache serve them. I'm on RHEL with Apache 2.0.52. The simplest script I have is: #!/usr/bin/perl print Hello; In the error log I'm told: [Tue Feb 21 08:57:48 2006] [error] [client 10.33.1.32] Premature end of script headers:

Re: [EMAIL PROTECTED] Premature end of script headers

2006-02-21 Thread Tom Cat
On 2/21/06, Matt Weston [EMAIL PROTECTED] wrote: Try changing it to hello.pl Thanks. Just tried that doesn't seem to care what what the file is name or what extension it has, it just keeps giving the Premature end of script headers error. I also tried just now adding use CGI::Carp

Re: [EMAIL PROTECTED] Premature end of script headers

2006-02-21 Thread Tom Cat
On 2/21/06, Boyle Owen [EMAIL PROTECTED] wrote: To clear up some of the confusing advice you've been getting: - the extension is not important, .cgi is fine. - you don't need the CGI:Carp module (don't complicate life unnecessarily) Thanks! When I removed this line, it all of a sudden

[EMAIL PROTECTED] Change LimitRequestBody for one directory without htaccess

2006-02-02 Thread Tom Cat
For one subdirectory in our document root, I want to change LimitRequestBody to a much higher number. The catch is I don't want to allowoverride, so using an htaccess file is not possible. What I did was create an alias and then did an directory tag for the alias. Is this the best way? Is there

Re: [EMAIL PROTECTED] Can Anyone Recommend A Log Analyzer?

2005-11-16 Thread Tom Cat
I use two. The first is webalizer (http://www.mrunix.net/webalizer/). The reports are usually enough for most small websites. However it does segfault on RHEL 3 and despite posting questions for help on their mailing the problem has not been resolved (I keep an RH9 box around for a number of

Re: [EMAIL PROTECTED] Apache and PHP

2005-10-31 Thread Tom Cat
Check out http://www.linux-sottises.net/en_apache_install.php Using both PHP and mod_perl together has caused problems in the past (http://slashdot.org/article.pl?sid=00/11/21/1720242), but I think they will play nicely now. FYI, I ditched mod_perl in favor of a PHP a while ago. If I really

Re: [EMAIL PROTECTED] php extensions, help

2005-10-31 Thread Tom Cat
This is really a PHP question not an Apache question. Check out: http://us2.php.net/manual/en/ref.imap.php To get these functions to work, you have to compile PHP with --with-imap[=DIR], where DIR is the c-client install prefix. From our example above, you would use

Re: [EMAIL PROTECTED] Apache 1.3.33 not compiling proxy (only problem...at the moment)

2005-09-19 Thread Tom Cat
On 9/16/05, Eric Wagar [EMAIL PROTECTED] wrote: But, after the make|make install, I receive these errors: Starting Apache Server for ewm-test.corp.sgi.com /engr/apache/site_conf/ewm-test.corp.sgi.com/start : ewm-test.corp.sgi.com::httpd could not be started Syntax error on line 230 of