How do I get certbot working on MAMP? - mamp

I use the free version of MAMP as my local server environment and I would like to run HTTPS pages locally for testing purposes. I have attempted to install certbot via the instructions on the certbot website for "Apache/macOS" and "None of the above/macOS" without much luck. Can anybody point me toward documentation on how to do this?
If somebody knows of a way to pass certbot the location of the apache directory that it should use, that could be helpful. Or maybe there's a better approach to getting a let's encrypt certificate working in MAMP that doesn't involve certbot?

For those who stumble on this post and might be curious, I was able to get SSL working on Mac OS Sierra 10.12.6 with the free version of MAMP 4.2.1 by following the procedures outlined in Robert's answer here:
Configuring MAMP for SSL

Related

Remote development with VS Code

I'm running Alpine 3.12 with the latest 64-bit kernel. Installed VS extension for remote server ssh connections and by trying to connect, I see that the process has downloaded a folder ".vscode-server" on my remote server, which means that the connection happened, but after loading for some time I receive this message "The remote host may not meet VS Code Server's prerequisites for glibc and libstdc++". I did some googling on this, and I see that a few people were having trouble as they didn't have enough space on their server storage to install some libraries, but this is not the case for me. The extension itself provides me with this link https://code.visualstudio.com/docs/remote/linux#_remote-host-container-wsl-linux-prerequisites explaining that there could be problems for Alpine based systems, but it should work anyways, but I can't quite find the problem. Maybe someone has faced this issue and can guide me to the solution?

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.

Sphinx on server with Cpanel?

Had a quick question about Sphinx Search installation. Do I need to install it differently for a server with cpanel on it? Or would the normal linux installation instructions for Sphinx work just fine? I ask because I dont have a test server with cpanel, so it will be installed directly on the live server.
Pretty sure there are no special considerations. cpanal wouldnt be used to manage sphinx, but it would work just fine. You will probably need to check the firewall, to make sure applications could contact the sphinx port.
(I've not needed to install sphinx on a cpanel server, but have used cpanel a bit. Have used sphinx with plesk - and nothing special was required there either)

Ruby 1.9.2 + Rails 3.0.3 + postgresql + windows vista

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