PHPMyAdmin is not accessible

php
phpmyadmin

#1

Hi Team,

I am facing an issue in accessing PHPMyAdmin on cloud9 IDE though I followed the steps mentioned in cloud9 documentation.

  1. Successfully Installed MySQL – using this command: mysql-ctl install
  2. Successfully Started MySQL – using this command: mysql-ctl start
  3. Successfully Installed PHPMyAdmin – using this command: phpmyadmin-ctl install

I see the below messages for PHPMyAdmin installation

**arunkr:~/workspace $ phpmyadmin-ctl install**
Starting installation
Starting MySQL
* Starting MySQL database server mysqld
   ...done.
Configuring database
Starting apache
* Restarting web server apache2
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:8080
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
   ...fail!
* The apache2 instance did not start within 20 seconds. Please read the log files to discover problems

PHPMyAdmin Installation complete. You can log in at: https://project-angularjs-arunkr.c9users.io/phpmyadmin with the following username (and blank password):

       Username: arunkr

When I tried to access the link given for PHPMyAdmin – I see the home page of my application (instead of PHPMyAdmin page)

Please look into this issue and suggest me a way to access PHPMyAdmin page for my workspace.

Thanks
Arun


#2

Your Angular app, is it running on Apache? If it’s already taking up port 8080 then you’ll want to follow these instructions for running PHPMyAdmin at the same time as your app. Can you give that a go and see if that helps?


#3

Thanks Brady,

The solution is perfect.
I am now able to access PHPMyAdmin.

I followed the below steps from the documentation link to access PHPMyAdmin for my website

Run PHPMyAdmin on port 8081

The other alternative is to run Apache on port 8081. You can do this with the following steps:

Edit /etc/apache2/ports.conf and change 8080 to 8081Edit /etc/apache2/sites-available/001-cloud9.conf and change 8080 to 8081.

Restart apache with sudo service apache2 restart or by restarting your runner.

You’ll then be able to access PHPMyAdmin at https://-.c9users.io:8081/phpmyadmin