Show Posts

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.

Topics - darkness

Pages: [1] 2
I reinstalled the CentOS 7 and now I have full httpd.conf. I created 2 users - 1 for web hosting, 1 for online shop. I pointed the domains like I was doing in CWP6, did vhosts-ssl.conf, vhosts.conf, created SSL Certificates, ... All I was doing in CWP6 and there my pages was working. Now I see:
Code: [Select]
Are you the Administrator?
You should add your website content to the directory /var/www/html/.
To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.
Which points me to this that Apache is not working correctly. I have enabled LoadModule userdir_module modules/ in httpd.conf and all other necessary files for it, but /home/USER/public_html/ is not shown. It`s asking me to put the files in /var/www/html. Am I doing something wrong?
Please fast advice how to fix this.

I figured out to install CentOS 7 on my old rig HP ProLiant DL380 G5, installed CWP and the only lines I have in Apache Configuration are:
Code: [Select]
ExtendedStatus On
Include /usr/local/apache/conf/sharedip.conf
Include /usr/local/apache/conf.d/*.conf
I will try to rebuild apache. Hope it helps, but if not I hope somebody to paste as an answer httpd.conf from Apache 2.4.27. Strange but the rebuild was fast. The config file is still 3 lines. Please share a working config.

SSL / Just a proposal to the developers
« on: October 09, 2017, 11:20:29 AM »
How about to try something like this:
Code: [Select]
ip=`dig +short`
rev=`dig -x $ip | grep PTR | awk '{print $4}'`
if [ ! $rev == "" ]; then
        chmod a+x certbot-auto
        /usr/local/src/certbot-auto certonly --agree-tos --renew-by-default -d $rev && cp -f /etc/letsencrypt/live/$rev/fullchain.pem /etc/pki/tls/certs/$rev.crt && cp -f /etc/letsencrypt/live/$rev/privkey.pem /etc/pki/tls/private/$rev.key && cp -f /etc/letsencrypt/live/$rev/chain.pem /etc/pki/tls/certs/$rev.bundle
        standart cert creation from CWP
If the IP of the user resolves to a domain (which is less likely to happen) the installer to create a green certificate for CWP:2031, if not - create standart CWP certificate.

SSL / Certbot installation and requesting certificate (CentOS 6)
« on: October 08, 2017, 11:30:15 AM »
Ok. Let`s make our life more easy with GREEN status bar in most web browsers for FREE with Certbot from
First of all let`s get Certbot for CentOS 6 in root directory.
Change current directory to /root:
Code: [Select]
cd /root
Download Certbot from the official website:
Code: [Select]
Now let`s make the file executable:
Code: [Select]
chmod a+x certbot-autoNow let`s create our first SSL Certificate:
Code: [Select]
./certbot-auto certonly --email --agree-tos --renew-by-default -d -> replace by real email -> replace with your domain
you can create,,,, certificate BUT ...

Once your SSL Certificate is created with the key, they will be placed as it follows:
SSL Certificate:
Code: [Select]
/etc/letsencrypt/live/ Key:
Code: [Select]
/etc/letsencrypt/live/ let`s check your SSL Certificate:
Code: [Select]`s try the renew:
Code: [Select]
./certbot-auto renewIf you get something like this:
Code: [Select]
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Processing /etc/letsencrypt/renewal/
Cert not yet due for renewal

The following certs are not due for renewal yet:
  /etc/letsencrypt/live/ (skipped)
No renewals were attempted.
Than you are ok.
Let`s add Certbot renew to crontab:
Code: [Select]
crontab -eLet`s set it to try the renew twice a day:
Code: [Select]
0 0,12 * * * /root/certbot-auto renew >> /var/log/le-renew.log
Close and save the crontab. You are done. Have fun with your new SSL Certificate and GREEN bar in your browser for FREE.

SSL / Certbot installation and requesting certificate (CentOS 7)
« on: September 16, 2017, 05:08:25 AM »
Hello people,
As I`m having customers asking for Dedicated servers and some of them request different OS than CentOS I had to do it. The last customer asked for Ubuntu 16.04 LTS to run some game server and he get it. When he asked for help to install ssl on his page I got confused. I searched a bit on the internet and I found certbot which I found for very easy to use and the strange part - it gave me a green bar certificate. Let`s see the installation:
-> Installing the EPEL repo
Code: [Select]
yum -y install epel-release-> Installing Certbot
Code: [Select]
yum -y install python-certbot-apache-> Checking if Apache is running
Code: [Select]
systemctl status httpdIf Apache is not running use the following command to start it:
Code: [Select]
systemctl start httpdor
Code: [Select]
service httpd startIf Apache is running just skip the above commands.
-> Check if your site is reachable using cURL:
Code: [Select]
curl> Request a certificate:
Code: [Select]
certbot --apache -d your-site.comor
Code: [Select]
certbot --apache -d -d -d -d -d ....Note that certbot will check if and others have A record in the DNS server. If they don`t - will give an error. If everything is ok you will have to answer few simple questions like a recovery email if you lost your cert and should it always redirect to https than http and you`re done. Certbot is requesting certificatest from Let's Encrypt.
-> Check if you SSL is working
Code: [Select]> Try to renew your SSL cert to see if it`s working
Code: [Select]
certbot renewIf you get output similar to this you are ok:
Code: [Select]
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Processing /etc/letsencrypt/renewal/
Cert not yet due for renewal

The following certs are not due for renewal yet:
  /etc/letsencrypt/live/ (skipped)
No renewals were attempted.
-> Adding Certbot Renew to crontab
Code: [Select]
crontab -e-> Every 30 days 2h .... renew
Code: [Select]
30 2 * * * /usr/bin/certbot renew >> /var/log/le-renew.logClose and save the crontab. You are done. Have fun with your new SSL certificate.

CentOS 7 Problems / Can`t install CentOS7
« on: September 11, 2017, 03:26:10 PM »
Hi people,
I have one old rig HP ProLiant DL380 G5 with 2xQuad Core Xeon @ 3.00GHz, HP Smart Array P400, 32GB DDR2 ECC RAM, 2x73GB SAS 15k RPM + 6x500GB SATA III, 2xGigabit LAN + 2x1000W PSU. Today I tried to install CentOS 7 on it and guess what - it didn`t see my hard drives. None of them. I was reading on that they support P400 iscsi drivers, but not on the installer. I switched off the RAID Controler - the same, still no HDDs. How I`m supposed to install CentOS 7 when it doesn`t see my hard drives? and later to install the drivers for them? WTF? More strange thing is that on CentOS6 Minimal install it see all my hard drives with RAID 1+0 on. For me it`s strange that old version of RHEL based Linux supports SCSI/SAS/SATA and the new version doesn`t. If anybody have an idea how to install CentOS7 on SAS/SATA HDD please tell me.

CentOS Configuration / IPv6 on CentOS 6 with autostart on boot
« on: August 16, 2017, 07:50:28 PM »
Hello people,
Here I`m going to give you a how to make an IPv6 Configuration for your CentOS 6 with an auto start script.
First of all you will need an account in Once you make an account and login to it, go to Create Regular Tunnel. On the first line write down the public IP address of your CentOS 6 machine. On Available Tunnel Servers:
Code: [Select]
ping -c 5 <tunnel server IP> one by one and find the best one for you and select it. Than press Create tunnel. Go back on the Main Page and select your tunnel. Copy the IPv6 address from Client IPv6 Address:
Go to /etc/init.d/ and run
Code: [Select]
nano -w ipv6.
Paste inside this code and replace with your Client IPv6 Address:

Code: [Select]

        echo "Starting ipv6 ..."
        ifconfig sit0 up
        ifconfig sit0 inet6 tunnel ::
        ifconfig sit1 up
        ifconfig sit1 inet6 add Client IPv6 Address::2/64
        ifconfig sit1 inet6 add Client IPv6 Address::3/64
        ifconfig sit1 inet6 add Client IPv6 Address::4/64
        ifconfig sit1 inet6 add Client IPv6 Address::5/64
        route -A inet6 add ::/0 dev sit1

        echo "Stopping ipv6 ..."
        ifconfig sit0 down
        ifconfig sit1 down

        echo "Restarting ipv6 ..."
        sleep 5
        sleep 5
case "$1" in
        echo "Usage: ipv6 {start|stop|restart}"
        exit 1

exit 0

You can continue adding IPv6 addresses after ifconfig sit1 inet6 add Client IPv6 Address::5/64 as much as you want until you follow the rules for the IPv6.
Example of the Client IPv6 Address:
Code: [Select]
2001:470:1d1c:28ed::2/64Close your file with Ctrl+X and press Y to save it.
Execute the following commands:
Code: [Select]
chmod 755 ipv6          --> Change the permissions of the file to be executable
chkconfig ipv6 on        --> Adding the file to system start
service ipv6 start        --> Starting the IPv6 on your system
ping6 -c5     --> Test your IPv6 configuration
When you reboot your system or it get rebooted by any reason the script will start alone and you don`t need to add everything by hand one by one. I wrote this script for me because I got angry after every reboot of the developing machine to add every time the IPv6 stuff again and again.
You don`t need to reboot your server to start the IPv6.
One more thing:
Login with root to your CWP6.admin panel, go to Services Config, Services Monitor and select the ipv6 to be watched for stopping. Click save and you`re done. Have fun with your new IPv6.
(Don`t be greedy to take /64 and /48 unless you finish the IPs from /64 which is close to unbelievable. In /64 you have 18,446,744,073,709,551,616 IP addresses, so unless you`re the ISP which is giving 2,635,249,153 IPs per customer (and you have all 7,000,000,000 people on the earth as customers) you are not able to finish the /64).  ;D That`s it. Have fun.

New Modules / WHMCS integration with CWP
« on: June 29, 2017, 08:03:02 PM »
Hello guys,
After having so much problems with integration of WHMCS and CWP I rewrote the WHMCS module almost from zero. Ok, mine also has errors which I will fix and then I will provide it encoded free of charge with all the improvements. For the moment I will provide you a fixed copy from which was the original. In the original one it`s supposed that you have option in WHMCS to register/transfer domain. In the fixed version you don`t need it. If you don`t have option for register/transfer domain then the user domain will become automatic user.your-server-domain-name.tld(ex. If you have the option for registering/transfering domains then the domain will be what the user register/transfer (ex.
How to install the script:
1. Download -> here <- the script in your /path/to/whmcs/modules/servers/ (ex. /home/hosting/public_html/modules/servers/)
2. Unzip it (unzip
3. Login to your WHMCS Admin panel
4. Go to Setup -> Product/Services -> Servers
5. Press 'Create New Group' and name it how you want
6. Press 'Add New Server'
7. Scroll down to 'Server Details'
8. On 'Type' choose 'Centoswebpanel'
9. Open in your browser -> <- and choose a random generated password
10. Paste this password in the 'Access Hash' field and press 'Save Changes'
11. Paste this password in /usr/local/cwp/.conf/api_key.conf
12. Open /usr/local/cwp/.conf/api_allowed.conf with your favourite editor and enter inside the IP address of the WHMCS (if the WHMCS and CWP are on the same server than enter
13. Go to Setup -> Product/Services -> Product/Services
14. Press 'Create a New Product'
15. Choose and write name of your product
16. Go to 'Module Settings' tab and choose 'Module Name: Centoswebpanel
17. In the settings shown below edit only Package Number (Package Number 1 is package with name 'default' in CWP, if you add new package it will be Package Number 2)
18. Choose 'Do not automatically setup this product' and press 'Save Changes'
Hooray! You are ready!!!
Don`t forget to fix the Pricing of the Product/Service that you offer :)
If you have any questions or problems please PM me or ask on
The script is opensource. Tested on WHMCS 6.3.1 and 7.1.2. Have fun!
Please, if you download and use the script, leave a comment how is it working and on what version of WHMCS you tested it. It will be useful for me to fix errors and for other users to know on which versions of WHMCS is tested and working. Thank you.

How to / WHMCS+CWP Problem
« on: June 10, 2017, 11:32:15 AM »
Hello guys,
I have WHMCS 6.3.1 and CWP I downloaded and installed the WHMCS module from the WiKi page. I fixed the permissions just in case. Put the IP of the WHMCS in the config and the hash in the key file.Did the configuration of the module like it`s shown on the payed one page. Tested the command in my browser IP:2030/api/?key=KEY&api=account_new&domain=DOMAIN&username=USERNAME&password=PASSWORD&package=PACKAGE-NUMBER&email=CLIENT-EMAIL&inode=10000&nofile=100&nproc=25 and I got status OK. In CWP I get the new user. I tested the command with cURL and again got status OK and saw the new user in the CWP. And here comes the problem:
When I try to add a new user from the WHMCS I see:
Code: [Select]
Order Accept Encountered Problems
Check All Fields (only lower caps are allowed and no special characters)!
The only place I don`t have a lower case strings is the Access Hash and I don`t input any special chars. The hash there is generated from The Access Hash is the same in the /usr/local/cwp/.conf/api_key.conf and in the WHMCS. Tryed to put htmlspecialchars(strtolower($params[""])) in the centoswebpanel.php but it didn`t help. Any idea how to fix this problem? Any help will be appreciated.

Other / Total OFF Topic(Need advice)
« on: May 04, 2017, 05:08:00 AM »
Hello guys,
I got my servers in the town connected to a gigabit fiber optic internet. Two years ago with my wife we decided that in the town is too crowded, too noisy and the air is too dirty, so we found and we bought a house in a small village 28km from the town. My problem is that the village is small and there`s only one company providing internet here and it`s a big sh*t so my connection to the servers got dropped every 5-10min and I have to start everything from the beginning. As I don`t have any XP with long range WiFi(just LAN) I need advice. In the town I have an apartment where I have 200Mbps internet connection, but as I live in the village I just pay for it without using it. So I decided to buy 2 antennas and to bring myself internet here. The distance is exactly 28km between the apartment and the house(if the GPS is correct). The apartment is in a block with 8 floors. It`s on the north part of the town and it`s up on the hill so it`s pretty high. I was reading a bit for this and I understand about the clear view between the two antennas. After I checked it on the way there are few trees which I think is not a very very big problem for the signal(ok, there might be loses but not that much). I was checking on internet for antennas and I stopped on this one: NBM365 Ubiquiti 3.65 GHz NanoBridge, airMAX, 22 dBi (2 Parts, NBM365+NB-OD3). As they say the range is 30+km, so I think it will be ok. But I`m not sure. Bringing UTP or Fiber to here is impossible(nobody wants to do it for 1 customer in a village with 100 people). Satellite internet - too expensive. If you have any XP with long range WiFi antennas please share it with me.

Installation / After a fresh install on minimal CentOS 6.8 I get ...
« on: April 03, 2017, 08:49:11 AM »
This page isnt working is currently unable to handle this request.
Why? Where? How?

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):
Code: [Select]
yum -y install bc lm_sensorsThis 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]
#Server Status Script
#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
psa=`ps -Afl | wc -l`
psu=`ps U $user h | wc -l`
#System update need
yum=`yum list updates -q | grep -vc "Updated Packages"`
btime=`last -x | grep reboot | tail -n 1 | awk '{print $1, $2, $6, $7, $8}'`
uptime=`cat /proc/uptime | cut -f1 -d.`
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'}`
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`
\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 ;
" > /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                  =
- Public IP                        =
- 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.

I can build it / OpenVZ with CWP
« on: March 12, 2017, 03:54:42 PM »
Hello people,
As for now that you can use CWP just for shared hosting I decided to create a module for OpenVZ with some functions:
Admin Panel:
1. Install OpenVZ on your system (keep in mind that installing OpenVZ requires reboot for new kernel!!!)
2. Create containers
3. Set IPv4 & IPv6 to the containers
User Panel:
1. Boot container
2. Shutdown container
3. Reboot container
4. Reinstall container
5. SSH Console to the container through CWP
6. Change hostname
7. Change root password
I will also try to make a module where you add more servers and you create/delete containers through just 1 main CWP.
I also have plan to make the same for KVM and Xen, but I`m still waiting for 2x Dell PowerEdge 1950 and 1x Dell PowerEdge 2950(I know they are old rigs, but are good for testing) from UK and for the moment I have a free server which supports only OpenVZ.
All the scripts/modules will be provided for FREE FOREVER from me, but ionCube crypted. Some people will say "I want open source". I don`t agree with that since I saw a post in the forum that somebody want to change the logo of CWP and I don`t like that when somebody is offering something good to you for free you want to change logo/copyright to sign it on your name.I will provide my full source code unencrypted to CWP developers if they want to improve it or add it to a new version(I know that my way of writing PHP code sux, so may be they will rewrite it full, but ... ).
If you have any ideas what else can be added for OpenVZ I will be happy if you share them with me.
Thank you for reading and wait for the first release.

I can build it / IPv6 configuration for CentOS 6.8 (Final)
« on: March 09, 2017, 10:20:44 PM »
Ok guys,
Here`s something I`d like to share with you. It`s an IPv6 configuration script for CentOS 6.8 (Final) to make it easy to have IPv6 tunnel on your server. At the moment this is version 0.1 which can only add the IPv6 tunnel configuration to your already running CentOS server. As a first version it`s simple and fast, also has it`s bad sides like: after every reboot you need to run the script again to re-config your IPv6. But this is what I did in 15min with 39 degs temp. In the next version I`m planning to include ping to through the script, adding IPv6 addresses through it. In version 0.3 or 0.4 I`ll try to make it able to config your web server, email server, DNS forward and reverse. Just I need time because I`m very busy and atm I`m a bit sick.
Ok, stop fooling you around.
1. Download the script from and put it in /usr/local/cwpsrv/htdocs/resources/admin/modules
2. Unzip it with "unzip"
3. Open /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php and add:
3.1 <li><a href="index.php?module=born2host_ipv6"><span class="icon16 icomoon-icon-arrow-right-3"></span>IPv6 Configuration</a></li>
4. Create account in
5. Log in to your account in
6. Go to User Functions -> Create Regular Tunnel
7. Enter the IPv4 address of the server(your CentOS 6.8 server)
8. Choose one of the available tunnel servers (ping the all one by one and choose the one with less time=... ms)
9. Click on your tunnel to open Tunnel Details
10. Login with root to your CWP and head up to Developer Menu -> IPv6 Configuration
11. From Tunnel Details grab "Server IPv4 Address:" which is normally and paste it in the script in the field called "Please provide your tunnel broker IPv4:   "
12. From Tunnel Details grab "Client IPv6 Address: " which normally starts with 2001:470:xxxx:xx::2/64 (don`t forget to copy it with the /64) and paste it in the script in the field called "Please provide your IPv6 tunnel:"
13. Press "Add IPv6" button
14. Login through SSH to your CentOS server and type: ping6 -c 5 If everything is ok you will see something similar to this:
Code: [Select]
[root@msi ~]# ping6 -c 5
PING 56 data bytes
64 bytes from icmp_seq=1 ttl=57 time=62.3 ms
64 bytes from icmp_seq=2 ttl=57 time=63.1 ms
64 bytes from icmp_seq=3 ttl=57 time=61.7 ms
64 bytes from icmp_seq=4 ttl=57 time=61.0 ms
64 bytes from icmp_seq=5 ttl=57 time=63.1 ms

--- ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4068ms
rtt min/avg/max/mdev = 61.079/62.302/63.156/0.796 ms
[root@msi ~]#
If you see something similar to this you are done and have fun.
If you have any problems activating IPv6 tunnel support feel free to ask(may be you don`t have IPv6 support enabled on your server or something else).
<- check this picture just in case to be sure what to copy and paste from to the script.

Oh yeah. By the way the script is encoded with ionCube Encoder for PHP 5.6.x

E-Mail / How to install Horde Webmail
« on: December 17, 2016, 12:05:01 AM »
Here`s how I installed my Horde Webmail. I assume that you already have CWP with Apache, PHP and MySQL.
1. Register Horde PEAR channel:
   pear channel-discover
2. Set Horde installation directory:
  cd /usr/local/apache/htdocs
  pear install horde/horde_role
  pear run-scripts horde/horde_role
3. Install Horde Groupware Webmail Edition:
  pear install -a -B horde/webmail
4. Run installation script:
5. Test Horde Groupware Webmail Edition:
  cd /usr/local/apache/htdocs/horde/config/
  nano -w conf.php
Code: [Select]
$conf['testdisable'] = true; and change it to
Code: [Select]
$conf['testdisable'] = false;6. Making it visible
  Go to CWP -> Apache Settings -> Apache Include Conf -> domain-redirects.conf
  Add this line at the end of the file:
Code: [Select]
Alias /horde /usr/local/apache/htdocs/horde  Save and restart Apache
7. Check if everything is ok
  Go to http://your_ip/horde/test.php or http://your_domain/horde/test.php
  If you see everything in green than you are ok. Change back to $conf['testdisable'] = true; and enjoy your new horde webmail.
  If you see something in red install/fix it. Check test.php again until you see everything in green.

When you`re ready with all the stuff in test.php DON`T FORGET to edit again /usr/local/apache/htdocs/horde/config/conf.php and set $conf['testdisable'] = true;
Hope this helps. I`ll try to answer all the questions if you have any.

Pages: [1] 2