title: How to automatically start zend server after boot on my mac
body: <p>Ok I am Noob I don't know much about servers, commands etc. I am reading a book and I installed zend server on my mac using the .dmg file after that I have set up zend account. Then, I did few edits as suggested by the book: </p>
  
  <pre><code>sudo nano /usr/local/zend/bin/zendctl.sh
  </code></pre>
  
  <p>After entering your password you will now be in the Nano text editor, so move the cursor down a few lines using the down cursor key, and where you see the line that reads MySQL_EN="false", change the word false to true.
  Now scroll down some more until you find these two lines:</p>
  
  <pre><code>     case $1 in
             "start")
  </code></pre>
  
  <p>Below that, you’ll see an indented line that reads: </p>
  
  <pre><code>     $0 start-apache %
  </code></pre>
  
  <p>Just after this line, insert a new one that reads as follows:</p>
  
  <pre><code>     $0 start-MySQL %
  </code></pre>
  
  <p>This will allow MySQL to start, but now you need to scroll down a little more until you get to the section that starts with:</p>
  
  <pre><code>     "stop"
  </code></pre>
  
  <p>The same way I added the stop commands. But after I reboot my computer localhost:10088 doesn't work. The browser shows and error that: can't find the server. Everytime I have to type in the command in terminal to start zendserver: </p>
  
  <pre><code>     sudo /Library/StartupItems/ZendServer_init/zendctl.sh restart
  </code></pre>
  
  <p>to run the server back. I want to the server to start automatically after boot.</p>