Solved

LVM and Apache

Posted on 2008-10-07
4
442 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

932 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now