Installing phpMyAdmin onto Amazon EC2 instance

前端 未结 3 984
难免孤独
难免孤独 2020-12-19 04:06

I\'ve configured my EC2 instance as a LAMP, following Amazon\'s tutorial. That appears to be functioning correctly (I can see phpinfo() in a file I\'ve uploaded

3条回答
  •  萌比男神i
    2020-12-19 04:52

    I needed to update the /etc/httpd/conf.d/phpMyAdmin.conf to allow remote users.

    I just replaced the contents of the first tag like so...

    I removed:

    
     AddDefaultCharset UTF-8
    
     
      # 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
     
    
    

    And replaced it with this:

    
     AddDefaultCharset UTF-8
    
     Order allow,deny
     Allow from all
    
    

    And restarted the server: sudo service httpd restart

    Works now!

提交回复
热议问题