Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am using RHEL5 at VirtualBox,at the time of installation i did create two partition one for / and another for swap.Now my /var directory is taking too much space and i decided to create a new partition with required size and mount that partition to /var.
Now http service wont start and i did not reboot yet.
i am using RHEL5 at VirtualBox,at the time of installation i did create two partition one for / and another for swap.Now my /var directory is taking too much space and i decided to create a new partition with required size and mount that partition to /var.
Now http service wont start and i did not reboot yet.
am i in the right track, if not what should i do?
No idea, since your question is hard to understand.
You say your http service won't start....have you checked the logs? What error(s) did you get? What did you do/try? Did you move the data from your old /var to the new one? All we can tell from your question, is that http won't start...which doesn't give us alot to go on, to try to help.
No idea, since your question is hard to understand.
You say your http service won't start....have you checked the logs? What error(s) did you get? What did you do/try? Did you move the data from your old /var to the new one? All we can tell from your question, is that http won't start...which doesn't give us alot to go on, to try to help.
yes first i create a partition then mount it to /mnt and copy all files and directories in /dev with cp -rvf to /mnt.Then unmount /mnt and add new line to /etc/fstab so that new partition can mount to /var.
Code:
[root@pc5 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 8.6G 4.0G 4.2G 49% /
tmpfs 62M 0 62M 0% /dev/shm
/dev/hdd2 940M 75M 818M 9% /var
/dev/hda2 965M 25M 891M 3% /home
[root@pc5 ~]# ls /var
account cvs ftp initctl lock nis preserve spool yp
cache db games lib log null racoon tmp
crash empty gdm local mail opt run www
[root@pc5 ~]#
Code:
[root@pc5 log]# rpm -qa http*
httpd-2.2.3-6.el5
[root@pc5 log]# chkconfig --list httpd
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@pc5 log]# service httpd start
Starting httpd: [FAILED]
[root@pc5 log]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [FAILED]
[root@pc5 log]#
[root@pc5 ~]# tail -f /var/log/messages
Mar 31 17:56:50 pc5 Installed: httpd-devel.i386 2.2.3-6.el5
Mar 31 18:03:00 pc5 kernel: kjournald starting. Commit interval 5 seconds
Mar 31 18:03:00 pc5 kernel: EXT3 FS on hdd2, internal journal
Mar 31 18:03:00 pc5 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Mar 31 18:03:30 pc5 kernel: kjournald starting. Commit interval 5 seconds
Mar 31 18:03:30 pc5 kernel: EXT3 FS on hdd2, internal journal
Mar 31 18:03:30 pc5 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Mar 31 18:04:07 pc5 kernel: kjournald starting. Commit interval 5 seconds
Mar 31 18:04:07 pc5 kernel: EXT3 FS on hdd2, internal journal
Mar 31 18:04:07 pc5 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Try this run the command "httpd -t". What does it say? I do know that if you install apache without making any changes to paths that it will install the "www" directory under var. I believe that you broke this with either permissions or it is missing it altogether. The command above will run a check against the config and make sure that everything is correct especially the document root. If that says everything is okay, I would run strace again apache.
I would say see what "httpd -t" says first. If you do believe it is selinux and you wan to check that first run "getenforce". Correct me if I am wrong but you can expect only three responses. First is "Enforcing". Second says "Permissive". This means that Selinux is install and running but will not manage security. It will log messages to the system log file. The third option is that you get an error "Command not found". That should indicate that it isn't installed. If it is installed you can
If it is enabled you can disable by using the command "setenforce 0". Use the "getenforce" and verify that it states "Permissive". Now setting it from the command line will only set until you reboot. You will have to edit "/etc/sysconfig/selinux", or use "system-config-securitylevel".
If you want to continue to use Selinux then you should find all the answers on the permissions that should be used by looking through the man pages of apache. You can find all of the man pages associated with apache by either using "man -k httpd" or "rpm -qd httpd".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.