Solved

LVM and Apache

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

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 …
Fine Tune your automatic Updates for Ubuntu / Debian
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

803 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