Solved

LVM and Apache

Posted on 2008-10-07
4
447 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
awk sed variable in file 3 97
Migrating a Linux server to VMware 3 104
Shell Script- gzip 5 45
SSH to Solaris server (which uses NIS) 1 14
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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 …
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.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

685 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