unable to open phpmyadmin after installing in tomcat instance of google cloud

1,203 views
Skip to first unread message

Yaswanth Sai

unread,
Jun 10, 2015, 1:45:54 AM6/10/15
to gce-dis...@googlegroups.com
Hello guys,

I have tomcat instance running on google cloud.

As the tomcat instance contains mysql also,I was able to connect the database from my servlets.

I installed phpmyadmin in tomcat instance itself(all the required installations like php etc have automatically completed).

After installation,i entered

sudo nano /etc/apache2/apache2.conf

and included one line in the file ,

Include /etc/phpmyadmin/apache.conf

saved and restarted apache2

but still unable to access phpmyadmin by ipaddress/phpmyadmin

after that i checked some online resources

finally reconfigured and checked apache2

and run

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.c onf

sudo /etc/init.d/apache2 reload

but still phpmyadmin is not accessible

Can any one suggest me how to solve the problem?? Do i need to some more work

Kamran (Google Cloud Support)

unread,
Jun 12, 2015, 2:13:56 PM6/12/15
to gce-dis...@googlegroups.com, saiyas...@gmail.com

After deploying the Apache Tomcat, take the following steps to enable phpMyAdmin on your web server:

1- Install phpMyAdmin and configure it for Apache web server. You will need your Tomcat stack's MySQL administrator password to finish the installation:

$ sudo apt-get install phpmyadmin

2- Add 'Listen 8000' to /etc/apache2/ports.conf , so it will be looked like:

NameVirtualHost *:80
Listen 80
Listen 8000
...
...

4- Create a (virtual host) site file in /etc/apache2/sites-available/   with the following content ($ sudo nano /etc/apache2/sites-available/phpmyadmin ).:

<VirtualHost *:8000>
        DocumentRoot /usr/share/phpmyadmin
        ServerName phpmyadmin

</VirtualHost>

5- Enable this new site/virtual host ( $ sudo a2ensite /etc/apache2/sites-available/phpmyadmin)
6- Restart the Apache service ( $ sudo service apache2 restart)
7- Enable your GCE network firewall to listen on port 8000 for the TCP protocol. In order to keep the accessing to the phpMyAdmin secured, in your GCE firewall rule's Source IP Ranges field specify the IP address from where you are connecting to.

With this configuration, the phpMyAdmin panel will be available at:  http://IP-ADDRESSE:8000

Sincerely,

Kamran
Reply all
Reply to author
Forward
0 new messages