Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

LVM and Apache

Posted on 2008-10-07
4
446 Views
Last Modified: 2013-12-16
Hi, bellow is my lvm configuration

[Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol03
                      1.2G  243M  846M  23% /
/dev/mapper/VolGroup00-LogVol01
                      1.9G   93M  1.7G   6% /var
/dev/mapper/VolGroup00-LogVol02
                      2.4G  2.2G  112M  96% /usr
/dev/hda1              99M   12M   83M  13% /boot
tmpfs                 125M     0  125M   0% /dev/shm
/dev/mapper/VolGroup00-LogVol00
                      747M   17M  699M   3% /home
/dev/mapper/VolGroup00-LogVol05
                      496M   19M  452M   4% /var/www/html/web1


As you can see, i have create extra LV as web1

now problem is :
i have  2 folder in /var/www/html/advanced
                            /var/www/html/web1 ( which is configured as LV)

now if i type : http://servername/advanced ( which comes fine)
but                 http://servername/web1 ( permission denid)

i have checked the permission , its same
drwxr-xr-x 7 root root 4096 Oct  7 11:53 advanced
drwxr-xr-x 5 root root 1024 Oct  7 11:42 web1

my question is : why http://servername/web1 is not comming ?? is there any relation between lvm and web1  becasuse i have create this one as lvm ??
0
Comment
Question by:fosiul01
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
jools earned 500 total points
ID: 22657664
Sounds like it may be selinux related...

do;
   ls -alZ /var/www/html

Check the logs;
   cat /var/log/messages
   cat /var/log/audit

If you are getting permirrion denied errors for selinux, type;
   restorecon -r /var/www/html/web1
0
 
LVL 29

Author Comment

by:fosiul01
ID: 22657721
yes its selinux issue i guess

[root@bkworkshop ~]#  ls -alZ /var/www/html
drwxr-xr-x  root root system_u:object_r:httpd_sys_content_t .
drwxr-xr-x  root root system_u:object_r:httpd_sys_content_t ..
drwxr-xr-x  root root root:object_r:httpd_sys_content_t advanced
drwxr-xr-x  root root system_u:object_r:file_t         web1
0
 
LVL 29

Author Comment

by:fosiul01
ID: 22657742
yap done!!!
ok now tell me,

the way i have created

/dev/mapper/VolGroup00-LogVol05
                      496M   19M  452M   4% /var/www/html/web1

is this the right way ??

like LV for each web site, so in future if i need to increase any site, i can do easily
right ??
0
 
LVL 19

Expert Comment

by:jools
ID: 22657840
Sure, looks fine to me...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question