저번 게시글에 이어 ubuntu상에 Wordpress 설치 진행
업데이트 리스트 확인 후 mysql 설치진행
sudo apt-get update sudo apt-get install -y apache2 php5 mysql-server mysql-client php5-mysql phpmyadmin vsftpd | cs |
mysql root 비밀번호 설정 : toor ( 본인의 비밀번호 입력 )
이후 apache > yes > toor > toor > toor 입력하면 설치가 완료
호스트에서 ubuntu ip : 192.168.0.130 ( ip세팅은 이전게시글 참고 ) 접속 시 아래그림처럼 기본페이지 설정되어있는지 확인
해당 파일을 ubuntu로 옮기고 진행
압축 푼 wordpress 폴더내용을 /var/www/html로 이동
cd Desktop/ sudo cp -r wordpress /var/www/html | cs |
아파치가 바라보는 기본사이트 연결 제거
cd /etc/apache2/sites-available/ sudo a2dissite 000-default.conf | cs |
새로 연결할 기본페이지 생성
sudo touch wordpress.conf | cs |
에디터 실행
sudo gedit wordpress.conf | cs |
<Virtualhost *:80> ServerAdmin me@me.local ServerName wordpress.local DocumentRoot /var/www/html/wordpress <Directory /var/www/html/wordpress> Options -Indexes AllowOverride all Order allow,deny allow from all </Directory> LogLevel warn ErrorLog /var/log/apache2/wordpress.local_error.log CustomLog /var/log/apache2/wordpress.local_access.log combined ServerSignature Off </Virtualhost> | cs |
생성한 기본페이지를 아파치에 연결 후 아파치 재구동
sudo a2ensite wordpress.conf sudo service apache2 reload | cs |
호스트에서 ubuntu ip : 192.168.0.130 접속 시 아래그림처럼 생성한 기본페이지가 설정되어있는지 확인
이후 ubuntu 상에서 다음 명령어 실행 ( 소유,그룹권한과 wordpress 파일 디렉터리실행 권한을 바꿔주는 명령어 )
sudo chown -R www-data:www-data /var/www/html/wordpress sudo find /var/www/html/wordpress -type d -exec chmod 755 {} \; sudo find /var/www/html/wordpress -type f -exec chmod 644 {} \; | cs |
아래의 사진은 데이터베이스에 추가해주는 명령어와 실행 화면
mysql -u root -p toor mysql>create database wordpress; mysql>show databases; | cs |
여기까지 완료가 됐으면 홈페이지로 가서 아이디, 비번을 생성하고 로그인하면 다음과 같이 관리자화면을 볼 수 있음
아래 사진은 방문자들에게 보이는 wordpress 화면
'K-Shield Jr. > 모의해킹' 카테고리의 다른 글
SQL Injection의 종류와 의미 (0) | 2018.11.07 |
---|---|
WordPress Plugin 취약점 Like DisLike Counter :: 2. 패스워드 크랙 (1) | 2018.11.05 |
WordPress Plugin 취약점 Like DisLike Counter :: 1. burp suite & sqlmap (0) | 2018.11.05 |
Wordpress 한글화 (0) | 2018.11.04 |
Ubuntu 기본세팅 (0) | 2018.11.02 |