Solved

LVM and Apache

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

708 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

16 Experts available now in Live!

Get 1:1 Help Now