swandono
swandono
:catetan kaki:
64 posts
GUNAWAN PROBO SWANDONO
Don't wanna be here? Send us removal request.
swandono 5 years ago
Text
Fix wp-admin
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on';
0 notes
swandono 5 years ago
Text
Flush W3 Total Cache via WP-CLI
wp w3-total-cache flush all posts post database objec minfy cdn_purge wp w3-total-cache flush all
0 notes
swandono 5 years ago
Text
Create sitemap Yoast SEO via wp-cli
cd / && cd /"path to domain"/ && /usr/local/bin/wp eval '$sm = new WPSEO_Sitemaps;$sm->init_sitemaps_providers();$sm->build_root_map();$sm->output();' > /"path to domain"/wp-content/uploads/sitemap_index.xml --allow-root
0 notes
swandono 5 years ago
Text
Restore big database
mysql -u username -p -h hostname databasename < dump.sql
0 notes
swandono 5 years ago
Text
Google Cloud Resize
$ sudo growpart /dev/sda 1 $ sudo xfs_growfs /dev/sda1
0 notes
swandono 6 years ago
Text
SSL Error WP
/* SSL Settings */ define('FORCE_SSL_ADMIN', true); /* Turn HTTPS 'on' if HTTP_X_FORWARDED_PROTO matches 'https' */ if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){ $_SERVER['HTTPS'] = 'on'; }
0 notes
swandono 6 years ago
Text
Extract tar.gz
tar xvzf mediawiki-1.32.1.tar.gz
0 notes
swandono 6 years ago
Text
crontab env
env SHELL=/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
0 notes
swandono 6 years ago
Text
404 nginx other
聽try_files $uri $uri/ $uri.html $uri.php /index.php?q=$uri&$args;
0 notes
swandono 6 years ago
Text
migrate database myqsl
mysqldump -u root -p --opt [database name] > [database name].sql scp [database name].sql [username]@[servername]:path/to/database/ mysql -u root -p newdatabase < /path/to/newdatabase.sql
0 notes
swandono 6 years ago
Text
nginx 404
try_files $uri $uri/ /index.php?q=$uri&$args di tambah di block location /{}
0 notes
swandono 6 years ago
Text
mod_ssl
yum install mod_ssl etc/httpd/conf.d/ssl.conf
0 notes
swandono 6 years ago
Text
Install suhosin php 5.6
cd /tmp wget -nv -O suhosin.zip https://github.com/stefanesser/suhosin/archive/0.9.38.zip unzip -q suhosin.zip rm -f suhosin.zip cd suhosin-0.9.38 phpize &> /dev/null ./configure &> /dev/null make &> /dev/null make install cd .. rm -rf suhosin-0.9.38
0 notes
swandono 6 years ago
Text
suhosin x wp cli
suhosin.executor.include.whitelist="phar"
0 notes
swandono 6 years ago
Text
Install redis php
sudo yum install php56w-devel cd /usr/local/src/ wget https://pecl.php.net/get/redis-2.2.8.tgz tar zxpf redis* cd redis* sudo phpize sudo ./configure sudo make sudo make install sudo echo "extension=redis.so">/etc/php.d/redis.ini sudo apachectl restart
0 notes
swandono 6 years ago
Text
Masalah Owner
sudo chown -R apache:apache /var/sentora/hostdata/zadmin/public_html/web_swandono_com
0 notes
swandono 6 years ago
Text
Check CentOS memory
top -o %MEM
0 notes