yumyum

[Linux] XE OWNCLOUD WORDPRESS 본문

ICT기반 클라우드 네트워크 해킹 침해대응전문가/Linux

[Linux] XE OWNCLOUD WORDPRESS

yumyum0603 2023. 9. 5. 17:41

XE

 

firefox에서 xe 다운받기

cd [tab] [tab] 으로 확인후

다운로드로 이동

ls로 다운받은 파일 확인 -> xe.zip

xe.zip 파일을  var/www/html 로 이동시켜주기

var/www/html 로 이동하기

 

-> unzip xe.zip 하여 zip파일 압축 풀어주기

-> ll 하여 xe 폴더 생긴것 확인

 

[root@localhost html]# chmod 707 xe
[root@localhost html]# chown apache.apache xe
[root@localhost html]# mysql 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.68-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> GRANT ALL PRIVILEGES ON xeDB.*TO xeUSER@localhost IDENTIFIED BY '1234' ;
Query OK, 0 rows affected (0.05 sec)

MariaDB [(none)]>

채널 모드 적용

mysql로 마리아db 적용m

 

OWNCLOUD

 

owncloud 다운받기

 

cp로 owncloud var/www/html로 이동시키기 

cd로 이동해서 zip 파일 풀어주기

 

풀어주고 192.168.111.100/owncloud 에 접속하면

현재 5.4 버전을 사용하고 있지만 7.4 버전을 사용해야한다는 에러가 뜬다

 

php 버전 업! 하는 명령어를 적어보자
# yum -y remove php php-*    -> 제거
# yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# yum -y install epel-release

# yum-config-manager --disable remi-php54 -> 5.4 버전 끄기
# yum-config-manager --enable remi-php74 -> 7.4버전 켜기
# yum -y --skip-broken install php php-*

 

________________________________________________________

[웹하드]

wordpress 다운로드 

 

# cd /home/rocky/다운로드
# cp wordpress-* /var/www/html
# cd /var/www/html
# unzip wordpress-* 


# mysql
MariaDB [none]> GRANT ALL PRIVILEGES ON wpDB.* TO wpUser@localhost IDENTIFIED BY ‘1234’;
MariaDB [none]> exit

#mysql -u wpUser -p1234
MariaDB [none]> CREATE DATABASE wpDB;
MariaDB [none]>exit

 

# cd /var/www/html

# chmod -R 707 wordpress

# chown -R apache.apache wordpress

 

# cp wp-config-sample.php wp-config.php
# vim wp-config.php 

 23 define( 'DB_NAME', 'wpDB' );
 26 define( 'DB_USER', 'wpUser' );
 29 define( 'DB_PASSWORD', '1234' );


# vim /etc/httpd/conf/httpd.conf
156     AllowOverride ALL

-> firefox에서 192.168.111.120/wordpress 접속

 

'ICT기반 클라우드 네트워크 해킹 침해대응전문가 > Linux' 카테고리의 다른 글

[Linux] php 설정파일, CGI  (0) 2023.09.06
[Linux] ACL  (0) 2023.09.06
[Linux] APM  (0) 2023.09.04
[Linux] telnet  (0) 2023.09.04
[Linux] QUOTA  (0) 2023.09.04