Centos 7 üzerine Lamp kurulumunu 5 adımda gerçekleştireceğiz.
1-Öncelikle server’ımıza aşağıdaki komutları yazarak hostname’imizi tanımlıyoruz.
hostnamectl set-hostname server.domain.com
hostnamectl
nano /etc/hosts
reboot
yum update -y
reboot
yum install httpd -y
systemctl start httpd.service
systemctl enable httpd service
firewall-cmd --permanent --add-service=http
systemctl restart firewalld
yum install mariadb-server mariadb -y
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
- Enter current password for root : Enter
- Set root password : Y Enter
- New password : Yeni Parolanızı yazın
- Re enter new password : Paralanızı tekrar yazın
- Remove anonymous users? Y Enter
- Disallow root login remotely? Y Enter
- Remove test database tables now? Y Enter
- Reload privilege tables now? Y Enter
yum install php php-mysql -y
systemctl restart httpd.service
sudo nano /var/www/html/info.php
<?php
phpinfo();
?>
CentOS
hakkında diğer konular