jekillen | 1 Apr 2007 03:53
Picon

permissions on apxs

Hello;
I am trying to install php with apache as a DSO
on FreeBSD v 6.2 . ./configure bails out complaining
about apxs permission denied. What could be the possible
causes?
The script is in /usr/local/sbin which has root ownership and
group wheel owner ship and is set executable and readable
by owner, group, other (rwxr-xr-x)
Owner ship of the php source dir and files are all root,wheel
I am doing this as root.
Any other possibilities?
I did supply Apache ./configure --with-perl=/usr/bin -- etc....
should I have done --with-perl=/usr/bin/perl ?
I have not checked root path.. I will do that now.... It is in the root 
path.
But I had to log out and back in for it to take effect.
I redid ./configure <with options> and got the rest of the
configure  error message. It looks like I do have to add perl to the
end of the line -with-perl=/usr/bin/perl
One other question:
I tried putting all the configure options in a file and reading the
file into .configure with file redirect, I.E.
./configure < config_file.txt   for Apache
but it did not seem to work. Is this typical for configure scripts
or is something wrong?
It is sure better to do it that way so I do not have to retype the
whole sting of options every time I want to do something differently.
Thank in advance
Jeff K

(Continue reading)

Kristopher Yates | 1 Apr 2007 03:34
Picon
Favicon

Re: Mod RewriteRule Help : Accepting Variable Number Of Arguments

Hi Dragon,

Thank you for the reply.  Greatly appreciated.

Your suggestion was helpful in this learning process.  Unfortunately the 
result is the same error I have been getting.

mod_rewrite: maximum number of internal redirects reached. Assuming 
configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit 
if neccessary.

It looks like it should work, but alas, no dice.

What is interesting to note is that if *ONLY* the longest rule exists, and I 
pass it the expected number of arguments, it is incorrectly parsed by 
mod_rewrite:

RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/?$ 
/index.php?section=$1&page=$2&mode=$3&item=$4&action=$5 [L]

Parsing http://domain.com/section/page/mode/item/action/

Results:
_REQUEST[section] = "section/page"
_REQUEST[page] = "mode"
_REQUEST[item] = "action"
_REQUEST[action] = empty

Its as if there is some bug in parsing the first argument where it passes 
the first and second argument to $1.
(Continue reading)

Eric Covener | 1 Apr 2007 04:16
Picon
Gravatar

Re: Mod RewriteRule Help : Accepting Variable Number Of Arguments

On 3/31/07, Kristopher Yates <kris_yates64 <at> hotmail.com> wrote:
> Hi Dragon,
> RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/?$
> /index.php?section=$1&page=$2&mode=$3&item=$4&action=$5 [L]
>
> Parsing http://domain.com/section/page/mode/item/action/
>
> Results:
> _REQUEST[section] = "section/page"
> _REQUEST[page] = "mode"
> _REQUEST[item] = "action"
> _REQUEST[action] = empty

All the asterisks are greedy, and the one you expect to be 'action'
doesn't have anything left to match but the forward slash but the 0
characters after the slash following "action".  Try making the
previous expressions non greedy, and maybe use + instead of *

--

-- 
Eric Covener
covener <at> gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

(Continue reading)

Kristopher Yates | 1 Apr 2007 04:18
Picon
Favicon

RE: permissions on apxs

Hello Jeff,

Are you configuring your PHP with ./configure 
--with-apxs=/usr/local/sbin/apxs ?

Specifying the full path to APXS in your configure may solve the problem.

Also, it sounds like you installed Apache using FBSD ports.  You may want to 
install the port for PHP instead of compiling it.

When using FBSD, I use ports for the most part, however, when it comes to 
Apache and PHP, I prefer installing both by hand.  It seems to be more 
manageable in the long run and tends to be a "smoother" install.

If that doesn't work, let me know.  We'll need to move the conversation to 
the php-general mailing list.  I'm not on the list but can resubscribe if 
need be.

Hope this helps,

Kris

>From: jekillen <jekillen <at> prodigy.net>
>Reply-To: users <at> httpd.apache.org
>To: users <at> httpd.apache.org
>Subject: [users <at> httpd] permissions on apxs
>Date: Sat, 31 Mar 2007 17:53:00 -0800
>
>Hello;
>I am trying to install php with apache as a DSO
(Continue reading)

Eric Covener | 1 Apr 2007 04:18
Picon
Gravatar

Re: Mod RewriteRule Help : Accepting Variable Number Of Arguments

On 3/31/07, Eric Covener <covener <at> gmail.com> wrote:
>  Try making the previous expressions non greedy, and maybe use + instead of *

Sorry, as in /(.+?)/

--

-- 
Eric Covener
covener <at> gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Kristopher Yates | 1 Apr 2007 05:06
Picon
Favicon

Re: Mod RewriteRule Help : Accepting Variable Number Of Arguments

Hi Eric,

Changing to .+ seems to work fine.  I have only one issue left.  The issue 
is a server error when only one argument is passed.  Here is what I have 
that works when more than one argument is passed:

RewriteRule ^(.+)/(.+)/(.+)/(.+)/(.+)$ 
/index.php?section=$1&page=$2&mode=$3&item=$4&action=$5 [L]
RewriteRule ^(.+)/(.+)/(.+)/(.+)$ 
/index.php?section=$1&page=$2&mode=$3&item=$4 [L]
RewriteRule ^(.+)/(.+)/(.+)$ /index.php?section=$1&page=$2&mode=$3 [L]
RewriteRule ^(.+)/(.+)$ /index.php?section=$1&page=$2 [L]

I thought that, by creating one last rule at the bottom of my list, 
mod_rewrite would catch all instances of when only one argument is passed:

RewriteRule ^(.+)$ /index.php?section=$1 [L]

Adding this final rule breaks everything, resulting in ye olde 'endless 
loop' error for all requests.

I found the following rule as a solution at 
http://forums.searchenginewatch.com/showthread.php?t=3925 but I still get 
the same problem, though the documentation I found said it should work:

RewriteRule ^([^/]+)/?$ /index.php?section=$1 [L]

Any ideas?

Thank you,
(Continue reading)

Gattu Madhusudanarao | 1 Apr 2007 17:01
Picon
Favicon

mod_cgid CGI Script Timeout (The normal Timeout directive) does not work

Hi,
   We are using Apache 2.0.59 and found the following.

   Apache worker thread/child process waiting
for CGI output times out when mod_cgi module is used. 

   But it does not timeout when mod_cgid is used.

   To reproduce, create a CGI script that sleeps for
say 20 seconds while the TimeOut is set to 10 seconds.

   How do we make it work for mod_cgid.
Thanks in Advance,
Madhu

 
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

jekillen | 1 Apr 2007 19:07
Picon

Re: permissions on apxs


On Mar 31, 2007, at 6:18 PM, Kristopher Yates wrote:

> Hello Jeff,
>
> Are you configuring your PHP with ./configure 
> --with-apxs=/usr/local/sbin/apxs ?
>
> Specifying the full path to APXS in your configure may solve the 
> problem.
>
> Also, it sounds like you installed Apache using FBSD ports.  You may 
> want to install the port for PHP instead of compiling it.
>
> When using FBSD, I use ports for the most part, however, when it comes 
> to Apache and PHP, I prefer installing both by hand.  It seems to be 
> more manageable in the long run and tends to be a "smoother" install.
>
> If that doesn't work, let me know.  We'll need to move the 
> conversation to the php-general mailing list.  I'm not on the list but 
> can resubscribe if need be.
>
> Hope this helps,
>
> Kris
>
>> From: jekillen <jekillen <at> prodigy.net>
>> Reply-To: users <at> httpd.apache.org
>> To: users <at> httpd.apache.org
>> Subject: [users <at> httpd] permissions on apxs
(Continue reading)

jekillen | 2 Apr 2007 01:18
Picon

no libphp.so

Hello agian;
I have been gripping about
php not producing libphp5.so
for use as a DSO with Apache
on FreeBSD v 6.2
 >> good news >>
I solved it.
By re installing the system
and starting all over again.
After reading the output of ./configure
in the php source dir, it was reporting
that it could not find a compatible version
of Bison.
I cannot say that that is THE cause, but
whatever it was re installing solved it.
I did not get any responses so there
is no one in particular to thank but
thanks all, Apache is free software
and what works is far greater in volume
and value than what does not
Now if only we could get to the developers
of the human (user level) mind, maybe we could
debug that and be better off.
Jeff K

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
(Continue reading)

Callum Haig | 2 Apr 2007 02:17
Picon

Authentication problems with reverse + forward proxy

I'm sure this issue has been covered before, but I'm afraid my extensive research has turned up only posts by users with the same problem with no accompanying solution.
 
What I want do is configure a reverse proxy for use with an existing authenticating forward proxy.  The latter is beyond my control.  I've added the following lines to my config:
 
    ProxyRequests On
    ProxyRemote * http://existing.forward.proxy:8080
Accessing a URL reverse proxied by my server results in an "Access Denied (authentication_failed)".  Can anyone recommend the correct method for addressing this problem.
 
Kind regards,
Callum.

This e-mail message (including any attachment) is intended only for the personal use of the recipient(s) named above. This message is confidential and may be legally privileged. Any review, retransmission, dissemination or other use of, or taking any action in reliance on, this communication by persons or entities other than the intended recipient is prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the original message.

Neither Hutchison 3G Australia Pty Limited (H3GA) nor Hutchison Telecommunications (Australia) Limited (HTAL) make any express or implied representation or warranty that this electronic communication or any attachment is free from computer viruses or other defects or conditions which could damage or interfere with the recipient’s data, hardware or software. This communication and any attachment may have been modified or otherwise interfered with in the course of transmission.

The message represents the views and opinions of the author and under no circumstances represent those of H3GA, HTAL or its Group Companies. The shareholders, directors and management of H3GA and HTAL and its Group Companies accept no responsibility and accordingly shall have no liability to any party whatsoever in respect to the contents of this message.


Gmane