[CentOS] mod_suPHP
I have been trying to get mod_suPHP working on Centos 7's httpd, just as I've done with versions 5 and 6. I found a couple RPMs that others have built, and I even compiled suPHP from source, and got a successful compile. Each time, I can see with phpinfo() that the mod_suPHP module did indeed load, yet I cannot seem to get any script to run in a user other than the default of 'nobody'. Has anyone else had success with this? For a virtual hosting environment, I really need this type of functionality. 7 is definitely a different animal, but there must be something I am missing. I do have selinux disabled. Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] 8139 dropping packets
Check your duplex. I have had two recent problems with duplex: One, with a Cisco router - it auto-negotiated every time to half duplex, even though it really -was- full. Use mii-tool to find out. Two, with a RR modem - the speed was forced to 10mb half duplex instead of 100mb full duplex. All sorts of strange loss. Once I put it back, all was well. I have used TONs of 8139s, and while I do see where they are not the fastest kid on the block, I cannot say I've seen packet loss. Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] qemu-kvm for Centos 5 x86
Hey gang, I have been trying my hardest to get KVM running on a 32-bit CentOS 5. I know upstream doesn't support it, but from what I gather, it *is* possible. I've tried downloading the KVM source, but get nailed on compile with: LINK i386-softmmu/qemu make -C /lib/modules/2.6.18-308.1.1.el5PAE/build M=`pwd` \ LINUXINCLUDE=-I`pwd`/include -Iinclude \ -Iarch/x86/include -I`pwd`/include-compat \ -include include/linux/autoconf.h \ -include `pwd`/x86/external-module-compat.h \ $@ LD /usr/local/kvm-88/kvm/kernel/x86/built-in.o CC [M] /usr/local/kvm-88/kvm/kernel/x86/svm.o In file included from /usr/local/kvm-88/kvm/kernel/x86/external-module-compat.h:16, from command line:1: /usr/local/kvm-88/kvm/kernel/x86/../external-module-compat-comm.h:551: error: static declaration of âcancel_work_syncâ follows non-static declaration include/linux/workqueue.h:117: error: previous declaration of cancel_work_sync was here In file included from /usr/local/kvm-88/kvm/kernel/x86/external-module-compat.h:16, from command line:1: /usr/local/kvm-88/kvm/kernel/x86/../external-module-compat-comm.h:607: error: expected identifier or ( before { token In file included from /usr/local/kvm-88/kvm/kernel/x86/external-module-compat.h:16, from command line:1: /usr/local/kvm-88/kvm/kernel/x86/../external-module-compat-comm.h:717: error: conflicting types for smp_call_function_many include/asm/smp.h:46: error: previous declaration of smp_call_function_many was here make[4]: *** [/usr/local/kvm-88/kvm/kernel/x86/svm.o] Error 1 make[3]: *** [/usr/local/kvm-88/kvm/kernel/x86] Error 2 make[2]: *** [_module_/usr/local/kvm-88/kvm/kernel] Error 2 make[1]: *** [all] Error 2 make: *** [kvm-kmod] Error 2 Has anyone built RPM packages for this? Ideas on how to compile? I'm running the kernel: 2.6.18-308.1.1.el5PAE Thanks. Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Really bad KVM disk performance
Hi Gang, I recently rented a server at a datacenter with Centos 5.7 X64, Q9550 Processor, 8GB Ram, and dual 250GB SATA HDs (with 16mb cache). They had loaded it with KVM, and installed a 30-day trial of Virtualizor as the front-end for KVM. I was so impressed with how fasts the guests ran that I want to build a few of these machines for myself. I just installed one: same Q9550 processor, 4GB ram, and dual 250GB SATA HDs (with 32mb cache). I installed Centos 6.2 X64, and installed Webmin's Cloudmin as the front-end. Immediately when I was installing stuff, I could tell this new system I just built was not nearly as fast as the first one. I ran some CPU and disk benchmarking programs, and saw that while the CPU stuff tested similarly, the disk thruput was much different... Down-right poor in one of the guests! On both systems, /dev/md2 is a LVM reserved exclusively for KVM guests. So each guest is running in its own logical volume, in software raid. Thinking there may be something wrong with the HDs, I ran Bonnie ( http://www.coker.com.au/bonnie++/ ) and compared both host machines. They tested fairly similar (within 10%). Yet comparing their guests is like night and day. Example: On good machine's Centos 5.7 x32 guest install: # hdparm -tT /dev/hda /dev/hda: Timing cached reads: 26760 MB in 1.99 seconds = 13417.10 MB/sec Timing buffered disk reads: 388 MB in 3.01 seconds = 128.86 MB/sec On my machine's Centos 5.7 x32 guest install: # hdparm -tT /dev/hda /dev/hda: Timing cached reads: 1864 MB in 2.16 seconds = 863.87 MB/sec Timing buffered disk reads: 358 MB in 3.08 seconds = 116.17 MB/sec On one of my machine's Mandrake 8.2 x32 guest install: # hdparm -tT /dev/hda /dev/hda: Timing buffer-cache reads: 27000 MB in 2.00 seconds = 13500.00 MB/sec Timing buffered disk reads: 12 MB in 3.66 seconds = 3.28 MB/sec On that system, the hdparm's -i output shows: # hdparm -i /dev/hda /dev/hda: Model=QEMU HARDDISK, FwRev=0.12.1, SerialNo=QM1 Config={ Fixed } RawCHS=16383/16/63, TrkSize=32256, SectSize=512, ECCbytes=4 BuffType=DualPortCache, BuffSize=256kB, MaxMultSect=16, MultSect=16 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=73400320 IORDY=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 AdvancedPM=no Drive conforms to: ATA/ATAPI-5 published, ANSI NCITS 340-2000: * signifies the current active mode The bonnie numbers show for sequential output: Good Machine Host: 76,857K/Sec My Machine Host: 72,561K/Sec Good Machine Centos 5.7 Guest: 66,266K/sec My Machine Centos 5.7 Guest: 20,623K/sec My machine Mandrake Guest: 1,365K/sec Where should I look? I realize I do have two different front-ends to KVM, and perhaps they are passing different parameters to it. I am also running the KVM from Centos 6.2 on my machine, vs the other server is running on 5.7, but I would have thought that newer is better. Also note that my hard drives have a larger cache. On a side note, I'm not thrilled with the Virtualizor's tech support, but the product seems easy to use, once it actually works. Cloudmin seems to be buggy, and not let you do things like change cd images on the fly, access the console before the machine fully boots (!)... Any suggestions on other, preferably open-source options? I'm a definite newbie to this virtualization stuff. Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Copy OS live to different hardware
Hello, I've got some CentOS 5.3 servers that I want to clone to a backup server, possibly a VM machine. I want this to be done while the server is up, and keep it synced at least once a day. I've done this already by using RSYNC, but here's the twist: the backup machine could be different hardware, and needs to have a different IP address (so they don't conflict). My question: exactly what files should I exclude, so that I copy everything -except- what pertains to the ethernet card(s), and hard drive mounts. I know of at least: /etc/fstab /etc/sysconfig/network-scripts/* /var/run /proc But what else? The original servers may have software raid, so those files can't be copied either. Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] re-install over internet
Hello, I just got back from a datacenter where I installed a new server running CentOS 5.3. I set up a software raid with md0 being /. (Only one mount, didn't split anything up.) I just discovered that instead of raid 1, it did raid 0... Not exactly what I wanted! Probably missed that little check when installing. So now, I need to change this. But since the whole OS is on this raided partition that I want to change, I'm a bit stuck. Is there a way to launch an installer while in the OS that I can re-install the whole thing over the internet, without having to physically go to the box? Speed of installation is not that much of an issue. It would obviously need to keep up some sort of shell with my current eth0 settings during the install. Thanks for any ideas! Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] re-install over internet
you'd need a remote console of some sort on that box. many brand name servers have these, HP calls it iLO, Dell calls it DRAC, etc. these have their own ethernet port, which has to be connected to the network and configured. you'd also need a PXE server on the same network segment to do a jumpstart install from, or use a virtual CD with that remote console (slow if you're not onsite) Barring that, I think you are SOL. Thanks for the reply. I some more details: I have the following HD config: sda1 - 100 megs, /boot sda2 - 1gb, swap sda3 - 70gb, raid -- sdb1 - 100 megs, empty sdb2 - 1gb swap sbb3 - 70gb raid Would it be possible to use /boot to hold something? or perhaps turning off the swap and using the two gigs there? I could probably trim down the OS to under 2gb total. Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] re-install over internet
John: If the DC has KVM over IP, they can connect to his box, can he do it with that? Lanny Interesting idea. I don't think they do, but even if they did, I don't have the install CD in the drive. Is there a way to perhaps load a tiny distro on /boot, reconfigure grub to load that, and then use that to do the deed? I can copy the data to other nearby servers, so I'm not worried about that, but I don't have the install CDs handy. I could download something to a nearby server though, if that would help. Bob ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos