Re: [EMAIL PROTECTED] problem installing apache (resending)
On Fri, 2008-07-11 at 18:27 -0700, Infocom Admin wrote: > Yes it has write pemission too... SELinux. It's probably in enforcing mode (rather than permissive) and is preventing you doing things you believe you can. Try "setenforce 0" as root, and run make install again. Then to turn SELinux back into enforcing mode, "setenforce 1". Of course, this assumes you have created an SELinux policy to allow you to modify and execute things in /usr/local... Graeme - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] PATH_INFO and SCRIPT_NAME for handlers at root level
On Fri 11 Jul 2008, Mike Friedman wrote: > I've got a mod_perl handler setup like so, within a vhost: > > > SetHandler perl-script > PerlResponseHandler MyApp::Dispatcher > > > Under this setup, if I navigate to /myapp/foo/bar/baz, I get: > > PATH_INFO => /foo/bar/baz > SCRIPT_NAME => /myapp > > This makes sense. However, if I then change the Location block from > /myapp to /, the behavior changes: > > PATH_INFO => /bar/baz > SCRIPT_NAME => /foo Path_info determination depends on the layout of files and directories on your filesystem. I'd advise against using it in anything like a dispatcher. Just for fun try to create a regular file /myapp/foo/bar in your docroot and use your first setup. You'll see PATH_INFO=/baz. Instead use $r->location and $r->uri to compute a version of path-info by yourself. Something like that: $pi=$r->uri; $loc=$r->location; $pi=~s/^\E$loc\Q//; Torsten -- Need professional mod_perl support? Just hire me: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Problem with Configuring Virtual Host on Apache 2.2.6 Pls Help
Struggled with this for almost 2 months and finally got it working. And woeehh i still dont know what was wrong. May be i had wrong module installed, downloaded the latest Apache source, complied it and that solved the issue. Thanks guys for your help. Saachin Mandloi, Manager - Technology, http://www.takniki.com/ Takniki Communications --- On Wed, 30/4/08, Saachin Mandloi <[EMAIL PROTECTED]> wrote: From: Saachin Mandloi <[EMAIL PROTECTED]> Subject: Re: [EMAIL PROTECTED] Problem with Configuring Virtual Host on Apache 2.2.6 Pls Help To: users@httpd.apache.org Date: Wednesday, 30 April, 2008, 10:33 PM yes they are on 80 and 443 respectively i.e. http on 80 and https on 443 Dragon <[EMAIL PROTECTED]> wrote: Saachin Mandloi wrote: >Hi, > >I recently installed Fedora core 8 and planning to move my site to >this recently installed server. This has apache 2.2.6 bundled. > >I added a new virtual host contained in httpd.conf to start the IP >based http services for my site. Which was working fine. > >Later on i added another virtual host container in ssl.conf to start >using https services on the same site. > >Now the https://mysite.com works fine, but when i try to connect to >open the site through http://mysite.com it returns an error which is below > >Bad Request >Your browser sent a request that this server could not understand. >Reason: You're speaking plain HTTP to an SSL-enabled server port. >Instead use the HTTPS scheme to access this URL, please. > Hint: https://www.mysite.com > >The website should be reachable with both http and https. Am i doing >something wrong? Which directive has to be set to > >get both working? > >PLEASE HELP !! End original message. - What do the Listen directives say for each virtual host? Your non-SSL should be listening on port 80 and the SSL on 443. Dragon ~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~ - The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent from Yahoo! Mail. A Smarter Email. __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
[EMAIL PROTECTED] apache cache or other issues?
Hello, I used apache with php and drupal. I got the following error in my web browser. warning: file_get_contents(http://abc.mywebsite.com/?prt=test) [function.file-get-contents]: failed to open stream: Connection refused in /var/www/html/includes/common.inc(1352) : eval()'d code on line 22. here is content in common.inc near the line 1352: function drupal_eval($code) { ob_start(); print eval('?>'. $code); //line 1352 here $output = ob_get_contents(); ob_end_clean(); return $output; } from my web server linux box, I cannot access http://abc.mywebsite.com/?prt=test, connection refused. I got it fixed, and wget http://abc.mywebsite.com/?prt=test can grab the web page. However, I still keep getting the same error. I tried to replace the line print eval('?>'. $code); with teh following code. /* print eval('?>'. $code); */ $code = str_replace('<'.'?php','<'.'?',$code); eval('?'.'>'.trim($code).'<'.'?'); and then restart apache web server, and I even tried to reboot computer. still the same error message generated, though the line 1352 is a comment line now. I wonder if there is cache or precomiled code in apache/php/drupal causing this problem? I use apache version 2.2.8, php 5.2.6. Thanks. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] apache cache or other issues?
On Sat, Jul 12, 2008 at 4:06 PM, tom lee <[EMAIL PROTECTED]> wrote: > Hello, > > I used apache with php and drupal. > > I got the following error in my web browser. > > warning: file_get_contents(http://abc.mywebsite.com/?prt=test) > [function.file-get-contents]: failed to open stream: Connection > refused in /var/www/html/includes/common.inc(1352) : eval()'d code on > line 22. > > here is content in common.inc near the line 1352: > > function drupal_eval($code) { > ob_start(); > print eval('?>'. $code); //line 1352 here > $output = ob_get_contents(); > ob_end_clean(); > return $output; > } > > from my web server linux box, I cannot access > http://abc.mywebsite.com/?prt=test, connection refused. > I got it fixed, and wget http://abc.mywebsite.com/?prt=test can grab > the web page. > However, I still keep getting the same error. > > I tried to replace the line print eval('?>'. $code); > with teh following code. > /* print eval('?>'. $code); */ > $code = str_replace('<'.'?php','<'.'?',$code); > eval('?'.'>'.trim($code).'<'.'?'); > > and then restart apache web server, and I even tried to reboot computer. > still the same error message generated, though the line 1352 is a > comment line now. > > I wonder if there is cache or precomiled code in apache/php/drupal > causing this problem? > > I use apache version 2.2.8, php 5.2.6. > > Thanks. > > - it's trying to open a file via a url and as I recall that may be switched off by default in php 5.2.6. afaik apache 2.2.8 works just fine with php 5.2.6 What does your say about allow_url_fopen?
Re: [EMAIL PROTECTED] apache cache or other issues?
On Sat, Jul 12, 2008 at 4:56 PM, j k <[EMAIL PROTECTED]> wrote: >> - > > it's trying to open a file via a url and as I recall that may be switched > off by default in php 5.2.6. > afaik apache 2.2.8 works just fine with php 5.2.6 > What does your > > say about allow_url_fopen? allow_url_fopen is on, but allow_url_include is off. could it be allow_url_include issue? thanks. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] apache cache or other issues?
On Sat, Jul 12, 2008 at 8:06 PM, tom lee <[EMAIL PROTECTED]> wrote: > > allow_url_fopen is on, but allow_url_include is off. could it be > allow_url_include issue? Just checked. allow_url_include is not related. I don't understand why it still generateed the error even if I commented out the full function. function drupal_eval($code) { ob_start(); print eval('?>'. $code); //line 1352 here $output = ob_get_contents(); ob_end_clean(); return $output; } - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] apache cache or other issues?
Add a blank live or two before 1352 and if the error is still at 1352 then it's a cache or the wrong file. BTW, I know nothing about drupal so keep that in mind. I'd be interested in knowing what $code equals. Add something like this at the top of the drupal_eval function to see what the value of $code is. If the function gets called more then once increment the iterator to see subsequent values of $code. function drupal_eval($code) { $i = 1; if ( --$i == 0 ) { die( '' . print_r( $code , true ) . '' ); } //brad On Jul 12, 2008, at 8:36 PM, tom lee wrote: On Sat, Jul 12, 2008 at 8:06 PM, tom lee <[EMAIL PROTECTED]> wrote: allow_url_fopen is on, but allow_url_include is off. could it be allow_url_include issue? Just checked. allow_url_include is not related. I don't understand why it still generateed the error even if I commented out the full function. function drupal_eval($code) { ob_start(); print eval('?>'. $code); //line 1352 here $output = ob_get_contents(); ob_end_clean(); return $output; } - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] apache cache or other issues?
On Sat, Jul 12, 2008 at 8:59 PM, Bradley Giesbrecht <[EMAIL PROTECTED]> wrote: > Add a blank live or two before 1352 and if the error is still at 1352 then > it's a cache or the wrong file. I actually commented out the function and rebooted the computer. it still points to the line 1352 error even though the line 1352 is already commented out in the function. I really don't know what kinda of cache cannot be cleaned by rebootinig. Thanks. tom - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]