/usr/local/directadmin/scripts/letsencrypt.sh server_cert
Kategori: Kategorisiz Yazilar
Hic bir kategoriye girmeyen yazilarimi buraya yazacagim..
konsoldan sunucu saatini , php saatini ve mariadb saatini tek komutla kontrol edelim.
konsoldan sunucu saatini , php saatini ve mariadb saatini tek komutla kontrol edelim.
cat /usr/local/directadmin/conf/mysql.conf
# date ; php -r "echo date('r').PHP_EOL;" ; mysql -u da_admin -p -e "SELECT NOW();"
[root@zubuk ~]# cat /usr/local/directadmin/conf/mysql.conf
user=da_admin
passwd=benimguzelpaswordum
[root@zubuk ~]# date ; php -r "echo date('r').PHP_EOL;" ; mysql -u da_admin -p -e "SELECT NOW();"
Tue Sep 10 11:25:06 +03 2024
Tue, 10 Sep 2024 11:25:06 +0300
Enter password:
+---------------------+
| NOW() |
+---------------------+
| 2024-09-10 11:25:15 |
+---------------------+
[root@zubuk ~]#
peki ya sunucuda bulunan diger php ?
[root@zubuk ~]# date ; /usr/local/php82/bin/php -r "echo date('r').PHP_EOL;" ; mysql -u da_admin -p -e "SELECT NOW();"
Tue Sep 10 11:31:42 +03 2024
Tue, 10 Sep 2024 11:31:42 +0300
Enter password:
+---------------------+
| NOW() |
+---------------------+
| 2024-09-10 11:31:52 |
+---------------------+
[root@zubuk ~]#
hangi kullanici hangi php surumunu kullaniyor
3 php var sistemde diyelim
1- php 8.3
2- php 7.4
3- php 5.6
hangi kullanici hangi php surumunu kullaniyor?
egrep php[1,2,3,4]_select= /usr/local/directadmin/data/users/*/domains/*.conf
listede cikan 2 ise 7.4, 3 ise 5.6, hic bir sey cikmaz ise 8.3
8.3 icin user.conf icinde veri yok demekki cunku default php, degistiriledi ise kayit olmaz
centos dead – long live alma!
centos 7 oldu
yum calismiyo 404 ,
napiyoruz?
https://almalinux.org/blog/2024-07-09-centos7-updates
centos vault da var , ama vault nedir ya ? en azindan mevcut centos 7 den bir kere son kez guncellensin
vaulta elle ayar cekmek istemiyorum
alma sagolsun tutuyor son kopyasini
ne iyi insanlar
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://el7.repo.almalinux.org/centos/CentOS-Base.repo
sudo yum upgrade -y
sonra hatta elevate servisi var centos 7 den alma linux 8 veya 9 a gecmek icin
ancak sunucular directadmin
daha once yapan yokmu nedir nedir?
https://forum.directadmin.com/threads/how-to-inplace-upgrade-from-centos-7-to-almalinux-8-5.64994
amk ip tablosu sene 2024 ugrastigimiz seye bak
nano blockla
#!/bin/bash
iptables -A INPUT -s $1 -j DROP
iptables-save > /etc/sysconfig/iptables
ctrl+x y
chmod +x blokla
./blokla ip veya subnet
iptables -L
te amk bebe seyleriyle ugrasiyoz.
~/.ssh/config
Host serverName
HostName 192.168.1.123
User userOnServer
Port 22
IdentityFile ~/path/to/key
imap rsync between directadmin servers
1- login to old server containing data
2- cd /home
ls -1
cp to a text file
delete unwanted users in that file
3- login to new server
ssh-copy-id root@old.ser.ver.ip
nano list.txt
enter user list one in a line
4- nano imap-sync
for E in `cat list.txt`; do rsync -ave 'ssh -p 22' 37.247.xx.xx:/home/$E/imap/ /home/$E/imap/ ; done
sh imap-sync
5- cd /usr/local/directadmin/scripts
./set_permissions.sh all
done!
directadmin php 8x e gecerken sorunlar ve cozumler
directadmin php 8.x gecerken sorunlar oluyo bazi libraryler bulunamadi guncellenemedi falan ve derlenmiyor ise php asagidaki yontemler ise yariyor
kurulu bulunan ancak kullanilmayan ivir ziviri kaldirma ve sistemi guncellemeye uygun hale getirme
cd /usr/local/directadmin/custombuild
./build update
./build list_removals
./build remove_items
sonrasinda ekrani takip et
mesela libiconv icin bu gerekiyor
./build remove_old_local libiconv
ayni sekilde butun php leri derlemektense sadece 1 php yi derlemek icin
./build php_expert 8.2 php-fpm
mesela cok guzel olacaktir.
21 Useful Terminal Shortcuts Pro Linux Users Love to Use
Terminal shortcuts!
Shortcut Description
Ctrl + A Move to the start of the line.
Ctrl + E Move to the end of the line.
Ctrl + U Delete from the cursor to the start of the line.
Ctrl + K Delete from the cursor to the end of the line.
Ctrl + W Delete the word before the cursor.
Ctrl + L Clear the terminal screen.
Ctrl + C Stop the current process/command.
Ctrl + D Log out or exit the terminal.
Ctrl + Z Pause the current process (can be resumed).
Ctrl + R Search command history (backward search).
Up Arrow Show the previous command (from the command history).
Down Arrow Show the next command (from the command history).
!! Repeat the last command.
!n Repeat the nth command from history.
Tab Auto-complete commands, files, or directories.
Tab twice List all possible completions.
Ctrl + Shift + C Copy the selected text or command.
Ctrl + Shift + V Paste copied text or command.
Ctrl + Shift + N Open a new terminal window.
Ctrl + Shift + T Open a new tab in the terminal.
Ctrl + TaborCtrl + PageDown Switch between terminal tabs.
Google chrome broken after update
Turn off GPU acceleration. run this command google-chrome-stable --disable-gpu --disable-accelerated-video-encode