Skip to content

Mastering PHP and Laravel

Never stop learning!

Menu

  • Home
  • Blog Posts

Mac Terminal / Linux

How to quickly toggle xdebug

When running unit tests, xdebug will slow things down quite a bit. Most of the time we run tests we don’t need xdebug because we are not doing code coverage, or actually debugging. Here is how I quickly toggle xdebug

Kenny January 12, 2023January 21, 2023 Blog Posts, Mac Terminal / Linux, Programming No Comments Read more

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, 2014January 21, 2023 Blog Posts, 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, 2014January 21, 2023 Blog Posts, 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, 2013January 21, 2023 Blog Posts, 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, 2013January 21, 2023 Blog Posts, 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, 2013January 21, 2023 Blog Posts, Mac Terminal / Linux No Comments Read more

Archives

Categories

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