Web Developer Lexington KY // Most recent post Blog

SSL from Letsencrypt.org for EC2

SSL from Letsencrypt.org for EC2

Failed cuz ‘no module named cryptography’ tried running ‘sudo /usr/local/bin/certbot-auto –apache certonly’ tried running ‘/opt/letsencrypt/letsencrypt-auto certonly –debug –webroot -w /var/www/html/bloopin/.well-known -d bloop.in -d www.bloop.in –config /etc/letsencrypt/config.ini –agree-tos ‘ same thing Resources https://letsencrypt.org/getting-started/ https://certbot.eff.org/lets-encrypt/pip-apache =...

Laravel Ajax Button

Laravel Ajax Button

in blade <button class=”btn-xs btn-info grant_access” data-options='{“user_id”:”{{ $user->id }}”, “action”: “remove”, “role_id” : {{ $role_id }}, “_token”: “{{ Session::token() }}” }’>Has Access<h;/button> <script> $(‘.grant_access’).click(function(){ var options = $(this).data( “options”); var sel = $(this); //console.log(options);...

Amazon Linux additional SSH users

Amazon Linux additional SSH users

https://blog.e-zest.com/how-to-add-ssh-users-in-amazon-linux/ https://stackoverflow.com/questions/24409095/create-an-ec2-instance-with-multiple-key-pairs http://www.beginninglinux.com/home/server-administration/openssh-keys-certificates-authentication-pem-pub-crt

Laravel Logs generated by crontab permission denied

Laravel Logs generated by crontab permission denied

I had a problem with logs being generated by crontab not being accessible by my server user.  The reason was that the crontab was being run by the ec2-user and the apache user is...

Lararavel on AWS Linux Storage permissions

Lararavel on AWS Linux Storage permissions

Running into issues with Storage logs being denied. Tried this sudo chown -R $USER:apache storage Explained here https://stackoverflow.com/questions/23411520/how-to-fix-error-laravel-log-could-not-be-opened

Adding JS libraries in Laravel

Adding JS libraries in Laravel

Adding a library in Laravel To add with npm the library needs to be included and compiled with Webpack   Here is an example with Moment.js get the package (this will put in a...

Apache Performance

Apache Performance

Ulimit https://www.webperformance.com/load-testing-tools/blog/2012/12/setting-apache2-ulimit-for-maximum-prefork-performance/ Apache Maxclients https://abdussamad.com/archives/535-Apache-MaxClients.html Apache Maxclients param https://2bits.com/articles/tuning-the-apache-maxclients-parameter.html Apache Performance Tuning https://httpd.apache.org/docs/2.4/misc/perf-tuning.html Apache MPM Prefork https://httpd.apache.org/docs/2.4/mod/prefork.html Info on Options* HTTP/1.0 https://serverfault.com/questions/543355/options-http-1-0-in-access-log Page Speed Optimization https://varvy.com/pagespeed/ I have added a Keep alive directive in 3dd-server.conf – monitor if that is causing...

Blocking Access to a Url route in Apache

Blocking Access to a Url route in Apache

This serves a 403 forbidden for any route with blog. RewriteRule ^(.*/)?blog(.*/)?/ – [F,L] Great post talking about restricting files and paths in Apache http://www.ducea.com/2006/08/11/apache-tips-tricks-deny-access-to-some-folders/  

Limit Server Options Requests

Limit Server Options Requests

in httpd.conf <IfModule hmod_allowmethods> AllowMethods GET POST OPTIONS </IfModule> In each VirtualHost directive ## Disallow OPTIONS METHOD RewriteEngine On RewriteCond %{REQUEST_METHOD} !(GET|POST) RewriteRule .* – [F] This seems to stop the majority of the...