[users@httpd] unable to read code in Apache httpd

2022-07-19 Thread Pasupuleti, Sri Sai RamKumar
Hello Team,

We require a help from as apache is unable to read code which is placed in 
/var/www/html folder. Suddenly our working application stopped working. WE have 
verified all the configurations everything look good.

Please help us on this issue.

Thanks & regards,
___
Pasupuleti Sri Sai RamKumar
Capgemini | Global Application | Group IT
Tel.: +91 9705706581
Hyderabad | India

Get The Future You Want - explore opportunities with Group 
IT


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or 
any part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.


Re: [users@httpd] unable to read code in Apache httpd

2022-07-19 Thread Antony Stone
On Tuesday 19 July 2022 at 11:42:52, Pasupuleti, Sri Sai RamKumar wrote:

> We require a help from as apache is unable to read code which is placed in
> /var/www/html folder. Suddenly our working application stopped working. WE
> have verified all the configurations everything look good.

Show exactly what commands you are running and what the results are, and show 
us the exact error messages you are seeing in any log files.

Also please give us some basic information such as:

 - which Linux distribution and version is this running on?
 - which version of Apache are you running?
 - what do the following three commands (as root) show:

ps aux | grep apache
ps aux | grep http
ls -l /var/www/html

Antony.

-- 
I think, therefore I am.
I'm pink, therefore I'm Spam.
I drink, therefore I think I am.

   Please reply to the list;
 please *don't* CC me.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [users@httpd] unable to read code in Apache httpd

2022-07-19 Thread Pasupuleti, Sri Sai RamKumar
Hello Stone,

When we hit the application, By default we are getting tomcat page. Below are 
the requested details.

1. which Linux distribution and version is this running on?
  -> NAME="Red Hat Enterprise Linux Server"  & VERSION="7.9 (Maipo)"
2. which version of Apache are you running?
  ->Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
3. what do the following three commands (as root) show:

-> ps aux | grep apache
apache   13730  0.1  0.1 696260 12648 ?Sl   04:03   0:07 
/usr/sbin/httpd -DFOREGROUND
apache   13731  0.0  0.0 472924 11456 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
apache   13732  0.0  0.0 472924 11452 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
apache   13733  0.0  0.0 472924 11456 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
apache   13737  0.0  0.0 472924 11440 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
apache   13776  0.0  0.0 472784  9400 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
root 26283  0.0  0.0 112816   980 pts/2S+   05:56   0:00 grep 
--color=auto apache

-> ps aux | grep http
root 13729  0.0  0.1 434828 16276 ?Ss   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
apache   13730  0.1  0.1 696260 12648 ?Sl   04:03   0:07 
/usr/sbin/httpd -DFOREGROUND
apache   13731  0.0  0.0 472924 11456 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
apache   13732  0.0  0.0 472924 11452 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
apache   13733  0.0  0.0 472924 11456 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
apache   13737  0.0  0.0 472924 11440 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
apache   13776  0.0  0.0 472784  9400 ?Sl   04:03   0:00 
/usr/sbin/httpd -DFOREGROUND
root 26363  0.0  0.0 112816   976 pts/2S+   05:57   0:00 grep 
--color=auto http

-> ls -l /var/www/html
drwxrwxrwx.  7 root   apache4096 Jul 19 03:23 app
drwxrwxrwx.  2 root   apache4096 Jul 19 03:23 bin
-rwxrwxrwx.  1 root   apache2769 Aug  1  2019 composer.json
-rwxrwxrwx.  1 root   apache   87319 Oct 17  2017 composer.lock
-rwxrwxrwx.  1 root   apache 1073734 Oct 17  2017 composer.phar
-rwxrwxrwx.  1 root   apache 281 Oct 17  2017 How to install Piwik.html
-rwxrwxrwx.  1 root   apache1065 Oct 17  2017 LICENSE
drwxrwxrwx.  3 root   apache4096 Aug  1  2019 nbproject
drwxrwxrwx. 12 root   apache4096 Oct 17  2017 piwik
-rwxrwxrwx.  1 root   apache5732 Oct 17  2017 README.md
drwxrwxrwx.  3 root   apache4096 Aug  1  2019 src
-rwxrwxrwx   1 root   root45 Jul 18 08:02 testpage.php
-rwxrwxrwx.  1 apache apache  27 Sep 14  2020 test.php
-rwxrwxrwx.  1 root   apache1308 Oct 17  2017 UPGRADE-2.2.md
-rwxrwxrwx.  1 root   apache1962 Oct 17  2017 UPGRADE-2.3.md
-rwxrwxrwx.  1 root   apache 356 Oct 17  2017 UPGRADE-2.4.md
-rwxrwxrwx.  1 root   apache8499 Oct 17  2017 UPGRADE.md
drwxrwxrwx. 22 root   apache4096 Oct 17  2017 vendor
drwxrwxrwx. 10 apache apache4096 Sep 26  2020 web

Thanks & regards, 
___
Pasupuleti Sri Sai RamKumar
Capgemini | Global Application | Group IT
Tel.: +91 9705706581
Hyderabad | India

Get The Future You Want - explore opportunities with Group IT



-Original Message-
From: Antony Stone  
Sent: 19 July 2022 15:19
To: users@httpd.apache.org
Subject: Re: [users@httpd] unable to read code in Apache httpd

***This mail has been sent by an external source***

On Tuesday 19 July 2022 at 11:42:52, Pasupuleti, Sri Sai RamKumar wrote:

> We require a help from as apache is unable to read code which is 
> placed in /var/www/html folder. Suddenly our working application 
> stopped working. WE have verified all the configurations everything look good.

Show exactly what commands you are running and what the results are, and show 
us the exact error messages you are seeing in any log files.

Also please give us some basic information such as:

 - which Linux distribution and version is this running on?
 - which version of Apache are you running?
 - what do the following three commands (as root) show:

ps aux | grep apache
ps aux | grep http
ls -l /var/www/html

Antony.

--
I think, therefore I am.
I'm pink, therefore I'm Spam.
I drink, therefore I think I am.

   Please reply to the list;
 please *don't* CC me.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or

Re: [users@httpd] unable to read code in Apache httpd

2022-07-19 Thread Deepak Goel
What is the url you are using? You have an apache web server i think. So
wondering why you are getting a tomcat page?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Tue, Jul 19, 2022 at 3:30 PM Pasupuleti, Sri Sai RamKumar
 wrote:

> Hello Stone,
>
> When we hit the application, By default we are getting tomcat page. Below
> are the requested details.
>
> 1. which Linux distribution and version is this running on?
>   -> NAME="Red Hat Enterprise Linux Server"  & VERSION="7.9 (Maipo)"
> 2. which version of Apache are you running?
>   ->Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
> 3. what do the following three commands (as root) show:
>
> -> ps aux | grep apache
> apache   13730  0.1  0.1 696260 12648 ?Sl   04:03   0:07
> /usr/sbin/httpd -DFOREGROUND
> apache   13731  0.0  0.0 472924 11456 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13732  0.0  0.0 472924 11452 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13733  0.0  0.0 472924 11456 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13737  0.0  0.0 472924 11440 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13776  0.0  0.0 472784  9400 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> root 26283  0.0  0.0 112816   980 pts/2S+   05:56   0:00 grep
> --color=auto apache
>
> -> ps aux | grep http
> root 13729  0.0  0.1 434828 16276 ?Ss   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13730  0.1  0.1 696260 12648 ?Sl   04:03   0:07
> /usr/sbin/httpd -DFOREGROUND
> apache   13731  0.0  0.0 472924 11456 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13732  0.0  0.0 472924 11452 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13733  0.0  0.0 472924 11456 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13737  0.0  0.0 472924 11440 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> apache   13776  0.0  0.0 472784  9400 ?Sl   04:03   0:00
> /usr/sbin/httpd -DFOREGROUND
> root 26363  0.0  0.0 112816   976 pts/2S+   05:57   0:00 grep
> --color=auto http
>
> -> ls -l /var/www/html
> drwxrwxrwx.  7 root   apache4096 Jul 19 03:23 app
> drwxrwxrwx.  2 root   apache4096 Jul 19 03:23 bin
> -rwxrwxrwx.  1 root   apache2769 Aug  1  2019 composer.json
> -rwxrwxrwx.  1 root   apache   87319 Oct 17  2017 composer.lock
> -rwxrwxrwx.  1 root   apache 1073734 Oct 17  2017 composer.phar
> -rwxrwxrwx.  1 root   apache 281 Oct 17  2017 How to install Piwik.html
> -rwxrwxrwx.  1 root   apache1065 Oct 17  2017 LICENSE
> drwxrwxrwx.  3 root   apache4096 Aug  1  2019 nbproject
> drwxrwxrwx. 12 root   apache4096 Oct 17  2017 piwik
> -rwxrwxrwx.  1 root   apache5732 Oct 17  2017 README.md
> drwxrwxrwx.  3 root   apache4096 Aug  1  2019 src
> -rwxrwxrwx   1 root   root45 Jul 18 08:02 testpage.php
> -rwxrwxrwx.  1 apache apache  27 Sep 14  2020 test.php
> -rwxrwxrwx.  1 root   apache1308 Oct 17  2017 UPGRADE-2.2.md
> -rwxrwxrwx.  1 root   apache1962 Oct 17  2017 UPGRADE-2.3.md
> -rwxrwxrwx.  1 root   apache 356 Oct 17  2017 UPGRADE-2.4.md
> -rwxrwxrwx.  1 root   apache8499 Oct 17  2017 UPGRADE.md
> drwxrwxrwx. 22 root   apache4096 Oct 17  2017 vendor
> drwxrwxrwx. 10 apache apache4096 Sep 26  2020 web
>
> Thanks & regards,
> ___
> Pasupuleti Sri Sai RamKumar
> Capgemini | Global Application | Group IT
> Tel.: +91 9705706581
> Hyderabad | India
>
> Get The Future You Want - explore opportunities with Group IT
>
>
>
> -Original Message-
> From: Antony Stone 
> Sent: 19 July 2022 15:19
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] unable to read code in Apache httpd
>
> ***This mail has been sent by an external source***
>
> On Tuesday 19 July 2022 at 11:42:52, Pasupuleti, Sri Sai RamKumar wrote:
>
> > We require a help from as apache is unable to read code which is
> > placed in /var/www/html folder. Suddenly our working application
> > stopped working. WE have verified all the configurations everything look
> good.
>
> Show exactly what commands you are running and what the results are, and
> show us the exact error messages you are seeing in any log files.
>
> Also please give us some basic information such as:
>
>  - which Linux distribution and version is this running on?
>  - which version of Apache are you running?
>  - what do the following three commands (as root) show:
>
> ps aux | grep apache
> ps aux | grep http
> ls -l /var/www/html
>
> Antony.
>
> --
> I think, therefore I am.
> I'm pink, therefore I'm Spam.
> I drink, therefore I think I am.
>

Re: [users@httpd] mod_proxy_http getting double-slashes sporadically

2022-07-19 Thread Yann Ylavic
On Fri, Jul 15, 2022 at 9:35 PM  wrote:
>
> Ok, trying to figure out how to fix this.
>
> For our mod_proxy configuration we are getting sporadic double-slashes 
> showing up after the ProxyPass URL. For example:
>
> ProxyPass /myapp balancer://mybalance/myapp
> ProxyPassReverse /myapp balancer://mybalance/myapp

How are your BalancerMember(s) defined in the  block?


Regards;
Yann.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] mod_proxy_http getting double-slashes sporadically

2022-07-19 Thread Deepak Goel
How are you callin the gif ( logo.gif
  ) from this
page (http://myhost.mydomain.com/myapp/mainpage/index.htm) ?


Deepak
"The greatness of a nation can be judged by the way its animals are treated
- Mahatma Gandhi"

+91 73500 12833
deic...@gmail.com

Facebook: https://www.facebook.com/deicool
LinkedIn: www.linkedin.com/in/deicool

"Plant a Tree, Go Green"

Make In India : http://www.makeinindia.com/home


On Tue, Jul 19, 2022 at 4:22 PM Yann Ylavic  wrote:

> On Fri, Jul 15, 2022 at 9:35 PM 
> wrote:
> >
> > Ok, trying to figure out how to fix this.
> >
> > For our mod_proxy configuration we are getting sporadic double-slashes
> showing up after the ProxyPass URL. For example:
> >
> > ProxyPass /myapp balancer://mybalance/myapp
> > ProxyPassReverse /myapp balancer://mybalance/myapp
>
> How are your BalancerMember(s) defined in the  balancer://mybalance..> block?
>
>
> Regards;
> Yann.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] display Markdown in apache2?

2022-07-19 Thread Gary Aitken

Thanks for the replies.

On 7/17/22 7:36 PM, Steve Williams wrote:

On 7/17/2022 6:29 PM, Gary Aitken wrote:

Can anyone point me at a resource for help getting apache2 to display
Markdown (.md) files as translated to html?


I did that awhile back:

https://sbw.org/mdhandler/


So... I'm trying to either write a mod_xxx,
or get mod_markdown from
  https://github.com/hamano/apache-mod-markdown
to work.

I'm totally unskilled in this area, so am trying to get some logging
to see what's actually being called.

I'm trying to register two modules with the server:
  mod_markdown
  mod_commonmark

When I bounce the server, I see the following:
  [markdown:debug] [pid 26801:tid 140068510301120] mod_markdown.c(738): 
markdown_hook_check_config: markdown_conf found? true
which is printed from an ap_log_error call in markdown_hook_check_config.

However, I see no similar line for commonmark, which has a similar call
in its commonmark_hook_check_config.
There is no output for either in errors.log.

mod_commonmark register_hooks:
static void register_hooks(apr_pool_t *pool)
{
ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, 
"mod_commonmark:register_hooks");

(void)pool;
ap_hook_check_config(commonmark_hook_check_config, NULL, NULL, 
APR_HOOK_LAST);
ap_hook_handler(commonmark_handler, NULL, NULL, APR_HOOK_LAST);
}

static int commonmark_hook_check_config(apr_pool_t *pconf, apr_pool_t *plog,
apr_pool_t *ptemp, server_rec *s)
{
(void)pconf;
(void)plog;
(void)ptemp;
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, "commonmark_hook_check_config 
called");
return OK;
}

commonmark.load in apache2/mods-available looks like:
  LoadModule commonmark_module /usr/lib/apache2/modules/mod_commonmark.so
with a symlink in mods-enabled.

apache2.conf contains:
  LogLevel warn commonmark:debug markdown:debug

mysite.conf in apache2/sites-available contains:
  AddHandler markdown .md
  AddHandler commonmark .md
inside the virtual host definition.

It feels like something is not working in the early mod_commonmark loading
process, but I haven't a clue how to debug this.

Any hints would be much appreciated.

Thanks,

Gary

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org