geekylog-blog
geekylog-blog
GeekyLog
41 posts
WTF?!
Don't wanna be here? Send us removal request.
geekylog-blog · 5 years ago
Link
0 notes
geekylog-blog · 5 years ago
Text
Virtualmin PPTPD Fix
The nf_conntrack_pptp not loaded.
In /etc/modules-load.d, create pptpd.conf file and put:
nf_conntrack_pptp
Save it and reboot the server.
0 notes
geekylog-blog · 5 years ago
Text
Synchronize a directory from remote system to local system
rsync -azvr [email protected]:/path/to/remote/folder/ /path/to/local/folder/
0 notes
geekylog-blog · 6 years ago
Text
Install driver from recovery command prompt?
dism /Image:C:\ /Add-Driver /Driver:D:\ /Recurse
Note: Windows is installed at C:\ and the disk with the driver is at D:\
0 notes
geekylog-blog · 6 years ago
Text
Fix domain permission on Virtualmin
virtualmin fix-domain-permissions --all-domains
0 notes
geekylog-blog · 6 years ago
Link
0 notes
geekylog-blog · 6 years ago
Text
Virtualmin Drupal htaccess fixes
find /home -name ".htaccess" -type f -exec sed -i 's/FollowSymLinks/SymLinksIfOwnerMatch/g' {} ";"
0 notes
geekylog-blog · 6 years ago
Link
0 notes
geekylog-blog · 6 years ago
Link
0 notes
geekylog-blog · 6 years ago
Link
0 notes
geekylog-blog · 6 years ago
Link
0 notes
geekylog-blog · 6 years ago
Text
Create service on CentOS 7
Create the service file:
vi /etc/systemd/system/myservice.service
Put the config:
[Unit] Description=myservice Documentation=http://domain.com After=syslog.target [Service] ExecStart=/root/my-cli/myservice --data-dir=/root/.myservice --log-file=/var/log/myservice SuccessExitStatus=143 [Install] WantedBy=multi-user.target
Reload and enable the daemon:
systemctl daemon-reload systemctl enable myservice.service reboot
0 notes
geekylog-blog · 6 years ago
Link
0 notes
geekylog-blog · 6 years ago
Text
Zip exclude specific folder
zip -r example_com.zip example_com -x '*uploads*'
0 notes
geekylog-blog · 6 years ago
Link
0 notes
geekylog-blog · 6 years ago
Link
0 notes
geekylog-blog · 6 years ago
Text
Migrate Sentora to New Server
Install Sentora di server baru.
Zip folder /var/sentora/hostdata di server lama dan pindahkan ke server tujuan.
Export semua database:
mysqldump -u root -p --all-databases | gzip -9 > /root/all_databases.sql.gz
dan import di server baru:
mysql -u root -p < /root/all_databases.sql
Perlu diingat untuk di gunzip dulu.
Update config di /etc/sentora/panel/cnf menggunakan mysql root password lama.
Reset zadmin password:
setzadmin --set password-barunya
Pergi ke Admin -> Module Admin -> Apache Config dan pilih Force Update.
Lalu jalankan:
php -q /etc/sentora/panel/bin/daemon.php
0 notes