I installed Sharetribe on Ubuntu as non root user. It is my very first experience with programing server and with Ruby, but I managed to do it all… and now have working instance of self hosted Sharetribe.
To point installation to the right directory I changed directory in apache2.conf to : home/myusername
Now my site opens just fine, and I can access my site using domain name.
But I can’t access phpMyAdmin
when I try to use IP/phpmyadmin IP number changes to domain name and it gives this same page as on
Page not found!
The page you requested cannot be found. Are you sure you spelled the address correctly?
If it was php I would say it is .htaccess file…
But this is Ruby and I am seeing this code very first time in my life I am fast learner and will soon be the best at it, but for now I need little help.
phpMyAdmin is standard with wordpress deployments, but Rails based projects do not typically deploy this tool. I’d like to suggest a DB management tool, but, as a developer, I usually handle it from the command line for Rails.
The only reason I was asking because for me phpMyAdmin is the easiest tool to manage and read database.
After initial install before domain name is set phpMyAdmin is acessable using http://ipnumber/phpmyadmin
but right after domain name is set it is no longer accessible… and gives this custom Page not found error.
In my case I wanted to find a database field with default language setting, but have no idea how I could do this without more friendly database tool.
I assume that in my case phpMyAdmin was there but it is somehow blocked my Sharetribe script because it gives this custom page… (and it was there before pointing domain to ip)
Now I decided to do it all over again and will reinstall Sharetribe from fresh. Is there a way to allow phpMyAdmin to be accessible while Sharetribe is installed?
I see. While it’s hard for me to specifically say what’s going on, Rails routing must be overriding the routing to the instance of phpmyadmin you have running.
I would recommend HeidiSQL over PHPMyAdmin. It is faster and more secure. There are some guides on how to set it up with Rails online that you can look up.
One thing that tripped me up the first time I installed phpmyadmin was that when it asks which webserver you are running apache2 is highlighted, but you still have to select it using the space bar or it will not be configured properly.
For now if I need to use phpMyAdmin I just disable domain and this way I can access it. I think I will make Maintenance page in /var/www/htm/ folder to inform users that site is undergoing maintenance and will resume shortly.