우분투 리눅스 APACHE PHP MYSQL 설치/삭제

[ad_1]

반응형

* apache 설치/삭제


sudo apt-get install apache2


sudo apt-get remove apache2


(브라우저로 서버 IP 또는 도메인으로 접속하여 정상 설치 여부 확인)


 


– apache 홈 디렉토리 변경


vi /etc/apache2/apache2.conf


<Directory /var/www/> <= 원하는 경로로 변경


vi /etc/apache2/sites-available/default-ssl.conf


DocumentRoot /var/www/html <= 원하는 경로로 변경


vi /etc/apache2/sites-available/000-default.conf


DocumentRoot /var/www/html <= 원하는 경로로 변경


sudo service apache2 restart


 


* PHP 설치/삭제


sudo apt-get install php


sudo apt-get remove php


 


 


* MYSQL 설치/삭제 (오픈소스이며 mysql과 100% 호환되는 mariadb 설치)


sudo apt-cache search mysql-server   버젼 확인 (여러 버젼 있음)


sudo apt-get install mariadb-server


sudo apt-get remove mariadb-server


 


 

* APM 연동 모듈 설치/삭제


sudo apt-get install libapache2-mod-php php-mysql


sudo apt-get remove libapache2-mod-php php-mysql

반응형

[ad_2]

Source link

0 0 votes
별점
guest
5 댓글
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
binance register
binance register
1 month ago

Your article helped me a lot, is there any more related content? Thanks!

create binance account
create binance account
1 month ago

Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

Registrácia na binance
Registrácia na binance
1 month ago

I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

binance Norādījuma bonusa kods
binance Norādījuma bonusa kods
27 days ago

Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

Binance代码
Binance代码
10 days ago

Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

5
0
Would love your thoughts, please comment.x
()
x