Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 82
» Latest member: Dwirahayu Kartikasari
» Forum threads: 107
» Forum posts: 109

Full Statistics

Online Users
There are currently 28 online users.
» 0 Member(s) | 28 Guest(s)

Latest Threads
Rsync (Remote Sync)
Forum: Tips and Trick
Last Post: cybernetwebdesign
04-29-2017, 05:29 PM
» Replies: 0
» Views: 116
“date(): It is not safe t...
Forum: Server Problems
Last Post: Joko Prasetyo Hadi
04-02-2017, 09:46 AM
» Replies: 0
» Views: 230
Xenforo force to https vi...
Forum: .htaccess
Last Post: cybernetwebdesign
03-06-2017, 03:07 PM
» Replies: 0
» Views: 363
How To Remove Brivium Cop...
Forum: Tips and Trick
Last Post: cybernetwebdesign
02-17-2017, 03:11 AM
» Replies: 0
» Views: 377
How to change/remove the ...
Forum: Tips and Trick
Last Post: cybernetwebdesign
02-17-2017, 03:07 AM
» Replies: 0
» Views: 274
(Error 521: Web server is...
Forum: Server Problems
Last Post: cybernetwebdesign
02-07-2017, 06:12 PM
» Replies: 0
» Views: 375
How to Uninstall a BIND i...
Forum: Server Problems
Last Post: cybernetwebdesign
01-25-2017, 02:40 PM
» Replies: 0
» Views: 366
How To Disable MySQL Stri...
Forum: Server Problems
Last Post: cybernetwebdesign
01-24-2017, 05:14 PM
» Replies: 0
» Views: 383
How to install php 5.6 on...
Forum: Tips and Trick
Last Post: cybernetwebdesign
01-24-2017, 05:12 PM
» Replies: 0
» Views: 394
SOLVED - CWP Freetype sup...
Forum: Server Problems
Last Post: cybernetwebdesign
01-24-2017, 04:39 AM
» Replies: 0
» Views: 323

 
Thumbs Up Rsync (Remote Sync)
Posted by: cybernetwebdesign - 04-29-2017, 05:29 PM - Forum: Tips and Trick - No Replies

VPS1 = VPS Asal
VPS2 = VPS Tujuan


Persiapan:
Jalankan di VPS1:

  • 1. ssh-keygen
  • 2. pencet enter kosongkan semua entry
  • 3. ssh-copy-id -i /root/.ssh/id_rsa.pub xx.xx.xx.xx (xx.xx.xx.xx = ip VPS2)
  • 4. screen (jika not found instal dulu: yum install screen -y atau apt-get install screen). Gunanya utk menjalankan command di background supaya jika diskonek dari server proses scp tidak berhenti
  • 5. pindah ke direktori di mana semua files akan ditransfer misal cd /home
  • 6. scp -r * xx.xx.xx.xx:/root (/root di sini artinya files akan ditransfer ke VPS2 dan masuk di direktori /root. Supaya mudah manage, lebih baik membuat sebuah direktori dulu di VPS2 untuk menampung file pindahan misal dg nama direktori backup sehingga commandnya adalah: scp -r * xx.xx.xx.xx:/backup)
  • 7. Selama proses transfer berlangsung, bisa keluar dari screen bahkan close terminal: ctrl + A + D
  • 8. Untuk masuk kembali ke screen dan melihat progres transfer jalankan: screen -rD

Bila nomer 1 kesulitan measukkan key
 
Code:
ssh-keygen -R "xx.xxx.xxx.xxx"

TANPA PROGRES
 
Code:
rsync -av /home/xxx/public_html/ [email protected]:/home/mx/public_html/

DENGAN PROGRES
 
Code:
rsync -avzhe ssh --progress /home/xxx/public_html/ [email protected]:/home/mx/public_html/

​​Note:
Jika VPS2 tidak menggunakan port default 22 maka: 
  • command nomor 3 menjadi ssh-copy-id -i /root/.ssh/id_rsa.pub '-p 333 xx.xx.xx.xx' (333 = contoh port ssh)
  • command nomor 6 menjadi scp -r -P 333 * xx.xx.xx.xx:/root

Butuh bantuan?
Silahkan hubungi kami disini

Print this item

Thumbs Up “date(): It is not safe to rely on the system's timezone settings…”
Posted by: Joko Prasetyo Hadi - 04-02-2017, 09:46 AM - Forum: Server Problems - No Replies

You probably need to put the timezone in a configuration line in your php.ini file.
 

Code:
/usr/local/php/php.ini
 
You should have a block like this in your php.ini file:
 
Code:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Jakarta

If not, add it (replacing the timezone by yours). After configuring, make sure to restart httpd
 
Code:
service httpd restart

Print this item

Brick Xenforo force to https via .htaccess
Posted by: cybernetwebdesign - 03-06-2017, 03:07 PM - Forum: .htaccess - No Replies

Code:
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Print this item

Thumbs Up How To Remove Brivium Copyright
Posted by: cybernetwebdesign - 02-17-2017, 03:11 AM - Forum: Tips and Trick - No Replies

Add following code to EXTRA.css
 

Quote:#BRCopyright { display: none; }

Where is EXTRA.css?
 
Quote:Admincp >> Appearance >> Templates and then scroll down a little till you find EXTRA.CSS and then click which will bring you inside the extra.css template.

Print this item

Thumbs Up How to change/remove the xenforo copyright footer
Posted by: cybernetwebdesign - 02-17-2017, 03:07 AM - Forum: Tips and Trick - No Replies

Many of tricks to remove XenForo branding on forum site like editing phrase of xenforo_copyright but now it doesn't work anymore. So here i'm going to share you a new trick to 'remove xenforo branding finally.

Step 1: Sign in cpanel
Step 2: click on "public_html"
Step 3 : go to "Library" > "xenforo"
Step 4 : Open the "Application.php" with editor mood.
step 5 : Find 'Public static function getCopyrightHtml()' 
step 6: edit or Remove the value as u desire.
step 7: save. done!
Look the images.

 

[Image: 5Hx8rUVgzQA4GdE_UCxJFxEEwZSOCbOJgHNHsiqH...46-h557-no]

Print this item

Thumbs Up (Error 521: Web server is down) How do I whitelist CloudFlare's IPs in .htaccess?
Posted by: cybernetwebdesign - 02-07-2017, 06:12 PM - Forum: Server Problems - No Replies

You would put these commands in .htaccess to whitelist CloudFlare's IP addresses

(IPv4)
 

Code:
Allow from 199.27.128.0/21
Allow from 173.245.48.0/20
Allow from 103.21.244.0/22
Allow from 103.22.200.0/22
Allow from 103.31.4.0/22
Allow from 141.101.64.0/18
Allow from 108.162.192.0/18
Allow from 190.93.240.0/20
Allow from 188.114.96.0/20
Allow from 197.234.240.0/22
Allow from 198.41.128.0/17
Allow from 162.158.0.0/15
Allow from 104.16.0.0/12
Allow from 172.64.0.0/13

(IPv6)
 
Code:
Allow from 2400:cb00::/32
Allow from 2405:8100::/32
Allow from 2405:b500::/32
Allow from 2606:4700::/32
Allow from 2803:f800::/32
Allow from 2c0f:f248::/32
Allow from 2a06:98c0::/29

Please note: These ips should also be whitlelisted in /etc/csf/csf.allow and /etc/csf/csf.ignore

Print this item

Thumbs Up How to Uninstall a BIND in YUM
Posted by: cybernetwebdesign - 01-25-2017, 02:40 PM - Forum: Server Problems - No Replies

The Bind -- or Berkeley Internet Name Domain -- free Linux and Unix name server program provides information about domain names hosted on the system. If you don't host domains and your system doesn't need to provide IP address records about systems, you can safely uninstall Bind to free system resources. Uninstall bind with a single command on Linux computers with Yellowdog Updater Modified -- or YUM -- software.
 

Code:
yum remove bind

Print this item

Thumbs Up How To Disable MySQL Strict Mode
Posted by: cybernetwebdesign - 01-24-2017, 05:14 PM - Forum: Server Problems - No Replies

[Image: MySQL-Database.jpg]
In this tutorial we will show you how to disable MySQL strict mode on your CentOS 7 server. For those of you who didn’t know, Strict mode controls how MySQL handles invalid or missing values in data-change statements such as INSERT or UPDATE. A value can be invalid for several reasons.This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step turn off or to disable the MySQL strict mode on a CentOS 7 server.

Open the file with your favorite command line editor. In this example, we use ‘nano’:
 
Code:
nano /etc/my.cnf

Find the following lines:
 
Code:
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

If you find a line similar to the above that is setting the 
 
Code:
sql_mode
 
variable then you will need to replace it with the following line to disable MySQL strict mode:
 
Code:
sql_mode=""

Finally, Restart MySQL with this command:
 
Code:
systemctl restart mysql

To verify that the process was completed properly you can run the following:
 
Code:
mysql -e "SELECT @@sql_mode;"

The output may look similar to the following:
 
Code:
+--------------------------------------------+
| @@sql_mode
+--------------------------------------------+
| NO_AUTO_CREATE_USER
+--------------------------------------------+

Congratulation’s! You have successfully disable the MySQL strict mode. Thanks for using this tutorial for turn off or to disable the MySQL strict mode on CentOS 7 system. For additional help or useful information, we recommend you to check the official MySQL web site.

Print this item

Thumbs Up How to install php 5.6 on centos 6/7
Posted by: cybernetwebdesign - 01-24-2017, 05:12 PM - Forum: Tips and Trick - No Replies

Hi Everyone,

1: yum install epel*
2: yum update / yum upgrade
3: 

Code:
CentOS and Red Hat Enterprise Linux 6.x
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 
sudo rpm -Uvh remi-release-6*.rpm

CentOS and Red Hat Enterprise Linux 7.x
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm 
sudo rpm -Uvh remi-release-7*.rpm

4: yum update / yum upgrade
5: yum --enablerepo=remi,remi-php56 update
6: yum --enablerepo=remi,remi-php56 upgrade
7: reboot
8: php -v  Big Grin

working on 100%

Print this item

Thumbs Up SOLVED - CWP Freetype support in gd?
Posted by: cybernetwebdesign - 01-24-2017, 04:39 AM - Forum: Server Problems - No Replies

in php switcher you can recompile your php version according to your needs

or

1. Check / install Freetype lib, go to console with a root user and do
 

Code:
yum -y install freetype

2. Recompile PHP with freetype lib, to do so , go to 

http://yourserver.com:2030/index.php?module=php_switch

Select php version desired ej: PHP 5.5

Add this line to the configure list 
 
Code:
with-freetype-dir=/usr/local/lib

Run compiler, wait 15 mins aprox.  and check phpinfo 

http://yourserver.com:2030/index.php?module=php_info

You must see : Build Date   (recent date, to check if compiler has done)

And GD module installed like : 

gd

GD Support   enabled
GD Version   bundled (2.1.0 compatible)
FreeType Support   enabled
FreeType Linkage   with freetype
FreeType Version   2.3.11
GIF Read Support   enabled
GIF Create Support   enabled
PNG Support   enabled
libPNG Version   1.2.49
WBMP Support   enabled
XBM Support   enabled

Hope it helps someone.

Print this item