This forum is no longer active. Please post your questions to our new community site
Liferay & phpmyadmin
|
|
Hey, my setup: ubuntu/Apache/Tomcat/MySQL |
|
|
I use navicat and when you create a new connection, just put the port you are using that mysql instance on… For example: I run my liferay mysql instance on port 3307 instead of 3306 (MAMP mysql runs on 3306) |
|
|
I am having a similiar problem. I downloaded the liferay vm box with Ubuntu. I then installed the desktop environment for Ubuntu, and I am even updated to 10.10. I would like to get phpmyadmin setup but before installing that I have installed the MySQL Administrator from the Ubuntu Software center. It asks to specify the hostname, username and password. I got the username and password from /opt/bitnami/apache-tomcat/webapps/liferay/META-INF/context.xml and in that screen i enter in the hostname as “localhost” and specify the port as 3306. I know that is right because I know liferay is using that. I also know the mysql server is running because the liferay portal itself works and when running ‘sudo /opt/bitnami/ctlscrip.sh status’ it replies and says ‘tomcast already running’ and ‘mysql already running’. So any clues as to why i can not connect to the MySQL Database manually? |
|
|
Sorry one more thing. Since I am running the vmware box I would also like to note that from the host operating system computer (Windows 7 Enterprise Edition). I did a “telnet [ip obtained from ifconfig on vmware machine] 3306” but that connection fails as well, which again doesn’t make sense since it detects the mysql service is running. Thanks, |
|
|
Ok actually found the resolution regarding the “MySQL Admin” program I downloaded via the Ubuntu Software center. After following the guidelines here: http://forums.mysql.com/read.php?10,4753,56984#msg-56984 I looked at my /opt/bitnami/mysql/my.cnf file and determined that my socket file was at /opt/bitnami/mysql/tmp/mysql.sock After specifying that additional information in to the “MySQL Admin” program I was able to use that application. Also the “MySQL Query Browser” program that I downloaded from the software center seems to work fine now as well with the information in my /opt/bitnami/apache-tomcat/webapps/liferay/META-INF/context.xml file. So next steps are certainly to see if I can get the phpmyadmin to work. But with the MySQL Query Browser working, im not sure how much I will persue it :). Thanks, |
|
|
Hi, In this FAQ you can find how to configure the Virtual Appliance to access to phpMyAdmin or open the MySQL port: http://bitnami.org/faq/virtual_machines I hope it helps. |
|
|
Thanks Beltra, and normally it would help, however on the liferay vm when you go to /opt/bitnami/apps/ phpmyadmin does not exist. I did notice on the standard LAMP Stack VM’s this path exists but on the Liferay VM it does not. I assume that is because of how different apache-tomcat is vs the standard apache webserver, but ya I hope to get through it. Thanks, |
|
|
Here is an additional tidbit of information as well. I created a new folder called “mystuff”, full path: /opt/bitnami/apache-tomcat/webapps/ROOT/mystuff I created a “phpinfo.php” file, with the phpinfo(); function in it (with the < and ? in and ? and > in the appropriate places as well). Went to http://localhost/mystuff/phpinfo.php and was unable to display anything. Appears that php is not built in to this tomcat build on the vm. I found this website hopefully it will help me compile tomcat with php (if i understand the instructions on the site correctly). http://wiki.apache.org/tomcat/UsingPhp Either that or I just may install a standard apache / php instance, unfortunately that would have to run on a different port, but I have never done anything like the steps specified in the above mentioned web page so I guess I have to pick and choose my battle :). Ya know is it worth trying to follow the steps to compile tomcat and php so that i can do http://localhost/phpmyadmin/, or is it easy enough to do something somewhat familiar with only one small hitch, having to do something like http://localhost:81/phpmyadmin/. We will see I suppose :). Thanks, |
|
|
Ok so I did end up deciding to go the route of installing a new Apache HTTPD instance on the server listening on Port 81. So officially http://localhost:81/phpmyadmin/ works at this point in time. Since I had the Ubuntu Desktop installed on the VMbox i just used FireFox and gEdit for most of the stuff. So using firefix I download: I extracted them to my /home/bitnami/ folder Opened gEdit and opened /opt/bitnami/apache2/httpd.conf Opened the Ubuntu software center Switched back to the terminal LoadModule php5_module modules/libphp5.so and: <FilesMatch \.php$> Saved that file as well Opened gedit again Using the file explorer in ubuntu i create /opt/bitnami/apache2/htdocs/phpmyadmin/ In firefox went to: Changed url to http://localhost:81/phpmyadmin/index.php And that seemed to sign in, and I can certainly see my “bitnami_liferay” database there. |
|
|
Hi, Thanks for posting your solution. You are right, we did not include phpMyAdmin for Java based stacks. An easy solution for this you can install a BitNami LAMP Stack in the machine and use a different port (81 for instance). Then you only have to configure phpMyAdmin to access to the Liferay database instead of the LAMP database. |
|
|
Thanks beltran. Since you mentioned it I tried this solution as well. During the installation I specified the apache port as 82 and the mysql as 3307, and /opt/bitnami/lampstack-1.2-3/ as the installation path. After installation the http://127.0.0.1:82/phpmyadmin/ site connected to the newly created 3307 database. In order to get to the liferay database I had to edit the /opt/bitnami/lampstack-1.2-3/php/etc/php.ini file to connect to 3306 and also specified the socket as /opt/bitnami/mysql/tmp/mysql.sock (the sock file liferay uses). Saved the file and restarted the newly installed apache (/opt/bitnami/lampstack-1.2-3/apache2/bin/apachectl restart After that I went back to http://127.0.0.1:82/phpmyadmin/ and sure enough the liferay database is there as well. Seems that sock file is very important for this connection, so thank you very much for this information. Thanks, |
|
|
Right, you should specify the socket location for MySQL database. I’m glad to hear you tried my solution :) |

