AWS 构建个人网站(1)

来源:互联网 发布:淘宝开店的类目 编辑:程序博客网 时间:2024/05/01 05:50

最近在AWS上构建个人网站,遇到了一些问题,记笔记时间。


还是在网上找教程,吐个槽,也许是时间问题,现在网上教程各种,说话说一半,犹抱琵琶半遮面的感觉,总是“卧槽这一步怎么做了没有用”


ok, 主要是跟着这一个在做:

http://www.cnblogs.com/deltacat/p/amazon-aws-web-1.html


主要问题有:

1. phpMyAdmin need to allow remote user


(http://superuser.com/questions/291230/how-to-install-phpmyadmin-on-linux-ec2-instance)


(http://stackoverflow.com/questions/23704674/phpmyadmin-allow-remote-users)

sudo yum --enablerepo=epel install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

 this comes with the advantage of uninstalling via

(sudo) yum erase phpmyadmin

There are two ways to use EPEL, one is above, the other is to activate it permanently, editing the file/etc/yum.repos.d/epel.repo and where it says enabled=0 we change it to enabled=1, now you can sudo yum install phpmyadmin.

Then,


I need to modify the file /etc/httpd/conf.d/phpMyAdmin.conf


like:

<Directory /usr/share/phpMyAdmin/>   AddDefaultCharset UTF-8   <IfModule mod_authz_core.c>     # Apache 2.4     <RequireAny>       #ADD following line:       Require all granted       Require ip 127.0.0.1       Require ip ::1     </RequireAny>   </IfModule>   <IfModule !mod_authz_core.c>     # Apache 2.2     #CHANGE following 2 lines:     Order Allow,Deny     Allow from All     Allow from 127.0.0.1     Allow from ::1   </IfModule></Directory>

2. WordPress on EC2 Requires FTP Credentials to Install Plugins


模版时报权限问题(http://stackoverflow.com/questions/17768201/wordpress-on-ec2-requires-ftp-credentials-to-install-plugins)

sudo chown -R apache:apache /var/www/html
3. 我忘记了登陆密码 mysql

主要靠这个

http://coolway.blog.51cto.com/1481819/302099


http://blog.unvs.cn/archives/phpmyadmin-login-error.html


4.要添加http权限可访问才能看到页面






0 0