This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
166
Information / Re: CentOS Web Panel GUI is Not working
« on: April 04, 2017, 10:43:44 PM »
For me the problem is solved. I noticed that the CPU is Dual Core and I installed CentOS 6.8 x86. Then I reinstalled it with CentOS 6.8 x86_64, put a new installation of the CWP and now everything works like a charm.
167
I can build it / Re: OpenVZ with CWP
« on: April 04, 2017, 07:56:31 PM »
Ok, guys, some bad news. As I see you can`t install OpenVZ on CentOS 7.x:
Code: [Select]
---> Package vzkernel.x86_64 0:2.6.32-042stab120.20 will be installed
--> Processing Dependency: /sbin/mkinitrd for package: vzkernel-2.6.32-042stab120.20.x86_64
--> Processing Dependency: /sbin/mkinitrd for package: vzkernel-2.6.32-042stab120.20.x86_64
Packages skipped because of dependency problems:
vzkernel-2.6.32-042stab120.20.x86_64 from openvz-kernel-rhel6
[root@odyn ~]#
It`s not supported anymore. You have to install virtualizor or proxmox. Both I don`t like. So we keep up to CentOS 6.8 (Final) even after it`s EOL.
168
Information / Re: CentOS Web Panel GUI is Not working
« on: April 04, 2017, 06:05:12 PM »
Same here:
Code: [Select]
[root@odyn ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: nat [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@odyn ~]# csf -x
csf and lfd have been disabled, use 'csf -e' to enable
[root@odyn ~]#
And still no CWP GUI with error 500. Admin any ideas?
169
Installation / Re: After a fresh install on minimal CentOS 6.8 I get ...
« on: April 04, 2017, 06:02:36 PM »
After "service iptables stop" ... the same. I still don`t have CWP.admin and just getting 500 error.
170
Installation / Re: After a fresh install on minimal CentOS 6.8 I get ...
« on: April 03, 2017, 05:57:31 PM »Quote
How to change ownership on the files and folders
go to CWP.admin Left Menu –> User Accounts — > Fix Permissions and select user.
The problem is that I don`t have CWP.admin ... and I already tried to fix permissions of cwp-httpd files but still no effect.
171
Installation / Re: After a fresh install on minimal CentOS 6.8 I get ...
« on: April 03, 2017, 05:07:58 PM »
If I open http://192.168.32.38 it`s loading for me the standard CentOS Web Panel welcome page. But when I try to open http://192.168.32.38:2030 I got error 500. I`ve been doing this installation with the same .iso of CentOS 6.8 on that PC already more than 30 times since I`m working on "OpenVZ with CWP". Last 2 reinstalls are giving me error 500. Any idea how to fix this?
172
Installation / After a fresh install on minimal CentOS 6.8 I get ...
« on: April 03, 2017, 08:49:11 AM »
This page isn’t working
192.168.32.38 is currently unable to handle this request.
HTTP ERROR 500
Why? Where? How?
192.168.32.38 is currently unable to handle this request.
HTTP ERROR 500
Why? Where? How?
173
Scripts / Not a bad MOTD script
« on: April 02, 2017, 07:13:09 PM »
First of all to install few things needed for the script (mostly needed if you have minimal install):
Now the script:
After you run the script you can relog to your server or "cat /etc/motd" to see the output. Should be something similar to this:
Code: [Select]
yum -y install bc lm_sensors
This script was made very long time ago for one of my FreeBSD servers. Now it`s changed a bit with added functions.Now the script:
Code: [Select]
#!/bin/bash
#Server Status Script
#https://www.born2host.com
#CPU info
cpumodel=`cat /proc/cpuinfo | head -20 | grep "model name"| awk '{print $4, $5, $6, $7, $8, $10 }'`
core0=`sensors -u | head -11 |grep "temp1_input"| awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}'`
core1=`sensors -u | head -20 |grep "temp2_input"| awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}'`
core2=`sensors -u | head -30 |grep "temp3_input"| awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}'`
core3=`sensors -u | head -40 |grep "temp4_input"| awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}'`
Load1=`cat /proc/loadavg | awk {'print $1'}`
Load5=`cat /proc/loadavg | awk {'print $2'}`
Load15=`cat /proc/loadavg | awk {'print $3'}`
#Users info
user=`whoami`
psa=`ps -Afl | wc -l`
psu=`ps U $user h | wc -l`
#System update need
yum=`yum list updates -q | grep -vc "Updated Packages"`
#Uptime
btime=`last -x | grep reboot | tail -n 1 | awk '{print $1, $2, $6, $7, $8}'`
uptime=`cat /proc/uptime | cut -f1 -d.`
upDays=$((uptime/60/60/24))
upHours=$((uptime/60/60%24))
upMins=$((uptime/60%60))
upSecs=$((uptime%60))
#RAM
mfr=`free -m | head -n 2 | tail -n 1 | awk {'print $4'}`
mfc=`free -m | head -n 3 | tail -n 1 | awk {'print $3'}`
mtc=`free -m | head -n 2 | tail -n 1 | awk {'print $2'}`
swap=`free -m | tail -n 1 | awk {'print $3'}`
#Disk
raid=`cat /proc/mdstat |grep Personalities`
disk=`df -h | awk '{ a = $4 } END { print a }'`
echo -e "
\e[96mSystem Server Status
\e[39m- \e[31mServer Name \e[35m= \e[92m`hostname`
\e[39m- \e[31mPublic IP \e[35m= \e[92m`dig +short myip.opendns.com @resolver1.opendns.com`
\e[39m- \e[31mOS Version \e[35m= \e[92m`cat /etc/redhat-release`
\e[39m- \e[31mPlatform \e[35m= \e[92m`uname -orpi`
\e[39m- \e[31mCPU model \e[35m= \e[92m$cpumodel
\e[39m- \e[31mCPU Usage \e[35m= \e[92m$Load1 (1 min) \e[93m>> \e[92m$Load5 (5 min) \e[93m>> \e[92m$Load15 (15 min)
\e[39m- \e[31mUsers logged \e[35m= \e[92mCurrently `users | wc -w` users logged on
\e[39m- \e[31mCurrent user \e[35m= \e[92m$user
\e[39m- \e[31mSystem boot \e[35m= \e[92m$btime
\e[39m- \e[31mSystem Uptime \e[35m= \e[92m$upDays days $upHours hours $upMins minutes $upSecs seconds
\e[39m- \e[31mSystem Update \e[35m= \e[31m$yum \e[92mpackages can be updated
\e[39m- \e[31mTotal Memory(RAM) \e[35m= \e[92m$mtc Mb
\e[39m- \e[31mMemory free (real) \e[35m= \e[92m$mfr Mb
\e[39m- \e[31mMemory free (cache) \e[35m= \e[92m$mfc Mb
\e[39m- \e[31mSwap in use \e[35m= \e[92m$swap Mb
\e[39m- \e[31mProcesses \e[35m= \e[92mYou are running $psu of $psa processes
\e[39m- \e[31mRAID \e[35m= \e[92m$raid
\e[39m- \e[31mDisk Space Used \e[35m= \e[92m$disk
\e[39m- \e[31mCPU Temperature \e[35m= \e[92mCore1 $core0 °C ; Core2 $core1 °C ; Core3 $core2 °C ; Core4 $core3 °C ;
\e[39m
" > /etc/motd
#exit 0
The script will put all the information in /etc/motd and it`s a good idea to put that script in your crontab to run every 1 hour for example(if you want every 5min).After you run the script you can relog to your server or "cat /etc/motd" to see the output. Should be something similar to this:
Code: [Select]
[root@srv1 ~]# cat /etc/motd
System Server Status
- Server Name = srv1.born2host.com
- Public IP = 77.236.172.141
- OS Version = CentOS release 6.8 (Final)
- Platform = 2.6.32-642.11.1.el6.x86_64 x86_64 x86_64 GNU/Linux
- CPU model = Intel(R) Core(TM)2 Duo CPU T8100 2.10GHz
- CPU Usage = 0.14 (1 min) >> 0.04 (5 min) >> 0.01 (15 min)
- Users logged = Currently 1 users logged on
- Current user = root
- System boot = reboot system Dec 17 11:29
- System Uptime = 106 days 8 hours 16 minutes 47 seconds
- System Update = 0 packages can be updated
- Total Ram = 2886 Mb
- Memory free (real) = 272 Mb
- Memory free (cache) = 1716 Mb
- Swap in use = 264 Mb
- Processes = You are running 113 of 140 processes
- RAID = Personalities :
- Disk Space Used = 1%
- CPU Temperature = Core1 33 °C ; Core2 °C ; Core3 °C ; Core4 °C ;
[root@srv1 ~]#
I hope you like it.
174
CentOS 6 Problems / Re: CentOS6 Upgrade
« on: March 21, 2017, 04:44:55 AM »Already tryied to rebuild apache, but that didn't work.Can you give some error log to see what`s going on?
175
CentOS 6 Problems / Re: CentOS6 Upgrade
« on: March 21, 2017, 04:44:06 AM »Did you try:
Saving to: “cwpsrv.sh.2”
100%[======================================>] 8,482 --.-K/s in 0s
2017-03-17 09:01:39 (478 MB/s) - “cwpsrv.sh.2” saved [8482/8482]
[root@hostname src]# sh cwpsrv.sh
cwpsrv.sh: line 1: syntax error near unexpected token `newline'
cwpsrv.sh: line 1: `<meta http-equiv="refresh" content="0;URL=http://centos-webpanel.com">'
[root@hostname src]#
1. rm -rf cwpsrv.sh
2. mv cwpsrv.sh.2 cwpsrv.sh
3. sh cwpsrv.sh
176
CentOS 6 Problems / Re: CentOS6 Upgrade
« on: March 20, 2017, 06:25:09 AM »
I didn`t get answer why is the difference in the versions so I decided to take the things under my control even with the risk to blow up my system. I found that the cron for updating CWP is not working. I go to /scripts/ and I run 2 times "update_cwp" manually. Now I got CWP version: 0.9.8.195. I also added "0 0 * * * /scripts/update_cwp" as a "Add Full Custom Cron Jobs".
177
CentOS 6 Problems / Re: CentOS6 Upgrade
« on: March 19, 2017, 03:14:13 PM »
Try:
Login to CWP6
Go to:
Apache Settings -> Apache Re-Build
Select:
Apache 2.4.25 & suPHP 0.7.2
Press:
Next -> Start compiler in background
After it finishes 99.99% your problems with Apache will be gone. Have fun.
Login to CWP6
Go to:
Apache Settings -> Apache Re-Build
Select:
Apache 2.4.25 & suPHP 0.7.2
Press:
Next -> Start compiler in background
After it finishes 99.99% your problems with Apache will be gone. Have fun.
178
I can build it / Re: OpenVZ with CWP
« on: March 18, 2017, 09:05:04 PM »
Sorry guys, I've been busy last days with one of my companies and I didn't had time to continue with OpenVZ. Next few days I'll try to find some free time and to finish the admin panel at least. With the speed the project is going and with the no free time I've got ... I see the first release around june. Sorry about that. I will keep you informed how is it going.
179
CentOS 6 Problems / Re: Centos server restarts, would like to know why?
« on: March 18, 2017, 07:58:19 AM »
Did you checked your history? Just write "history" and check if somewhere there is "shutdown -r ***" or "reboot".
180
CentOS 6 Problems / Re: CentOS6 Upgrade
« on: March 18, 2017, 07:53:22 AM »
Hello again,
I just noticed something. I got 1 machine with 90 days uptime on which I updated CWP manually. It passed around 50 hours after the update and the version is 0.9.8.188. I got 1 more machine on which I`m developing "OpenVZ with CWP" and there I made a fresh install of CWP. On the second machine the version is 0.9.8.194. Why is this difference?
I just noticed something. I got 1 machine with 90 days uptime on which I updated CWP manually. It passed around 50 hours after the update and the version is 0.9.8.188. I got 1 more machine on which I`m developing "OpenVZ with CWP" and there I made a fresh install of CWP. On the second machine the version is 0.9.8.194. Why is this difference?