2015年07月 存档

Bitnami开启ssh启用phpmyadmin

2015年07月19日,星期日

转自论坛:

 

I noticed one part of my out-of-the-box phpmyadmin.conf is different to the one that is included in all online documents. After changing the line “Allow from 127.0.0.1″ with “Allow from all” that part looks like this:

 

<IfVersion < 2.3 >
 Order allow,deny
 Allow from all
 Satisfy all
 </IfVersion>
 <IfVersion >= 2.3>
 Require local
 </IfVersion>
 

 

I am thinking that the Require local under the <ifversion>= 2.3> may be conflicting with the Allow from all. I haven’t found any alternative syntax for that as all online documentation doesn’t include that syntax in the file used as example.

 

For Apache 2.4.x you will to use “Require all granted” instead of “Require local” in the <IfVersion >= 2.3>section:

 

<IfVersion >= 2.3>
 Require all granted
 </IfVersion>
 

 

For other options you can check the Apache documentation:

 

 

https://community.bitnami.com/t/accessing-phpmyadmin-remotely-i-get-this-security-error-for-security-reasons-this-url-is-only-accesible-using-localhost-127-0-0-1-as-the-hostname/6718/2

 

 

How to enable sshd?

Some applications like GitLab or Gitorious require to have SSH access to import the repositories. The “ssh” server is disabled by default for Virtual Machines. You can enable the “ssh” server from the machine console as follows:

  • For Ubuntu
    $ sudo mv /etc/init/ssh.conf.back /etc/init/ssh.conf
    $ sudo start ssh

Now you can login from a different machine using “ssh” and the IP address of your Virtual Machine.

If you want to disable it you can use the reverse method:

  • For Ubuntu
    $ sudo stop ssh
    $ sudo mv /etc/init/ssh.conf /etc/init/ssh.conf.back