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.
1517
PHP / How to install ioncube loader in PHP on CentOS linux
« on: May 27, 2014, 11:01:10 AM »
Ioncube is located at :
/usr/local/ioncube
php.ini location:
/usr/local/php/php.ini
Your PHP version must match ioncube version
eg. PHP 5.5 will use file: ioncube_loader_lin_5.5.so
eg. PHP 5.4 will use file: ioncube_loader_lin_5.4.so
eg. PHP 5.3 will use file: ioncube_loader_lin_5.3.so
to include ioncube in php.ini first select version using ls command:
to include eg file "ioncube_loader_lin_5.4.so" in PHP 5.4 use this command:
/usr/local/ioncube
php.ini location:
/usr/local/php/php.ini
Your PHP version must match ioncube version
eg. PHP 5.5 will use file: ioncube_loader_lin_5.5.so
eg. PHP 5.4 will use file: ioncube_loader_lin_5.4.so
eg. PHP 5.3 will use file: ioncube_loader_lin_5.3.so
to include ioncube in php.ini first select version using ls command:
Code: [Select]
php -v
ls /usr/local/ioncube
to include eg file "ioncube_loader_lin_5.4.so" in PHP 5.4 use this command:
Code: [Select]
echo "zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4.so" >> /usr/local/php/php.ini
1518
PHP / Re: Zend and IonCube
« on: May 27, 2014, 10:41:45 AM »
you can add it/include in your php.ini
1520
PHP / Re: PHP Version Switcher
« on: May 25, 2014, 02:04:46 PM »
post is updated, it will use same location no changes.
1521
Installation / Re: Install Error
« on: May 24, 2014, 09:43:37 PM »
% - Any IP can access database
1522
PHP / PHP Version Switcher
« on: May 24, 2014, 09:38:32 PM »
Now CWP has PHP Switch option in which you can very easily switch to other PHP version and recompile it with desired modules.
How to use it?
- Click on PHP Version Switcher (here you will get server PHP version and compiled modules which your server has now compiled).
- Select PHP Version you wish to compile in drop-down menu and click next.
- In PHP compiler you can add or remove modules you want (please use only: one per line).
- Click on Start compiler and compiler will start to work in background.
Compiler needs from 5 to 20 minutes to finish depending on modules you are installing and your CPU power.
You can return in eg. 15 minutes and in CWP - PHP Version Switch check which version of PHP and modules you now have.
Your websites and CWP will work during compiler process and PHP will be update when compiler is completed and only if its successful.
You can check PHP compile logs in file:
If you wish to monitor compiler then use this command from shell:
How to use it?
- Click on PHP Version Switcher (here you will get server PHP version and compiled modules which your server has now compiled).
- Select PHP Version you wish to compile in drop-down menu and click next.
- In PHP compiler you can add or remove modules you want (please use only: one per line).
- Click on Start compiler and compiler will start to work in background.
Compiler needs from 5 to 20 minutes to finish depending on modules you are installing and your CPU power.
You can return in eg. 15 minutes and in CWP - PHP Version Switch check which version of PHP and modules you now have.
Your websites and CWP will work during compiler process and PHP will be update when compiler is completed and only if its successful.
You can check PHP compile logs in file:
Code: [Select]
/var/log/php-rebuild.log
If you wish to monitor compiler then use this command from shell:
Code: [Select]
tail -f /var/log/php-rebuild.log
1523
Backup / Remote Disk Backup SSHFS
« on: May 24, 2014, 09:10:08 PM »
CWP now is now providing you possibility to mount remote disk from any server to your server as local using fuse-sshfs.
How this works?
If you have any access to ssh on some other server you can mount that disk space as folder on your server, this is mostly used for backups in local networks.
Disk Details are looking like this:
Requirements
- Server with CWP and allowed FUSE (on openVZ in most cases this option is not allowed, except eg. on http://mybestwebhosting.net/ which allow it on user request).
**On dedicated and other Virtualization types you can install all required with one click in you CWP
- SSH Access on the remote server (which you want to use for mount as folder on your server)
How to Setup Remote Disk and use it for backups?
1. In your CWP under backups set backup folder
2. Make sure that backup folder is empty
3. Install required packages (one click in CWP)
4. Click on Generate Key (this will generate ssh key)
4a. Setup SSH Key on remote server --> more info is bellow this tutorial.
5. Enter remote Backup details (server ip or domain, SSH username, SSH Port) and click on Save Configuration
6. Click on Test Connection (if connection works than you can mount disk)
7. Click mount Disk
that is it...
4a. Setup SSH KEY on Remote/Backup server (NOT ON YOUR CWP SERVER)
cd ~USERNAME
mkdir .ssh
chmod 700 .ssh
nano or vi to file and add key from CWP under backup (must be in one line): .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
chown -R USERNAME:USERNAME .ssh
How to check for errors from command line?
sshfs USERNAME@SERVER-IP: LOCAL--BACKUP-FOLDER -p REMOTE-SSH-PORT
examples:
sshfs cwp@backup.cwp.org: /backup -p 22
sshfs root@185.4.192.11: /backup -p 8407
How this works?
If you have any access to ssh on some other server you can mount that disk space as folder on your server, this is mostly used for backups in local networks.
Disk Details are looking like this:
Code: [Select]
[root@rec2 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 180G 2.3G 178G 2% /
none 2.0G 4.0K 2.0G 1% /dev
none 2.0G 0 2.0G 0% /dev/shm
cwptest@backup.cwp.org:
1.8T 1.8T 0 100% /backup
Requirements
- Server with CWP and allowed FUSE (on openVZ in most cases this option is not allowed, except eg. on http://mybestwebhosting.net/ which allow it on user request).
**On dedicated and other Virtualization types you can install all required with one click in you CWP
- SSH Access on the remote server (which you want to use for mount as folder on your server)
How to Setup Remote Disk and use it for backups?
1. In your CWP under backups set backup folder
2. Make sure that backup folder is empty
3. Install required packages (one click in CWP)
4. Click on Generate Key (this will generate ssh key)
4a. Setup SSH Key on remote server --> more info is bellow this tutorial.
5. Enter remote Backup details (server ip or domain, SSH username, SSH Port) and click on Save Configuration
6. Click on Test Connection (if connection works than you can mount disk)
7. Click mount Disk
that is it...
4a. Setup SSH KEY on Remote/Backup server (NOT ON YOUR CWP SERVER)
cd ~USERNAME
mkdir .ssh
chmod 700 .ssh
nano or vi to file and add key from CWP under backup (must be in one line): .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
chown -R USERNAME:USERNAME .ssh
How to check for errors from command line?
sshfs USERNAME@SERVER-IP: LOCAL--BACKUP-FOLDER -p REMOTE-SSH-PORT
examples:
sshfs cwp@backup.cwp.org: /backup -p 22
sshfs root@185.4.192.11: /backup -p 8407
1524
FTP / Re: Can not SFTP in as Root
« on: May 24, 2014, 06:38:26 PM »
please check firewall and if that don't helps you can contact development for more detailed check
http://centos-webpanel.com/contact
http://centos-webpanel.com/contact
1525
Apache / Re: php wrapper
« on: May 24, 2014, 06:34:33 PM »
have you used http://centos-webpanel.com/contact ? as you needed to receive response shortly after you sent email?
1526
CentOS 6 Problems / Re: Warnings
« on: May 24, 2014, 06:31:26 PM »
yes this is only issue with old versions of cwp which were using nginx up to 0.7, new version have this fixed but CWP can not be updated to new version as they are completely different in too many things.
1528
Installation / Re: Install Error
« on: May 24, 2014, 03:55:42 PM »
can you send part before this error message or contact support for testing?
1529
New Modules / How to Build a new module for CentOS Web Panel (CWP)
« on: May 23, 2014, 09:20:00 AM »
How to Build a new module for CentOS Web Panel (CWP)??
It’s very easy to build new module for CentOS-WebPanel
Let’s create file named: test2.php
to open this file in CentOS-WebPanel upload it to modules folder and use this link path:
eg. http://123.123.123.123:2030/index.php?module=test2
How to add this module to CentOS-WebPanel menu?
It’s easy, go to include folder and make new file named 3rdparty.php ,in this file you add links one per line.
eg.
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
All useful modules will be added in CWP installation or additional module installation panel.
Admin panel modules location
/usr/local/cwpsrv/htdocs/resources/admin/modules
Client panel modules location
/usr/local/cwpsrv/htdocs/resources/client/modules
Example module developed by the 3rdParty
https://github.com/boxbillinggit/cwp_modules/blob/master/php_phalcon.php
It’s very easy to build new module for CentOS-WebPanel
Let’s create file named: test2.php
Code: [Select]
<?php
$cpu_info = shell_exec("cat /proc/cpuinfo");
echo "This is example module<br>";
echo "You can edit this file and make new modules based on this file<br>";
echo "Examples and functions are on our website: centos-webpanel.com<br>";
echo "<h3>CPU INFO</h3>";
echo "<pre>".$cpu_info."</pre>";
?>
to open this file in CentOS-WebPanel upload it to modules folder and use this link path:
Code: [Select]
http://SERVER_IP:2030/index.php?module=FILE_NAME
eg. http://123.123.123.123:2030/index.php?module=test2
How to add this module to CentOS-WebPanel menu?
It’s easy, go to include folder and make new file named 3rdparty.php ,in this file you add links one per line.
eg.
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
Code: [Select]
<li><a href="index.php?module=test2"><span class="icon16 icomoon-icon-arrow-right-3"></span>Test2 Module</a></li>
<li><a href="index.php?module=test3"><span class="icon16 icomoon-icon-arrow-right-3"></span>Test3 Module</a></li>
All useful modules will be added in CWP installation or additional module installation panel.
Admin panel modules location
/usr/local/cwpsrv/htdocs/resources/admin/modules
Client panel modules location
/usr/local/cwpsrv/htdocs/resources/client/modules
Example module developed by the 3rdParty
https://github.com/boxbillinggit/cwp_modules/blob/master/php_phalcon.php
1530
Apache / Re: php wrapper
« on: May 23, 2014, 08:56:26 AM »
why you have recompiled apache when apache already has suexec and suphp set and working, what exactly do you need to have set?