Symfony 5.2 and Apache 2.4 Sat, Jan 2. 2021
Certainly the most convenient way to develop a Symfony 5.x app is to use the symfony server. Eventually however, you may have to deploy the application. For a while use of nginx with php-fpm was the flavor of the month, but there are now simple ways of still using php-fpm with apache and achieving comparable performance to nginx.
For example a vhost setting like this one is possible:
<VirtualHost *:80>
SetEnv ENVIRONMENT "dev"
<FilesMatch \.php$>
SetHandler proxy:fcgi://php:9000
# for Unix sockets, Apache 2.4.10 or higher
</FilesMatch>
# Proxy .php requests to port 9000 of the php-fpm container
DocumentRoot /usr/local/apache2/cms/public
ServerName cms.mydev.local
ServerAdmin admin@mydev.local
<Directory /usr/local/apache2/cms/public>
DirectoryIndex index.php index.html
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Send apache logs to stdout and stderr
CustomLog /proc/self/fd/1 common
ErrorLog /proc/self/fd/2
</VirtualHost>
For example a vhost setting like this one is possible:
<VirtualHost *:80>
SetEnv ENVIRONMENT "dev"
<FilesMatch \.php$>
SetHandler proxy:fcgi://php:9000
# for Unix sockets, Apache 2.4.10 or higher
</FilesMatch>
# Proxy .php requests to port 9000 of the php-fpm container
DocumentRoot /usr/local/apache2/cms/public
ServerName cms.mydev.local
ServerAdmin admin@mydev.local
<Directory /usr/local/apache2/cms/public>
DirectoryIndex index.php index.html
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Send apache logs to stdout and stderr
CustomLog /proc/self/fd/1 common
ErrorLog /proc/self/fd/2
</VirtualHost>
Symfony 5: The Fast Track book and installing a local PHP version that works! Tue, Jan 21. 2020

As a Macbook/OSX user, his recommended environment includes a current locally installed version of PHP with a number of php extension libraries. You also need installation of the php standard composer tool, as well as docker. As I have a Macbook running OSX Mojave, I had to take a number of steps to be able to get started following the book and getting a working installation of the guestbook project using the book's recipe. Here's what I did:
Continue reading "Symfony 5: The Fast Track book and installing a local PHP version that works!" »
Composer install of Private Bitbucket VCS "aka" 'Invalid OAuth consumer provided' Thu, Apr 5. 2018
So you have a private Bitbucket Repo and you want to utilize it in your project composer.json. You may find that when you run the composer install you get an error pulling your private Bitbucket repo with messages about Oauth failure that may include "Invalid OAuth consumer provided"
Continue reading "Composer install of Private Bitbucket VCS "aka" 'Invalid OAuth consumer provided'" »
Configure the Atom live server to use Chrome Fri, Sep 15. 2017

Atom is aimed at the same niche often filled by Sublime Text, Vim and Notepad++, namely to provide a small self contained code editor able to work on multiple files at a time, and with available plugins that provide programming features like color syntax highlighting, smart indentation and robust search and replace.
Continue reading "Configure the Atom live server to use Chrome" »
Pull an EC2 console log using the AWS CLI api and jq Mon, Aug 14. 2017
AWS provides a REST Api to everything they offer, and returns the results in Json format. If you have a server in a private network in a VPC, you might want to get the logs to see what happened at boot time, and the aws cli gives you a simple way of doing that:
CODE:
aws ec2 get-console-output --instance-id {i-xxxxxxxx}
Continue reading "Pull an EC2 console log using the AWS CLI api and jq" »
Howto serve a markdown document Wed, Aug 2. 2017
Allmark is a simple self contained Markdown html renderer and server from developer Andreas Koch, that is written in Go.
You could certainly install Allmark locally, but there are numerous editors or standalone operating system specific markdown parsers you could use.
But what if you have some markdown documentation on a server, and need a quick and easy way to access that documentation? You can always just look at the raw markdown using vim, but what fun is that?
Allmark is a full markdown server, but installing a server just to read a couple of markdown documents is something very few people would want to do. If however, your server has docker installed, you can be reading your documentation in all its rendered glory in a matter of a few seconds. Here is how:
You could certainly install Allmark locally, but there are numerous editors or standalone operating system specific markdown parsers you could use.
But what if you have some markdown documentation on a server, and need a quick and easy way to access that documentation? You can always just look at the raw markdown using vim, but what fun is that?
Allmark is a full markdown server, but installing a server just to read a couple of markdown documents is something very few people would want to do. If however, your server has docker installed, you can be reading your documentation in all its rendered glory in a matter of a few seconds. Here is how:
« previous page
(Page 1 of 20, totaling 115 entries)
next page »