Skip to content

Mastering PHP and Laravel

Never stop learning!

Menu

  • LastPass – Are your passwords secure?

Mac Terminal / Linux

Setting fully qualified domain name for Apache server

Edit /etc/apache2/httpd.conf Search, using ctrl-w, for ServerName Uncomment this line: #ServerName www.example.com:80 and then change the last part to “localhost” ServerName localhost  

Kenny November 6, 2014November 6, 2014 Mac Terminal / Linux No Comments Read more

Stopped jobs in linux

When using CTRL-Z to “exit” a program, you really are not exiting it. You are suspending it. (Multitasking, remember?) To see the list of stopped jobs, type jobs To bring the last stopped job up again, and resume its execution, type fg

Kenny September 9, 2014September 9, 2014 Mac Terminal / Linux No Comments Read more

Proper way to set file permissions

For each parent directory leading to your web root (e.g. ~/my, ~/my/web, ~/my/web/root): chmod go-rwx DIR (nobody other than owner can access content) chmod go+x DIR (to allow “users” including _www to “enter” the dir) sudo chgrp -R _www ~/my/web/root (all web content is now group

Kenny June 16, 2013June 16, 2013 Mac Terminal / Linux No Comments Read more

Adding vhosts in Apache

On a native install on Mac, to add a vhost: If you haven’t done this one time step, do this first to enable vhosts: sudo nano /etc/apache2/httpd.conf Then uncomment the line that includes the vhost config file: # Virtual hosts

Kenny May 24, 2013May 6, 2015 Mac Terminal / Linux No Comments Read more

Restarting Apache on Mac OS X

The command to restart apache on Mac OS X is: sudo apachectl -k restart  

Kenny May 21, 2013July 27, 2018 Mac Terminal / Linux No Comments Read more

Archives

Categories

  • iPhone (2)
  • Learning (42)
  • Linux (4)
    • Debian (1)
  • Mac Terminal / Linux (5)
  • Other Stuff (1)
  • Programming (66)
    • .NET (1)
      • C# (1)
    • Java (1)
    • Javascript (6)
      • AngularJS (1)
      • Node.js (2)
    • MySQL (2)
    • Objective C (1)
    • PHP (45)
      • Community (5)
      • Laravel (9)
        • Eloquent (3)
    • SQL (7)
    • Tools (2)
      • PHP Storm (1)
  • Slim Framework (1)
  • Uncategorized (7)
  • WordPress (3)
Copyright © 2022 Mastering PHP and Laravel. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.