0
0

More than 3 years have passed since last update.

aws EC2にてApache+PHP5.6+Mysql+phpMyAdmin+PostgreSQL

Last updated at Posted at 2020-10-08

PostgreSQLインストール
sudo yum -y install postgresql postgresql-server postgresql-libs
sudo yum install postgresql-server postgresql-devel postgresql-contrib
sudo vi /var/lib/pgsql9/data/postgresql.conf
sudo vi /var/lib/pgsql9/data/pg_hba.conf
sudo /etc/rc.d/init.d/postgresql start

phpMyAdminの設定は下記手順が必要の様。
インストールは下記の様に。
sudo yum --enablerepo=epel install phpMyAdmin php56-mcrypt php56-mysql

install後
vi /etc/httpd/conf.d/phpMyAdmin.conf
にて下記


AddDefaultCharset UTF-8
 下記2行追加
AllowOverride all
Require all granted


# Apache 2.4

Require ip 127.0.0.1
Require ip ::1



# Apache 2.2
Order Deny,Allow
#Deny from All
Allow from 127.0.0.1
Allow from ::1
Allow from All

Aapache2.4での

cat /var/log/mysqld.log | grep 'password is generated'

パスワード確認:xxxpasswordxxx

/etc/rc.d/init.d/mysqld stop

ps aux| grep mysqld

mysqld_safe --skip-grant-tables &

mysql> FLUSH PRIVILEGES;

mysql> set password for root@localhost=password('xxxpasswordxxx');

Mysql再起動
Apache再起動

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0