Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Gazelle (http://www.bvlist.com/forumdisplay.php?f=40)
-   -   phpmyadmin (http://www.bvlist.com/showthread.php?t=11051)

chevyman78 28th December 2016 12:40

phpmyadmin
 
so i installed this on a home server for fun and who knows what later.but when i try and access phpmyadmin it takes me to index page of site...any ideas why?

Phogo 28th December 2016 17:49

Quote:

Originally Posted by chevyman78 (Post 49771)
so i installed this on a home server for fun and who knows what later.but when i try and access phpmyadmin it takes me to index page of site...any ideas why?

For us to help, can you provide us with more information please;

What operating system?
Apache/Nginx?
What PHP version?
What MySQL version?
How did you install it?
Have you checked/enabled error logs?

chevyman78 28th December 2016 23:11

ubuntu 14.4
ngnix
PHP 5.5.9-1
mysql Ver 14.14 Distrib 5.5.53
followed this guide https://github.com/WhatCD/Gazelle/wi...n-Ubuntu-14.04

install phpmyadmin as well
and nothing in rror logs

Phogo 29th December 2016 11:09

Did you install PhpMyAdmin via apt?

Have you created a symlink? If not you will need to do the following

Code:

sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html
Your php will also need mcrypt enabled.

Restart php and nginx for good measure and you should be able to load it from http://yourdomain/phpmyadmin

And remember to lock it down to your IP or VPN if possible

Zuby 29th December 2016 11:40

Quote:

Originally Posted by chevyman78 (Post 49774)
ubuntu 14.4
ngnix
PHP 5.5.9-1
mysql Ver 14.14 Distrib 5.5.53
followed this guide https://github.com/WhatCD/Gazelle/wi...n-Ubuntu-14.04

install phpmyadmin as well
and nothing in rror logs

Check this. It's for you:
https://www.digitalocean.com/communi...u-14-04-server

chevyman78 29th December 2016 12:23

Thanks for the replys,here is what i get
@ubuntu:~$ sudo php5enmod mcrypt
WARNING: Not enabling the mcrypt module for cli SAPI since module symlink
WARNING: already exists in /etc/php5/cli/conf.d with different content.
WARNING: Not enabling the mcrypt module for fpm SAPI since module symlink
WARNING: already exists in /etc/php5/fpm/conf.d with different content.

Phogo 29th December 2016 13:55

What about the symlink? Did that work?

chevyman78 29th December 2016 22:26

said file already exsits

Phogo 30th December 2016 15:46

Ok, well with all the feedback your not providing its near impossible for us to help.

Try the above guide that Zuby provided.

chevyman78 30th December 2016 23:53

gave you answers to all ur questions...i dont know what is wrong so i cant be of much more help,that guide didnt work either.

DND 31st December 2016 00:10

use apache2..nginx kinda suckz..

chevyman78 31st December 2016 01:18

i could but that don't figure out why it don't work tho.

DND 31st December 2016 02:36

go into your conf available directory from nginx..look for @phpmyadmin.conf
get into that conf..make sure alias(location):
Alias /phpmyadmin /usr/share/phpmyadmin

restart nginx/php5-fpm..
give it another go.

chevyman78 31st December 2016 02:41

i dont see that at all

DND 31st December 2016 02:47

well why not? if its for apache it should be for nginx.. never used nginx
btw.. phpmyadmin is not suported by default with nginx, only apache2 and lighthttpd

Open /etc/nginx/sites-available/ ... default config and default ssl..if you have any then add:

Code:

location /phpmyadmin {             
 root /usr/share/;               
index index.php index.html index.htm;             
 location ~ ^/phpmyadmin/(.+\.php)$ {                       
try_files $uri =404;                     
  root /usr/share/;                       
fastcgi_pass 127.0.0.1:9000;                     
 fastcgi_index index.php;                     
 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;                     
  include /etc/nginx/fastcgi_params;               
}             
 location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {                       
root /usr/share/;             
 }       
 }       
 location /phpMyAdmin {             
 rewrite ^/* /phpmyadmin last;       
 }

Add the above in the server container
server{
...... code code
}
restart nginx

Gurkbit 1st January 2017 18:27

make sure the paths are correct maybe your root aint */*/html maybe it is */*/www and check that phpmyadmin is in usr/share/... if not you need to change the symlink according to it

about 29th January 2017 15:01

You should try Adminer.

https://www.adminer.org/

Phogo 2nd February 2017 16:29

Quote:

Originally Posted by DND (Post 49789)
btw.. phpmyadmin is not suported by default with nginx, only apache2 and lighthttpd

Of course it is, they even say so on their requirements page

DND 2nd February 2017 16:34

when you install phpmyadmin you get only apache2 lighthttpd options to configure.
if use nginx need to manually configure the paths

Phogo 2nd February 2017 18:55

You just need to make a symbolic link something similar to:

Code:

ln -s /usr/share/phpmyadmin /usr/share/nginx/html

DND 2nd February 2017 20:32

I know.. i'm just saying that by default nginx isn't an option on the installer

kubits 5th February 2017 04:13

phpmyadmin installation
 
Just place all the files into a subdir under your existing root (where your index page is), and then browse to localhost/phpmyadmin/

It should work. No need to complicate anything with nginx path directives.


All times are GMT +2. The time now is 16:42.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.