Skip to content

Using Hoest

Four pages: Home, Logs, Updates and Settings. Most days you only need the first.

Home

Four rows: Apache, your database server, PHP and Mail. Each shows its version and whether it is running. Apache, the database and Mail have a switch. PHP has none, because it runs inside Apache. Mail is off until you want it: see Mail.

  • Start / Stop: both switches at once.
  • Localhost: your sites in the browser.
  • Databases: opens Adminer or phpMyAdmin, already signed in.
  • Folder: opens your websites folder.

Under the buttons, Sites lists the sites that have their own address, with an Add button for a new one.

Closing the window does not stop the servers. Hoest stays next to the clock: click its icon to open it again, or right click it and choose Quit to stop everything.

Your websites

Every folder inside your websites folder is a site. A folder named shop opens at http://localhost/shop/. A file named index.php or index.html is shown first. .htaccess files and rewrite rules work.

To use another folder, go to Settings, Websites folder, Change.

A site with its own address

For a site that lives somewhere else on your computer, or that needs its own address (Laravel, WordPress in its own folder and so on):

  1. On the Home page, under Sites, press Add.
  2. Press Choose and pick the folder that holds the site's index.php or index.html. For Laravel and the like, that is its public folder.
  3. Give it a name, such as my-shop: small letters, numbers and dashes.
  4. Press Add.
The Add a site form: a folder, a name, and the address the site will getThe Add a site form: a folder, a name, and the address the site will get

The site is now at http://my-shop.localhost. Apache restarts by itself, and there is no file to edit. Each site in the list has three small buttons: open it in the browser, open its folder, and remove it. Removing only takes the address away. The folder and its files stay.

If your web port is not 80, the address ends with it, like http://my-shop.localhost:8080. The form shows the full address before you add the site.

The same, by hand

For anything the form does not cover, you can still write the Apache lines yourself. In Settings press Extra sites. In the folder that opens, make a file such as myproject.conf (it lands in conf\sites):

<VirtualHost *:80>
  ServerName myproject.localhost
  DocumentRoot "C:/path/to/myproject/public"
  <Directory "C:/path/to/myproject/public">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
  </Directory>
</VirtualHost>

Switch Apache off and on. If your web port is not 80, use your port in the first line.

Testing on your phone

Other devices on your network can open your sites: a phone or a tablet on the same Wi-Fi, or another computer. This is switched on from the start. Windows only needs your OK once.

  1. On the Home page, a blue note asks Open your sites on your phone too? Press Allow.
  2. Windows asks "Do you want to allow this app to make changes?" for Windows PowerShell, the Windows tool that changes the firewall. Choose Yes.
  3. Open Settings. Under Let other devices on my network open my sites stands the address for the other device, like http://192.168.1.20/. Copy copies it.
  4. Type that address on the phone. A site in a folder of your websites folder is at the address plus the folder name, like http://192.168.1.20/my-site/.
The Home page with the blue note that asks to open your sites on your phone, with Allow and NoThe Home page with the blue note that asks to open your sites on your phone, with Allow and No Settings with the switch for other devices, the address for the phone and a Copy buttonSettings with the switch for other devices, the address for the phone and a Copy button

Good to know:

  • Only your own network gets in. Hoest adds one rule to Windows Firewall, named "Hoest web server", for the web port and for devices on the same network only. Nothing opens to the internet.
  • The database stays closed. So do Adminer or phpMyAdmin and the mail inbox. They only open on this computer.
  • Sites with their own address stay on this computer. A phone does not know a name like my-shop.localhost. To test a site on the phone, keep it in the websites folder.
  • The address can change, for example on another Wi-Fi. Settings always shows the current one.
  • Do not want it? Press No on the note, or use the switch in Settings. Until you press Allow, your sites only answer on this computer anyway.
  • After changing the web port, Windows asks for your OK once more, because the rule belongs to the port.

Logs

Messages from Apache, PHP and the database server in one list, newest at the bottom. New lines show up by themselves.

  • The tabs show everything, or one server at a time.
  • Errors only hides the everyday lines.
  • Search the logs finds a word, a file name or an address.
  • Clear view empties the list on screen. The log files are not touched.
  • Log files opens the folder with the files themselves.
The Logs page with messages from Apache, PHP and MariaDBThe Logs page with messages from Apache, PHP and MariaDB

Settings

  • Web port and database port. The usual ones are 80 and 3306. Change them only when another program already uses them. If a port is taken, Hoest says which program has it.
  • Let other devices on my network open my sites. On from the start, with the address for your phone under it. See Testing on your phone.
  • PHP. Four settings as boxes, see below.
  • Catch the emails my sites send. See Mail.
  • Database server, manager and password. See Databases.
  • Backups. Save all your databases, one copy a day by itself, and Restore. See Backups.
  • Look: Auto (follows Windows), Light or Dark.
  • Start the servers when Hoest opens and Open Hoest when Windows starts: with both on, your sites are simply there after a restart.
  • Use this PHP and database in the terminal: adds the php, mysql and mysqldump commands. Open a new terminal afterwards.
  • Files for fine tuning: php.ini, the database settings file and your own Apache lines, for everything the boxes do not cover. Updates never change these files. Restart the server after editing.
  • Repair: checks the programs, settings files, ports and database, and mends what it can. See Help.
  • At the bottom: the version you have, the folder Hoest lives in, and a button that opens this website.

PHP settings

The settings most sites ask for are boxes in Settings, under PHP. Type the new number and press Save. Apache restarts by itself.

The PHP boxes in Settings: memory, upload, run time, and a switch for showing errorsThe PHP boxes in Settings: memory, upload, run time, and a switch for showing errors
BoxWhat it doesIn php.ini
Memory (MB)How much memory one page may use. Raise it when a site says "Allowed memory size exhausted".memory_limit
Upload (MB)The biggest file a site can receive.upload_max_filesize, post_max_size
Run time (seconds)How long one page may take. 0 means no limit.max_execution_time
Show PHP errors on the pageHandy while you build. Switched off, errors only go to the Logs page, like on a live site.display_errors

The boxes and php.ini are the same thing: saving changes only those lines in the file, and a change you make in the file shows up in the boxes. If Apache does not start with the new values, Hoest puts the old ones back.

Previous
Install