Infra/리눅스

raspberrypie LAMP web service 시행착오들

서머스 2020. 12. 19. 01:52

1. install phpmyadmin이 안될 때

youtu.be/ZQPG_cOAi-g

이 영상에서 sql 다운받고 그 이후에 composer하는 부분부터 따라했다

 

 

2.localhost/phpmyadmin 에 들어갔는데 코드만 뜨고 안나올 때

stackoverflow.com/questions/10769148/extension-mysqli-is-missing-phpmyadmin-doesnt-work

 

Extension mysqli is missing, phpmyadmin doesn't work

I have a problem with phpmyadmin on ubuntu 12.04. I have already installed apache2, php5, mysql and phpmyadmin. The phpinfo(); script, don't show nothing about mysqli or mysql extension. When I try

stackoverflow.com

sudo apt-get install php5-mysqli

명령어 쓴다

 

3. phpmyadmin에 권한이 안 옮겨질 때

stackoverflow.com/questions/12877458/mysql-error-1133-cant-find-any-matching-row-in-the-user-table

 

MySQL Error #1133 - Can't find any matching row in the user table

Unable to set password for a user using 3.5.2.2 - phpMyAdmin for 5.5.27 - MySQL. When trying to set the password while logged onto phpMyAdmin as the user, it pops up the following error: #1133 - C...

stackoverflow.com

GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'localhost'

뒤에

IDENTIFIED BY '암호';

를 추가하면 된다

 

 

* 이 외의 오류들

- 실수로 도메인 이름을 바꿔버렸더니 안들어가진다

=> cpanel로 도메인 이름을 변경 가능. 

근데 나는 virtual box로 했더니.. cpanel이 안됨

그래서 망했다.

다시만들었음

 

- 실수로 권한을 임의로 바꿔버려서 명령어 수행이 안됨

askubuntu.com/questions/867589/error-when-typing-su

 

Error when typing su

When I run the command su, it says: roger@RogerPC:/$ sudo su sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by o...

askubuntu.com

su 로도 로그인이 안돼서 난감했던..;;;

recovery 모드로 들어가서(처음 시작할때 shift나 esc를 누르면 된다. 다만 shift는 계속 누르면 고정키버튼이 나오기 때문에 esc가 나은듯)

root로 로그인해서

1. mount -o remount,rw /

2. chmod 644 /usr/lib/sudo/sudoers.so

3. chown root:root /usr/lib/sudo/sudoers.so

4. reboot

요렇게 입력하면 된다

1번줄 입력하면 에러처럼 뭔가 뜨는데, 에러는 아니고 그냥 이런 과정이 있었다 하고 알려주는 메시지라고 한다(유투브에서 봄)

근데.. 사실 이거 망하면 전체 다 망하는....

 

 

'Infra > 리눅스' 카테고리의 다른 글

Virtual Box에 CentOS7 설치하기  (0) 2022.04.03
ubuntu에서 jps를 했을 때 DataNode가 동작하지 않을 때  (0) 2021.11.18
awk 실습  (0) 2020.12.02
awk 실습  (0) 2020.11.14
리눅스 압축(tar, gzip) 실습  (0) 2020.11.14