Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.
$ sudo aptitude install phpmyadmin
And add phpMyAdmin to your site, open up the correct site in /etc/apache2/sites-available/ and add at bottom;
Alias /phpmyadmin/ "/var/www/phpmyadmin/"
Alias /phpmyadmin "/var/www/phpmyadmin/"
<Directory "/var/www/phpmyadmin/" >
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Deny from none
</Directory>
Reload Apache;
$ sudo /etc/init.d/apache2 force-reload
And access through your site;
http://domain.com/phpmyadmin
I hope this help.
Birger :)
Ahh. My bad. Then I am not sure. Maybe you need to read the documentation really well.
Birger :)
server {
listen 80;
server_name phpmyadmin.domainname.com;
access_log /home/apps/logs/phpmyadmin.access_log;
error_log /home/apps/logs/phpmyadmin.error_log;
location / {
root /usr/share/phpmyadmin;
index index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:8888;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
include /etc/nginx/fastcgi.conf;
}
}
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
sudo apt-get install phpmyadminUbuntu LTS with Apache 2 here.
I also applied Go-Xian's advice, and like nimish, just saw the phpmyadmin directory listing. Adding the index file to make the first line "Alias /phpmyadmin/ "/var/lib/phpmyadmin/index.php" didn't help much: phpmyadmin's meager css files didn't load, and I got the same 404 smackdown after entering my login details.
The easier solution for me was to create a symbolic link:
sudo ln -s /usr/share/phpmyadmin /home/demo/public_html/demo.com/public
Then I just access phpmyadmin through http://demo.com/phpmyadmin
Posted By: nimish79I realised that phpMyAdmin was not installed in /var/www/ and instead was on /var/lib/. Thus I added the following line to the vhost file for the desired domain name.
Alias /phpmyadmin/ "/var/lib/phpmyadmin/"
Alias /phpmyadmin "/var/lib/phpmyadmin/"
....
Alias /phpmyadmin/ "/usr/share/phpmyadmin/"
Alias /phpmyadmin "/usr/share/phpmyadmin/"
<Directory "/usr/share/phpmyadmin/" >
...etc...