RE: unable to read code in Apache httpd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/2    S+   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/2    S+   05:57   0:00 grep --color=auto http

-> ls -l /var/www/html
drwxrwxrwx.  7 root   apache    4096 Jul 19 03:23 app
drwxrwxrwx.  2 root   apache    4096 Jul 19 03:23 bin
-rwxrwxrwx.  1 root   apache    2769 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   apache    1065 Oct 17  2017 LICENSE
drwxrwxrwx.  3 root   apache    4096 Aug  1  2019 nbproject
drwxrwxrwx. 12 root   apache    4096 Oct 17  2017 piwik
-rwxrwxrwx.  1 root   apache    5732 Oct 17  2017 README.md
drwxrwxrwx.  3 root   apache    4096 Aug  1  2019 src
-rwxrwxrwx   1 root   root        45 Jul 18 08:02 testpage.php
-rwxrwxrwx.  1 apache apache      27 Sep 14  2020 test.php
-rwxrwxrwx.  1 root   apache    1308 Oct 17  2017 UPGRADE-2.2.md
-rwxrwxrwx.  1 root   apache    1962 Oct 17  2017 UPGRADE-2.3.md
-rwxrwxrwx.  1 root   apache     356 Oct 17  2017 UPGRADE-2.4.md
-rwxrwxrwx.  1 root   apache    8499 Oct 17  2017 UPGRADE.md
drwxrwxrwx. 22 root   apache    4096 Oct 17  2017 vendor
drwxrwxrwx. 10 apache apache    4096 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 <Antony.Stone@xxxxxxxxxxxxxxxxxxxxx> 
Sent: 19 July 2022 15:19
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


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.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux