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.


Messages - darkness

Pages: 1 ... 9 10 [11] 12 13 14
151
New Modules / Re: [module] Wordpress Installer / Uninstaller
« on: June 29, 2017, 03:06:02 PM »
Great job! Really great job! Just tested it on CentOS 6.9 (Final) and works. There are few errors which needs to be fixed, but it works. For example instead of using unset($result) which is giving error, use $result = null; and later put something in that var.
Needs a bit fixing, because it`s not showing anything after you install a Wordpress, but everything else is ok. Once again - Great Job!

152
I can build it / Re: OpenVZ with CWP
« on: June 27, 2017, 08:06:59 PM »
I`ll keep up the work, but last few days because of big storms here in Bulgaria and specially in the village I choose to live to run away from the town, there was problem with the electricity and I didn`t had too much time to work. Also I`m working on my new kitchen and my living room which I make alone and also on my company and my bees. So please be patient and I promise to give the ready project ASAP.

153
I can build it / Re: OpenVZ with CWP
« on: June 25, 2017, 04:40:37 AM »
Question to Administrator, Igor S. or everybody who have access to CWP source:
What class to use to make a "Text:  <select class="" name=""><option value="">Text</option></select>" smaller because I don`t want it on the whole page?
<select class="span3"> ? <select class="form-control input-sm"> ? <select class="?">
Like on: Server Settings -> Crontab -> Add Custom Cron Jobs

I`m waiting for quick answer or I will write my own class in the .css  ;D or I will use some <div> ;D

154
I can build it / Re: OpenVZ with CWP
« on: June 24, 2017, 07:24:56 PM »
Ok guys, I`m back next to the developing machine. As I promised today I give you the first screenshot:

When you press the "Suspend" button it`s automaticly stopping the VM, when you press the "Unsuspend" button it`s automaticly starting the VM and also changing the status and the buttons. Now I`m going to work on the "Create New VM" and "Edit VM"(which is just to press on "#1" "101" or "hostname" to send you directly to edit the VM.

155
I can build it / Re: OpenVZ with CWP
« on: June 24, 2017, 06:26:24 AM »
Hello ppl,
I see a light at the end of the tunnel:
https://thegeeksalive.com/how-to-setup-openvz-7-on-centos-7/
From OpenVZ there`s a new kernel for CentOS 7. Hope thee will be not so much changes on vzctl so I don`t need to write everything from zero. Stay tuned!

156
I can build it / Re: OpenVZ with CWP
« on: June 23, 2017, 01:58:56 AM »
Hello again from me. After "rm -rf /" few times on the developing machine because I got angry on the OpenVZ, vzctl and php<->bash, last night around 4:30 I started from zero. The admin panel is ready up to: view VMs, start VM, stop VM, suspend VM and delete(destroy) VM. Create VM is done on 40%. This is ready in 2h. Everything is responsive, so it`s supposed to be available to be looking good on mobile devices.  If the VM is stopped you will see only "Start" button, if the VM is started you will see only "Stop" button. The same for suspend/unsuspend. I will post few images on saturday or sunday, because now I am far away from the developing machine and I don`t have access to it(only local).

157
How to / Re: WHMCS+CWP Problem
« on: June 23, 2017, 01:39:57 AM »
After waiting so many days for a reply I gave up on waiting. Last night I wake up 1:30, sit down on my notebook and I rewrote the addon almost from zero. Now the addon is working fine with WHMCS 6.3.1. Also tested on WHMCS 7.1.2 and also working fine. I want to make some more improvements and I will share it with you.

158
How to / WHMCS+CWP Problem
« on: June 10, 2017, 11:32:15 AM »
Hello guys,
I have WHMCS 6.3.1 and CWP 0.9.8.249. 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 random.org. 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.

159
CentOS-WebPanel Bugs / Re: API Error
« on: June 09, 2017, 08:48:39 PM »
cazzone don`t add your remote IP, add the IP address of the WHMCS.

160
How to / Re: Integrate WHMCS Problem
« on: June 09, 2017, 06:55:16 PM »
Hello guys.
I have a bit strange problem:
Order Accept Encountered Problems
Check All Fields (only lower caps are allowed and no special characters)!
This is what I see in the WHMCS and the cURL command in the console returns "OK". Any possible reasons for the error?

161
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.

162
E-Mail / Re: How to install Horde Webmail
« on: April 24, 2017, 03:21:26 AM »
Sorry for my late reply. This was on CentOS 6.8 (Final), but in the same time it would be the same on CentOS 7.x as Horde Webmail is downloading only PEAR modules. If you are not sure - check the install instructions on their web page.
Best regards.

163
New Modules / Re: How to read $_POST data in a module
« on: April 21, 2017, 02:00:00 PM »
Actually using $_GET to send data to shell for execution is like to give to everybody full root access and to tell them "Please log in to my shell and write 'rm -rf /'." This is not a security risk, this is insane. Doesn`t matter if you are the only one who uses this script. If it`s public visible, some crawler bots will find it and from there ... hope you don`t have important info on that server.
Now I`m a bit busy to write more, but if you contact me here on PM or mail me at root@born2host.com I`ll try my best to help you fix this.

164
New Modules / Re: How to read $_POST data in a module
« on: April 13, 2017, 05:34:04 AM »
Try like this to see what`s going on:
This is just an example, change your ['username'] with whatever you use:
This is your form(let`s say):
Code: [Select]
<form action="index.php?module=mymod" method="post">
        Username:                          <input type="text" name="username" value="John"><br>
<center><button class="button" type="submit" name="submit">Add Container</button></center>
</form>
$_POST['username'] is name="username", so whatever you put inside name="" have to be it.
Now check it like this.
Code: [Select]
if (isset($_POST['username'])) { $user = $_POST['username']; } else { $user = "No data"; }
echo $user;
If you get "No data" when you test it, please contact me for more help.

165
CentOS-WebPanel Bugs / Re: Can not access Softaculous after update
« on: April 12, 2017, 10:06:40 AM »
Hi,
I had the same problem with Softaculous so I did this:
1. Log in to CWP as root
2. Go to Script Installers -> Scripts Manager
3. Uninstall Softaculous
4. Install Softaculous

For me the problem is solved and works like a charm. Hope to help for you also.

Pages: 1 ... 9 10 [11] 12 13 14