This forum is no longer active. Please post your questions to our new community site

Why not include phpmyadmin in production version?

Subscribe to Why not include phpmyadmin in production version? 3 post(s), 2 voice(s)

 
Avatar MattZ 2 post(s)

Hi,
If I want to develop and publish my app in the same computer, what can i do?

Thanks,
Matt

 
Avatar Manuel 71 post(s)

Hi MattZ,

Right now, RubyStack does not ships phpMyAdmin in production version to keep it as secured as possible. As long as several RubyStacks can be installed in your system without creating any conflict, you can simply install one RubyStack to develop your application and have the other one for production purposes.

The other choice is to install only one RubyStack in development mode to get phpMyAdmin and then configure Apache and a Mogrel cluster get the production environment too. It is not as complicated as it sounds, but requires some skills:

  • To configure Apache you must create the file /home/your-name/rubystack-1.1-0/apache/conf/httpd.conf with the following content. Keep in mind that some parts of this file, like paths and the number of mongrel cluster, will need to be modified to fit your installation.



<VirtualHost *:8080>
ServerAdmin info@example.com
ServerName www.example.com
ServerAlias example.com
ErrorLog "/home/your-name/rubystack-1.1-0/apache2/logs/rubystack_apache_error_log"
CustomLog "/home/your-name/rubystack-1.1-0/apache2/logs/rubystack_apache_access_log" combined
<DirectoryMatch "^/.*/\.svn/">
ErrorDocument 403 /404.html
Order allow,deny
Deny from all
Satisfy All
</DirectoryMatch>
RewriteEngine On
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://rubystackcluster%{REQUEST_URI} [P,QSA,L]
</VirtualHost>
<Proxy balancer://rubystackcluster>
BalancerMember http://127.0.0.1:3001
BalancerMember http://127.0.0.1:3002
BalancerMember http://127.0.0.1:3003
BalancerMember http://127.0.0.1:3004
</Proxy>

  • To create the Mongrel cluster you can read the directions to create a Mongrel cluster in the Quick Start Guide, page 12.

good luck.

 
Avatar MattZ 2 post(s)

Great! Thanks!