Ruby 1.9.2 + Rails 3.0.3 + postgresql + windows vista - postgresql

I would like to install Ruby1.9.2/Rails3.0.3 on my Windows Vista machine with PostgreSQL 9.0 as my database.
I have seen many different instructions on the web as to what works and what does not work.
Can anybody tell me which gem(s) I must install to get Ruby1.9.2/Rails 3.0.3 to drive PostgreSQL 9.0 on Windows Vista?
I appreciate any help you can give me.

I made a how-to for exactly this topic on:
http://netpie.wordpress.com/2011/03/17/setting-up-rails-3-with-postgresql-on-windows/
Please let me know if it worked for you and tell me where you had problems so that I can improve this how-to.
Best regards

Here you can get the Ruby 1.9.2 installer
http://rubyforge.org/frs/?group_id=167
Just click on it and it does all the work, after that go for Rails
Rails is easy, just download and follow the site instructions
http://rubyonrails.org/
About PostGre, you are on your own because I never used it...
But if you follow the instructions on the Rails web site you should be fine, they point the right ways to connect to several DBs

Related

How to install PgBouncer on Windows 7 (x64)

I am attempting to install PgBouncer on my computer with no success. In the installation page, im told that PgBouncer has two dependencies GNU Make 3.81+ and libevent 2.0. Never having used or heard of these two software before, Im completely lost.
I have read a little on both but have yet to find or fully understand what they actually do and how they will help me set up PgBouncer. From what I've read, PgBouncer does not come compiled for windows and I need the other two to compile it. I have searched for tutorials online but it seems that im falling into a black hole of misunderstanding.
Im looking for a simple explanation on how to install PgBouncer or how these software work with one another. Thanks.
If anyone now searches the binaries because http://winpg.jp/~saito/pgbouncer is offline now, check out my page under https://sepppenner.github.io/PgBouncerWinBinaries/. I have all the binaries from the Saito page but didn't yet succeed to build the project on my own. If anyone has ideas, don't hesitate to contact me here or on Github :)
EDIT: I'm now able to build pgbouncer for windows just having some issues with the pandoc thing (Follow https://github.com/pgbouncer/pgbouncer/issues/442). I will provide binaries soon. The instructions are already online under the page listed above :)
Im looking for a simple explanation on how to install PgBouncer
A little late, but if you use the EDB installer for PostgreSQL, as linked on postgresql.org (https://www.postgresql.org/download/windows/), you can install Stack Builder. From inside Stack Builder, PgBouncer can be installed (EDB build).
Unfortunately, it's not the latest version. Now, PgBouncer 1.17.0 is available and Stack Builder provides 1.16.1.
Personally, I don't understand why the PgBouncer project doesn't just offer a Windows build. So everybody would be able to get the latest release.
I have not messed with pgbouncer in years but have had multiple comments on what I did to solve my problem.
In the link bellow is the pgbouncer build I last used on my project. From what I remember, all you would need to do is replace the users in the config/user.txt with yours and go into config/pgbouncer.ini and change the configuration to work with your set up. To start it, just run the run.bat file or pgbouncer.exe config/pgbouncer.iniin the cmd prompt. You want to download everything in the folder.
https://drive.google.com/open?id=1f8MjdQCq-ryQBiJ85d4hABASFfR_6fA2

Install YII2 on Centos 7

I read that it was impossible to install yii2 on a standard hosting platform (redhat, centos...) without deleting the AssetManager.
And install is lock with it. Access refused, permission denied.... Despite the rights 777 on the assets folder.
And in default way, hack code, disable control like (is_writable) to allow continued the install process to congratulation, but without css ....
But I can't modify all the code , to use it?
They're a lot of issue about assetmanager.
I tried yii1 few years ago, and it was wonderful framework... But everything is permitted under windows. Someone tried to install it under redhat, fedora, Centos.
There is a specific configuration ... Or yii2 not builted and designed for theses environments ?
Because i found tuto about laravel 5.1, Zend 2 since 2013... But nothing about Yii2, and only one... about Yii1... on this hosting OS.
Yii2 is ready for professionnel standard hosting environnement or is just for hobbist with Wamp under Windows ? (Online tuto is in majority on this OS, with Wamp...).
And maybe for that, it's work fine... like i test under windows
Thank you for the links. I had read
Finally I found the answer, which is never explained in the tutorial above (because often disabled and the module is not present in Ubuntu or Debian)
It's SELinux security. To install Yii2 there are the following commands:
semanage fcontext -a -t httpd_sys_rw_content_t 'each folder writable'
setsebool -P httpd_unified 1
Without this open rignt, you can't install Yii2
All what Yii 2.0 requires is a Web server supporting PHP 5.4 or above.
( currently not PHP 7 due to reserved word conflict that will be solved in future releases )
And yes 5 stables versions ready for production has been released, currently Yii 2.0.5
Here is a quick example about how to install Yii2 with CentOS6 which has nothing different from what is already described in the official docs.
If you know any CentOS related issue please post them and we will discuss answers, because sincerely i just did few searches and didn't found any besides few wrong apache or nginx configurations or missing packages like this CentoOS7 case. Otherwise if you need a pre-configured & working VM with Yii2 and CentOS 7, then you may check this vagrant repo.

Xen on Centos 7

I am a newbie to Xen and want to download it on my machine which currently has CentOS7. I have been researching and experimenting for a couple of days but can't seem to find a straightforward answer on how to install a fully functioning Xen on CentOS7. I tried using the workaround at http://www.lairdscomputer.com/Blog/tabid/62/EntryId/74/Installing-Xen-4-on-Centos-7.aspx, but it seems that some of the packages it uses might be outdated.
Is it even possible to install Xen on CentOS7, even if it is missing some parts to it? Would it be better just to go back to CentOS6.x so that I can install Xen4CentOS?
Thanks in advance! Any advice is appreciated!
Afaik RedHat therefore CentOS is not supporting Xen whoever in fact it is possible.
I am using xen4centos on my Centos7 server, it was installed along with official article from wiki:
https://wiki.centos.org/HowTos/Xen/Xen4QuickStart
It it is not, please provide some logs, errors etc

Update Centos Machine 5.10 to 6.5

I want to update my dedicate Centos Machine, which installed WHM. I want to know that if I do update the OS, there any changes on WHM. Like any default Setting changed? or any other Problems.
So please suggest me that right way of update Centos without any problems, because many websites hosted on this Server.
Thanks
Pankaj Gupta
Pankaj, because there are many changes in a major CentOS release you cannot upgrade from 5.10 to 6.5. You need to put together a migration plan. First install CentOS 6.5 on another server, configure httpd and php/passenger/whichever and test that each hosted website is working properly. Then you can reinstall and reconfigure everything.
Give CentOS 7 a try.
Upgrading is not possible and even if you try around doing some search you will end up wasting lot of time by fixing the dependency related errors etc. So its always better and safe to do a fresh install of CentOS 6.5 and then migrate the sites.

Installing Zend Optimizer on MAMP 2.1

I just upgraded to MAMP Pro 2 and have noticed that they are no longer supporting Zend Optimizer due to Apache 64bit or something along those lines.
Anyways, I have a website that needs it and I have no idea of how to go about installing Zend Optimizer on MAMP 2 and just did a tutorial which made Apache break and stop working after I ran some command in terminal so I had to reinstall my MAMP set up.
I am currently running PHP 5.2.17.
Any help would be great :-)
Since your application also requires an old version of PHP, the easiest solution would be to install the previous version of MAMP 1.9 which includes PHP 5.2.17 and Zend Optimizer 3.3.9.
The older version of MAMP is 32-bit only but should still run fine under Lion/Mountain Lion (or at least I'm not aware of any obvious issues aside from not including 64-bit in the app bundle).
It's working! And also on the OS X Mountain Lion!
Requires PHP 5.2.17
Zend Optimizer for Mac OS X
Here step-to-step I helped myself with installing Zend Guard Loader. I also do the same processes for Zend Optimizer. I hope you find it helpful.
Solutions I've written