You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jack Connors <co...@sbcglobal.net> on 2015/04/10 21:50:34 UTC
[users@httpd] file write problem
Environment:
OpenSUSE 13.2 (x86_64)
Apache 2.4.10
Apache Error Log (/var/log/apache2/error_log):
[Fri Apr 10 12:30:44.021729 2015] [ssl:warn] [pid 1513] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Apr 10 12:30:44.025051 2015] [mpm_prefork:notice] [pid 1513] AH00163: Apache/2.4.10 (Linux/SUSE) OpenSSL/1.0.1k-fips configured -- resuming normal operations
[Fri Apr 10 12:30:44.025139 2015] [core:notice] [pid 1513] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
Local config file (/etc/apache2/httpd.conf.local):
<Directory /tmp>
AllowOverride None
Require all granted
</Directory>
Excerpt from the CGI script:
my $testFile = '/tmp/test.txt';
my $m = "webPage starting\n";
open (FH, ">>", $testFile) or die "cannot open $testFile: $!\n";
print FH "$m";
close FH;
Problem:
I have a CGI script in perl.
The script writes to a file.
The file exists and has world read/write access.
This function worked with apache 2.2.17.
With 2.4, Nothing happens: no errors, no write to file.
I have tried the Directory directive shown in the local config file.
The local config is included in httpd.conf.
Any suggestions.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] file write problem
Posted by Jeff Trawick <tr...@gmail.com>.
On 04/10/2015 05:36 PM, Jason Cillo wrote:
> Does 2.4 support Perl? I thought I read somewhere recently that it did not.
There's not yet a mod_perl release that supports 2.4 but you can use it
from svn or with patches.
>
>> On Apr 10, 2015, at 3:50 PM, Jack Connors <co...@sbcglobal.net> wrote:
>>
>> Environment:
>> OpenSUSE 13.2 (x86_64)
>> Apache 2.4.10
>>
>> Apache Error Log (/var/log/apache2/error_log):
>> [Fri Apr 10 12:30:44.021729 2015] [ssl:warn] [pid 1513] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
>> [Fri Apr 10 12:30:44.025051 2015] [mpm_prefork:notice] [pid 1513] AH00163: Apache/2.4.10 (Linux/SUSE) OpenSSL/1.0.1k-fips configured -- resuming normal operations
>> [Fri Apr 10 12:30:44.025139 2015] [core:notice] [pid 1513] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
>>
>> Local config file (/etc/apache2/httpd.conf.local):
>> <Directory /tmp>
>> AllowOverride None
>> Require all granted
>> </Directory>
This doesn't affect whether or not your CGI script can write to /tmp.
It only affects whether or not requests that map to /tmp can be served.
>>
>> Excerpt from the CGI script:
>> my $testFile = '/tmp/test.txt';
>> my $m = "webPage starting\n";
>> open (FH, ">>", $testFile) or die "cannot open $testFile: $!\n";
>> print FH "$m";
>> close FH;
>>
>>
>> Problem:
>> I have a CGI script in perl.
>> The script writes to a file.
>> The file exists and has world read/write access.
>> This function worked with apache 2.2.17.
>> With 2.4, Nothing happens: no errors, no write to file.
>> I have tried the Directory directive shown in the local config file.
>> The local config is included in httpd.conf.
>>
>> Any suggestions.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] file write problem
Posted by Jason Cillo <ja...@comcast.net>.
Does 2.4 support Perl? I thought I read somewhere recently that it did not.
> On Apr 10, 2015, at 3:50 PM, Jack Connors <co...@sbcglobal.net> wrote:
>
> Environment:
> OpenSUSE 13.2 (x86_64)
> Apache 2.4.10
>
> Apache Error Log (/var/log/apache2/error_log):
> [Fri Apr 10 12:30:44.021729 2015] [ssl:warn] [pid 1513] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
> [Fri Apr 10 12:30:44.025051 2015] [mpm_prefork:notice] [pid 1513] AH00163: Apache/2.4.10 (Linux/SUSE) OpenSSL/1.0.1k-fips configured -- resuming normal operations
> [Fri Apr 10 12:30:44.025139 2015] [core:notice] [pid 1513] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
>
> Local config file (/etc/apache2/httpd.conf.local):
> <Directory /tmp>
> AllowOverride None
> Require all granted
> </Directory>
>
>
> Excerpt from the CGI script:
> my $testFile = '/tmp/test.txt';
> my $m = "webPage starting\n";
> open (FH, ">>", $testFile) or die "cannot open $testFile: $!\n";
> print FH "$m";
> close FH;
>
>
> Problem:
> I have a CGI script in perl.
> The script writes to a file.
> The file exists and has world read/write access.
> This function worked with apache 2.2.17.
> With 2.4, Nothing happens: no errors, no write to file.
> I have tried the Directory directive shown in the local config file.
> The local config is included in httpd.conf.
>
> Any suggestions.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org