0
Answered
PHPMyAdmin Installation
Yesterday I tried to install PHPMyAdmin, but if I type <mydomain>/phpmyadmin I am getting a NGINX 404 error. Any idea how to solve this, or maybe I have to do some extra configuration to make it work with ajenti?
Customer support service by UserEcho
{
"websites": [
{
"maintenance_mode": false,
"locations": [
{
"custom_conf_override": false,
"pattern": "/phpmyadmin",
"custom_conf": "",
"path": "/usr/share/phpmyadmin/",
"match": "exact",
"backend": {
"params": {
"autoindex": false
},
"type": "static"
}
}
],
"custom_conf": "",
"ssl_key_path": "",
"owner": "root",
"ssl_cert_path": "",
"name": "TITANWAR",
"enabled": true,
"extensions": {
"ajenti.plugins.vh.processes.ProcessesExtension": {
"processes": []
},
"ajenti.plugins.vh-mysql.mysql.MySQLExtension": {
"username": null,
"password": null,
"created": false,
"user": null,
"name": null
}
},
"domains": [
{
"domain": "titan-war.net"
}
],
"root": "/srv/titanwar",
"ports": [
{
"spdy": false,
"ssl": false,
"host": "*",
"port": 80,
"default": false
}
]
},
{
"maintenance_mode": true,
"locations": [],
"custom_conf": "",
"ssl_key_path": "",
"owner": "root",
"ssl_cert_path": "",
"name": "RECHSOFTWARE",
"enabled": true,
"extensions": {
"ajenti.plugins.vh.processes.ProcessesExtension": {
"processes": []
},
"ajenti.plugins.vh-mysql.mysql.MySQLExtension": {
"username": null,
"password": null,
"created": false,
"user": null,
"name": null
}
},
"domains": [
{
"domain": "rechsoftware.de"
}
],
"root": "/srv/rechsoftware",
"ports": [
{
"spdy": false,
"ssl": false,
"host": "*",
"port": 80,
"default": false
}
]
}
]
}
first, you should be using "PHP" content type instead of "Static files" for PHPMyAdmin
second, you should set path of this content entry to /usr/share, because your URL prefix will be appended to it, giving you final path of /usr/share/phpmyadmin (see documentation for NGINX "root" directive)
{
"websites": [
{
"maintenance_mode": false,
"locations": [
{
"custom_conf_override": false,
"pattern": "/phpmyadmin/",
"custom_conf": "",
"path": "/usr/share",
"match": "exact",
"backend": {
"params": {
"pm_min": null,
"pm_max": null,
"php_open_basedir": "/usr/share"
},
"type": "php-fcgi"
}
}
],
"custom_conf": "",
"ssl_key_path": "",
"owner": "root",
"ssl_cert_path": "",
"name": "TITANWAR",
"enabled": true,
"extensions": {
"ajenti.plugins.vh.processes.ProcessesExtension": {
"processes": []
},
"ajenti.plugins.vh-mysql.mysql.MySQLExtension": {
"username": null,
"password": null,
"created": false,
"user": null,
"name": null
}
},
"domains": [
{
"domain": "titan-war.net"
}
],
"root": "/srv/titanwar",
"ports": [
{
"spdy": false,
"ssl": false,
"host": "*",
"port": 80,
"default": false
}
]
},
{
"maintenance_mode": true,
"locations": [],
"custom_conf": "",
"ssl_key_path": "",
"owner": "root",
"ssl_cert_path": "",
"name": "RECHSOFTWARE",
"enabled": true,
"extensions": {
"ajenti.plugins.vh.processes.ProcessesExtension": {
"processes": []
},
"ajenti.plugins.vh-mysql.mysql.MySQLExtension": {
"username": null,
"password": null,
"created": false,
"user": null,
"name": null
}
},
"domains": [
{
"domain": "rechsoftware.de"
}
],
"root": "/srv/rechsoftware",
"ports": [
{
"spdy": false,
"ssl": false,
"host": "*",
"port": 80,
"default": false
}
]
}
]
}
Still thanks for your support, and still answering my nooby questions :D.
Can you please let me know how you solved it and if you can post some phpmyadmin install steps.
You will help a lot of people.
Thanks,
Kick
For production you should be good to go with standard settings (remove these)
Content > PHP > PHP.ini
upload_max_filesize = 26M;
post_max_size = 26M;
fastcgi_connect_timeout 360;
fastcgi_send_timeout 250;
fastcgi_read_timeout 250;
- wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.1.7/phpMyadmin.4.1.7-all-languages.tar.bz2
====Input this
wget http://freefr.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.2.7/phpMyAdmin-4.2.7-all-languages.zip
next
unzip phpMyAdmin-4.2.7-all-languages.zip
When I first login the url is forced to be like this:
`https://pma.mydomain.com:80/index.php?token=xxxxxxxxxxx`
And page says "SSL Connection error"
So I go to `https://pma.mydomain.com` in same browser and I am logged in and working perfectly.
Searching in docs cannot find where I may control this behaviour.
thx
I apologize if this is not in the right area. If I should raise a new topic this can be deleted.
$cfg['ForceSSL'] = true;