Web Hosting Talk







View Full Version : Help Install CPanel/WHM


jamjam
04-08-2010, 09:11 PM
I cant seem to install cpanel on my VPS.

It shows this error after executing sh latest


[Thu Apr 8 19:01:40 2010] Starting /usr/local/cpanel/libexec/tailwatch/tailwatchd daemon
Log is at /usr/local/cpanel/logs/tailwatchd_log
*** Notice *** No loop module detected
If the loopback block device is built as a module, try running `modprobe loop` as root via ssh and running this script again.
If the loopback block device is built into the kernel itself, you can ignore this message.
*** Notice *** No working loopback device files found. Try running `modprobe loop` as root via ssh and running this script again.
...Done
Cleaning Up....+.+....Done


And then no apache or mysql is installed

I am using CentOS 5.3 32 bit, 1 Gig Xen VPS

I dont have any idea what to do next


Thanks


Edit:

Tried /scripts/easyapache to check if apache will install and it did not


checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.4.2
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/home/cpeasyapache/src/httpd-2.2.15/srclib/apr':
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
!! './configure --enable-expires --enable-headers --enable-info --enable-logio --enable-proxy --enable-rewrite --enable-ssl --enable-suexec --prefix=/usr/local/apache --with-included-apr --with-ssl=/usr --with-suexec-caller=nobody --with-suexec-docroot=/ --with-suexec-gidmin=100 --with-suexec-logfile=/usr/local/apache/logs/suexec_log --with-suexec-uidmin=100 --with-suexec-userdir=public_html' failed with exit code '256' !!
!! No original working apache backup to restore !!
!! Executing '/scripts/initfpsuexec' !!
!! Executing '/scripts/initsslhttpd' !!
Compiling report...
Sending report (1575 bytes)...
!! If you want to create a support ticket with cPanel regarding this please reference 'BuildAP Report Id': '3428473' !!
Report processed.
!! Feel free to submit a support ticket at https://tickets.cpanel.net/submit/index.cgi?reqtype=tickets !!
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1270775081' !!

jamjam
04-08-2010, 09:18 PM
Also trying to run any executable from cpanel shows this

[root@host /]#/usr/local/cpanel/cpanel -S
-bash: /usr/local/cpanel/cpanel: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory

RDOSTI
04-08-2010, 10:51 PM
I have taken this off a forum posting by someone else on some other website. This is not my own content but is for the same issue (Dated January)

If you have ipables active & blocked all port except specific port like mine (only port 22 excluded), then you need to turn off the firewall:
Code:
service iptables save
service iptables stop
chkconfig iptables off
This solution solved my problem, run this on the node:
# modprobe loop

# nano /etc/fstab

add this line at the end:
none /tmp tmpfs nodev,nosuid,noexec 0 0

reboot VPS and then run:
# /scripts/securetmp

If it runs properly then you can try to reinstall cpanel, it is almost possible that cpanel installation will be installed properly
Additional step needed (command) needed to be run on the node to set the firewall, it is really optional if the steps above didn't work:
Code:
# vzctl stop xxx

# vzctl set xxx --iptables ipt_REJECT --iptables ipt_tos --iptables ipt_TOS --iptables ipt_LOG --iptables ip_conntrack --iptables ipt_limit --iptables ipt_multiport --iptables iptable_filter --iptables iptable_mangle --iptables ipt_TCPMSS --iptables ipt_tcpmss --iptables ipt_ttl --iptables ipt_length --iptables ipt_state --iptables iptable_nat --iptables ip_nat_ftp --save

# vzctl set xxx --numiptent 2500 --save

# vzctl set xxx --devnodes loop0:rw --save

# vzctl start xxx
replace xxx with your container ID

remember, all the steps above only works with openvz. Good luck!

weboutloud-Chris
04-08-2010, 11:37 PM
RDOSTI, he has indicated that this is a Xen VPS.

Out of curiosity, jamjam, are you working with a regular cPanel license or a VPS license?

VIPoint
04-09-2010, 03:35 AM
Check the verbose log file at /usr/local/cpanel/logs/easy/apache/build.127077508 and check what is the error message that you are getting During apache installation.

Also try executing "modprobe loop" via ssh as root

jamjam
04-09-2010, 06:51 AM
RDOSTI, he has indicated that this is a Xen VPS.

Out of curiosity, jamjam, are you working with a regular cPanel license or a VPS license?

I am working on a vps license.


Anyway I just reinstalled a new os (64 bit) and it is now working. I guess the OS template my VPS provider has a problem on their 32 bit image.