Centos 6/7 LAMP Server & SSH2 PHP 5.4 Kurulum - Kawaii - 21-10-2020
Merhaba Arkadaşlar Sizlere Web Server PHP 5.4 SSH2 Sorunsuz Kurulumu Anlatacağım
Eskiden Benimde başıma bela olan ssh2 nin kuralım
Bana Diyeceklerki Sadede Gel o zaman aşağıdaki komutları tek tek girim
1.Adım Web Server Kurulum (HTTPD)
yum install httpd -y
systemctl start httpd.service
systemctl enable httpd.service
[color=rgba(0, 0, 0, 0.87)]Adım 2 – MySQL (Mariadb) kurulumu[/color]
yum install mariadb-server mariadb -y
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
<hide>
Kod: Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorization.
New password: password
Re-enter new password: password
Password updated successfully!
Reloading privilege tables..
... Success!
</hide>
Adım 3 – PHP kurulumu
yum install php php-mysql -y
systemctl restart httpd.service
echo "<?php phpinfo(); ?>" > /var/www/html/info.php
http://sunucu_ip_adresiniz/info.php
[b]<hide>
<hide> </hide>
[b]</hide>[/b]
[/b]
Adım 4 – PHPMYADMIN kurulumu
yum install epel-release
yum install phpmyadmin
service httpd restart
Eğer PhpMyAdmin Forbidden Hatası Alırsanız Bunu Deneyin
İlk önce PhpMyAdmin conf dosyasını açalım
<hide>
1
Kod: nano /etc/httpd/conf.d/phpMyAdmin.conf
Aşağıdaki kodlar ile ilgili kısımları ister silip bunu yapıştır; isterseniz de değiştiriniz.
1
Kod: <Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
#Require ip 127.0.0.1
#Require ip ::1
Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
#Require ip 127.0.0.1
#Require ip ::1
Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
</Directory>
</hide>
Aşağıdaki kodlar ile ilgili kısımları ister silip bunu yapıştır; isterseniz de değiştiriniz.
Conf dosyasını kaydetikten sonra httpd resetleyelim
1
systemctl restart httpd
Adım 5 – SSH2 kurulumu
[b]<hide>
[/b]yum update
yum install make gcc libssh2 php-devel php-pearlibssh2-devel
mkdir libssh2
cd libssh2
tar -zxpf libssh2-1.2.7.tar.gz
cd libssh2-1.2.7
./configure
make all install
service httpd restart
mkdir ssh2
cd ssh2
tar -xvf ssh2-0.11.2.tgz
cd ssh2-0.11.2
phpize
./configure --with-ssh2
make
make install
echo 'extension="ssh2.so"' >> /etc/php.ini
make test
yum -y install gcc php-devel php-pear make libssh2 libssh2-devel
pecl install -f ssh2
php -i | grep php.ini
echo extension=ssh2.so >> /usr/local/lib/php.ini
service httpd restart && service nginx restart
</hide>
Adım 6 – Yönlendirme Düzeltme
[b]<hide>[/b]
Son Aşama Yönlendirme ile ilgili sorunlar yaşamamak için şu adımı uygulayın
Aşağıdaki 1 tane kod Web Serverinizin Yapılandırma Dosyasını temsil eder
/etc/apache2/httpd.conf
/etc/apache2/apache2.conf
/etc/httpd/httpd.conf
/etc/httpd/conf/httpd.conf
nano /etc/httpd/httpd.conf
Tüm AllowOverride yazılı kodların sonunda None yazısı varsa All ile değiştirin
AllowOverride None > AllowOverride All
</hide>
service httpd restart && service nginx restart
BİTTİ Okuduğunuz İçin Teşekkürler İzmox Gururla Sunar
Cvp: Centos 6/7 LAMP Server & SSH2 PHP 5.4 Kurulum - FEXLL - 21-10-2020
Teşekkürler yararlı bir paylaşım.
RE: Centos 6/7 LAMP Server & SSH2 PHP 5.4 Kurulum - mkyinc - 24-10-2020
bu tür paylaşımlar bizim gibi modaratörlerin hoşuna gider böyle şeyleri yazdığın için teşekkürler
RE: Centos 6/7 LAMP Server & SSH2 PHP 5.4 Kurulum - KαяαBαтαK - 07-01-2021
(21-10-2020, 11:23 PM)felixabi Adlı Kullanıcıdan Alıntı: Merhaba Arkadaşlar Sizlere Web Server PHP 5.4 SSH2 Sorunsuz Kurulumu Anlatacağım
Eskiden Benimde başıma bela olan ssh2 nin kuralım
Bana Diyeceklerki Sadede Gel o zaman aşağıdaki komutları tek tek girim
1.Adım Web Server Kurulum (HTTPD)
yum install httpd -y
systemctl start httpd.service
systemctl enable httpd.service
[color=rgba(0, 0, 0, 0.87)]Adım 2 – MySQL (Mariadb) kurulumu[/color]
yum install mariadb-server mariadb -y
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
<hide>
Kod: Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorization.
New password: password
Re-enter new password: password
Password updated successfully!
Reloading privilege tables..
... Success!
</hide>
Adım 3 – PHP kurulumu
yum install php php-mysql -y
systemctl restart httpd.service
echo "<?php phpinfo(); ?>" > /var/www/html/info.php
http://sunucu_ip_adresiniz/info.php
[b]<hide>
<hide> </hide>
[b]</hide>[/b]
[/b]
Adım 4 – PHPMYADMIN kurulumu
yum install epel-release
yum install phpmyadmin
service httpd restart
Eğer PhpMyAdmin Forbidden Hatası Alırsanız Bunu Deneyin
İlk önce PhpMyAdmin conf dosyasını açalım
<hide>
1
Kod: nano /etc/httpd/conf.d/phpMyAdmin.conf
Aşağıdaki kodlar ile ilgili kısımları ister silip bunu yapıştır; isterseniz de değiştiriniz.
1
Kod: <Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
#Require ip 127.0.0.1
#Require ip ::1
Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
#Require ip 127.0.0.1
#Require ip ::1
Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
</Directory>
</hide>
Aşağıdaki kodlar ile ilgili kısımları ister silip bunu yapıştır; isterseniz de değiştiriniz.
Conf dosyasını kaydetikten sonra httpd resetleyelim
1
systemctl restart httpd
Adım 5 – SSH2 kurulumu
[b]<hide>
[/b]yum update
yum install make gcc libssh2 php-devel php-pearlibssh2-devel
mkdir libssh2
cd libssh2
tar -zxpf libssh2-1.2.7.tar.gz
cd libssh2-1.2.7
./configure
make all install
service httpd restart
mkdir ssh2
cd ssh2
tar -xvf ssh2-0.11.2.tgz
cd ssh2-0.11.2
phpize
./configure --with-ssh2
make
make install
echo 'extension="ssh2.so"' >> /etc/php.ini
make test
yum -y install gcc php-devel php-pear make libssh2 libssh2-devel
pecl install -f ssh2
php -i | grep php.ini
echo extension=ssh2.so >> /usr/local/lib/php.ini
service httpd restart && service nginx restart
</hide>
Adım 6 – Yönlendirme Düzeltme
[b]<hide>[/b]
Son Aşama Yönlendirme ile ilgili sorunlar yaşamamak için şu adımı uygulayın
Aşağıdaki 1 tane kod Web Serverinizin Yapılandırma Dosyasını temsil eder
/etc/apache2/httpd.conf
/etc/apache2/apache2.conf
/etc/httpd/httpd.conf
/etc/httpd/conf/httpd.conf
nano /etc/httpd/httpd.conf
Tüm AllowOverride yazılı kodların sonunda None yazısı varsa All ile değiştirin
AllowOverride None > AllowOverride All
</hide>
service httpd restart && service nginx restart
BİTTİ Okuduğunuz İçin Teşekkürler İzmox Gururla Sunar
Teşekkürler
Cvp: Centos 6/7 LAMP Server & SSH2 PHP 5.4 Kurulum - ugurunal - 19-01-2021
geniş çaplı bir anlatım olmuş emeğinize sağlık
Cvp: Centos 6/7 LAMP Server & SSH2 PHP 5.4 Kurulum - Mike - 20-01-2021
İçeriğiniz için teşekkürler.
Cvp: Centos 6/7 LAMP Server & SSH2 PHP 5.4 Kurulum - FEXLL - 20-01-2021
Teşekkürler.
Cvp: Centos 6/7 LAMP Server & SSH2 PHP 5.4 Kurulum - cuculi - 20-01-2021
saol reis
|