Docs

Using Local.Den

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

Home

Three rows: Apache, your database server and PHP. Each shows its version and whether it is running. Apache and the database have a switch. PHP has none, because it runs inside Apache.

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

Closing the window does not stop the servers. Local.Den 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

In Settings press Extra sites. In the folder that opens, make a file such as myproject.conf:

conf\sites\myproject.conf
<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. The site is now at http://myproject.localhost. Any name ending in .localhost works without more setup. If your web port is not 80, use your port in the first line.

Testing on your phone

In Settings, switch on Let other devices on my network open my sites. On a phone on the same Wi-Fi, open http:// followed by your computer's address (in a terminal, ipconfig shows it as "IPv4 Address"). Windows may ask to allow Apache through the firewall: allow it for private networks. The database and its manager stay closed to other devices.

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 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, Local.Den says which program has it.
  • Database server, manager and password. See Databases.
  • Look: Auto (follows Windows), Light or Dark.
  • Start the servers when Local.Den opens and Open Local.Den 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. Local.Den never changes these after making them. Restart the server after editing.