To Create Web URL (interface) for accessing logs using Apache
1) Create a folder logs in following location :-
/opt/hpws/apache/htdocs
drwxrwxrwx 7 root sys 8192 Jun 1 2009 logs
bash-3.2$ pwd
/opt/hpws/apache/htdocs
2) Create folders in logs :-
apachelogs opmnlogs
bash-3.2$ ls -ltr
total 32
drwxrwxrwx 2 root sys 96 Feb 12 2009 opmnlogs
drwxrwxrwx 2 root sys 96 Feb 12 2009 apachelogs
Note :-
a) Replace “/u03/app/home” with ORACLE HOME PATH
b) Use this command to make a soft link :-
ln –s logs /u03/app/home/opmn/logs
3) Go to opmnlogs :-
Create a folder logs and create a soft link like below:-
bash-3.2$ ls -ltr
total 0
lrwx------ 1 root sys 26 Feb 12 2009 logs -> /u03/app/home/opmn/logs
4) Go to apachelogs :-
Create a folder logs and create a soft link like below:-
bash-3.2$ cd apachelogs/
bash-3.2$ ls -ltr
total 0
lrwx------ 1 root sys 35 Feb 12 2009 logs -> /u03/app/home/Apache/Apache/logs
bash-3.2$
5) Restart apache server
./apachectl stop
./apachectl start
/opt/hpws/apache/htdocs
drwxrwxrwx 7 root sys 8192 Jun 1 2009 logs
bash-3.2$ pwd
/opt/hpws/apache/htdocs
2) Create folders in logs :-
apachelogs opmnlogs
bash-3.2$ ls -ltr
total 32
drwxrwxrwx 2 root sys 96 Feb 12 2009 opmnlogs
drwxrwxrwx 2 root sys 96 Feb 12 2009 apachelogs
Note :-
a) Replace “/u03/app/home” with ORACLE HOME PATH
b) Use this command to make a soft link :-
ln –s logs /u03/app/home/opmn/logs
3) Go to opmnlogs :-
Create a folder logs and create a soft link like below:-
bash-3.2$ ls -ltr
total 0
lrwx------ 1 root sys 26 Feb 12 2009 logs -> /u03/app/home/opmn/logs
4) Go to apachelogs :-
Create a folder logs and create a soft link like below:-
bash-3.2$ cd apachelogs/
bash-3.2$ ls -ltr
total 0
lrwx------ 1 root sys 35 Feb 12 2009 logs -> /u03/app/home/Apache/Apache/logs
bash-3.2$
5) Restart apache server
./apachectl stop
./apachectl start
Comments