Admin panel

Web server and PHP

What this does: these tools control the programs that show your customers' websites to visitors. The web server is the program that answers when someone opens a website; on freePanel it is called Apache. PHP is the language most websites, such as WordPress, are written in; the server needs it installed to run them.

When you need it: after you install freePanel, the web server and one PHP version already work. Come here when a customer needs another PHP version or an extra PHP feature, when a busy site needs more room, or when you want to change how the whole server answers visitors.

Words used on this page:

Web server settings

What this does: sets eight values Apache uses for every site on the server: how much it tells visitors about itself, how long it waits, and how many visitors it answers at once.

When you need it: rarely. The values freePanel starts with are safe. Change one when a site's long-running page is cut off with an error, or when the server must answer more visitors at the same time.

Where: Web server and PHP > Web server settings

To change a web server value

  1. Open Web server and PHP > Web server settings. You see a card called Apache values, with one box or list for each value. Under each one, the page says what it does and what its default is.
  2. Find the value you want to change, for example Request timeout.
  3. Type the new number, or pick On or Off. The page says the allowed range under the box, such as "From 10 to 600 seconds."
  4. Click Save changes at the bottom of the card.
  5. Wait a moment. You see Saved. Apache’s configuration was tested and Apache was reloaded. Sites keep running while this happens.
The Web server settings page, with the Apache values card listing the eight values and the Save changes button at the bottom

Each value carries a small label: Server default while it is untouched, Set by you once you have saved your own. To go back, click Use the server default next to a value you set. You then see "(name) is back to the server default."

Value on the pageWhat it means
What the server says about itselfHow much Apache tells each visitor about itself. Prod says only "Apache"; Major, Minor and Min add more and more of the version number; OS adds the operating system; Full adds the modules too. Keep Prod: the less a stranger knows, the better.
Footer on error pagesAdds the server's name and version under Apache's own error pages.
Answer TRACE requestsA kind of request no website needs. Keep it Off.
Request timeoutHow many seconds Apache waits for a request or a reply. It is also how long a site's PHP page may run before it is cut off.
Keep connections openLets a browser load several files over one connection.
Wait on an idle connectionHow many seconds an open connection waits for the next request.
Requests per connectionThe most requests one connection may carry.
Most requests at onceThe most visitors Apache answers at the same time, from 25 to 400 in steps of 25.

If something goes wrong

PHP versions

What this does: lists every PHP version this server can offer, shows how many sites and accounts use each one, installs a version that is missing, and chooses which version new sites get.

When you need it: when a customer's software needs a PHP version the server does not have yet, or when you want new sites to start on a newer version.

Where: Web server and PHP > PHP versions

To choose the PHP version new sites get

  1. Open Web server and PHP > PHP versions. At the top, the card Version for new sites says which version new sites get now, for example "New sites get PHP 8.3."
  2. In the list Version for new sites, choose a version. Only installed versions are listed.
  3. Click Use for new sites.
  4. You see New sites now get (version). Sites that already exist keep their version.
The PHP versions page: the Version for new sites card at the top, and the table of PHP versions with their status, sites and accounts

In the table, Sites and Accounts count who uses each version. Settings changed shows how many of the version's PHP settings you have changed (a dash means none). The New sites label marks the version new sites get. An installed version has a Settings button, which opens PHP settings for it; a version that is not installed has an Install button.

To install another PHP version

  1. On the same page, look at the table PHP versions on this server. Each row is one version. The Status column says Installed or Not installed.
  2. In the row of the version you want, click Install.
  3. You see "The install of (version) started." and then "Installing (version)." It can take several minutes. You can leave the page; the install carries on.
  4. When it ends you see "(version) is installed." The new version starts the first time a site uses it.

Sites keep the version they have. A customer moves a site to the new version from their own panel.

If something goes wrong

PHP settings

What this does: sets the starting values for every site on one PHP version: how much memory a page may use, how big an upload may be, how long a script may run, and how many workers a pool may start.

When you need it: when many customers ask for the same change, such as bigger uploads. A single customer can change most PHP values for their own site; this page sets what every site starts with.

Where: Web server and PHP > PHP settings

To change a PHP setting for every site on a version

  1. Open Web server and PHP > PHP settings.
  2. In the list Change the settings of, choose the PHP version, for example PHP 8.3. Each version keeps its own settings.
  3. The card Settings for *(version)* opens. It has two parts: PHP values (the same settings a customer can change for a site) and How the pool runs (settings only you can change).
  4. Type the new value in the box. Sizes need their unit: type 512M for 512 megabytes or 1G for one gigabyte.
  5. Click Save changes.
  6. You see Saved. The pools of (version) were written again and PHP was reloaded.
The PHP settings page for PHP 8.3, showing the PHP values such as Memory limit and Largest upload, and the How the pool runs part

Each setting carries a small label: Built-in while it is untouched, or a label saying you set it. To go back to the built-in value of one you set, click Use built-in next to it. You then see "(setting) is back to its built-in value for (version)."

If something goes wrong

PHP pool tuning

What this does: gives one account more or fewer PHP workers, and a higher or lower limit on the files each worker may hold open. This decides how many visitors that account's websites can serve at the same moment.

When you need it: when one busy account's sites are slow because all their workers are busy, or when one account takes so many workers that other accounts slow down. It does not limit how much processor time or memory each worker uses.

Where: Web server and PHP > PHP pool tuning

To change an account's workers

  1. Open Web server and PHP > PHP pool tuning. The card What this limits explains what the two numbers do.
  2. In Account, type the account's username, for example site1. The page suggests matching accounts as you type.
  3. Click Show its pools.
  4. The card PHP pools of *(name)* lists each PHP version the account's sites use, and what each runs with now, for example "5 workers at most, 1,024 files open per worker".
  5. In Workers at most, type a new whole number. Leave the box empty to use the default.
  6. Usually leave Files open per worker empty. It counts the files and network connections one worker may have open at once. Raise it only if the customer's site shows errors such as "too many open files", for example a site that talks to many other servers. Empty keeps the system's own limit.
  7. Click Save. You see Saved for (name). The same numbers apply to every PHP version this account uses. No other account changes.
The PHP pool tuning page with the What this limits card, site1 typed in the Account box, and the Show its pools button
The PHP pools of site1 card: PHP 8.3 and PHP 8.2 each run 5 workers at most, with the Workers at most and Files open per worker boxes and the Save button

To undo your change, click Put the defaults back. You see "The defaults are back for (name)."

If something goes wrong

PHP extensions

What this does: shows which extensions each PHP version loads, and installs the ones it is missing. An extension is an add-on that gives PHP an extra skill, such as talking to a PostgreSQL database or using the Redis cache.

When you need it: when a customer's software says a PHP extension is missing, for example "the pgsql extension is required".

Where: Web server and PHP > PHP extensions

To install a PHP extension

  1. Open Web server and PHP > PHP extensions.
  2. In Version, choose the PHP version the customer's site uses. An extension belongs to one version: every site on that version gets it.
  3. Click Show extensions.
  4. The table Extensions for *(version)* lists each extension the panel can add, with its plain name and its short name, such as "PostgreSQL databases" and pgsql. The Status column says Loaded, Installed, not loaded or Not installed.
  5. In the row of the extension, click Install.
  6. You see "The install of (name) for (version) has started." You can leave the page.
  7. When it ends you see Installed (name). and "The version was told to load it."
The PHP extensions page for PHP 8.3, listing extensions such as PostgreSQL databases and LDAP directories with their status and Install buttons

Further down, Everything (version) loads lists every extension this version uses now, including the ones it came with.

Installed, not loaded means the extension is on the server but the version has not started using it yet. A version that no site uses is not running; it loads the extension the next time a site uses it, so there is nothing to do.

If something goes wrong

Web server status

What this does: shows what Apache is doing right now: whether it runs, its version, how long it has run, how many workers it has, the memory it uses and the connections open to it.

When you need it: when sites feel slow or do not open, to see at a glance whether the web server is running and how busy it is.

Where: Web server and PHP > Web server status

To check the web server

  1. Open Web server and PHP > Web server status.
  2. The card Web server shows its state, such as "Running", and the figures below it.
  3. Look at Connections: it shows how many connections are open, closing or other.
  4. The table Connections by port splits them by port: 80 is plain web traffic (http) and 443 is secure traffic (https).
  5. Click Refresh to read the figures again. You see Updated.
The Web server status page showing Apache running, its version, workers, memory and the connections by port

What the other figures mean:

If something goes wrong

Web server modules

What this does: turns Apache's optional modules on or off. A module is a part of Apache that adds one feature, such as compressing pages or running old CGI scripts.

When you need it: to switch off features this server does not use, which makes Apache a little smaller and safer, or to switch one on that a customer needs, such as WebDAV.

Where: Web server and PHP > Web server modules

To turn a module on or off

  1. Open Web server and PHP > Web server modules.
  2. The card Optional modules lists modules you may switch. Each shows its plain name, its short name and what it does, for example "Compression", deflate_module, "Makes pages smaller on their way to the visitor".
  3. Tick a module to load it, or untick it to stop loading it.
  4. Click Save changes.
  5. You see Saved. Apache’s configuration was tested and Apache was reloaded. If turning one on also needed others, the page says "Also turned on, because they are needed: (names)."
The Web server modules page listing optional modules such as Compression, HTTP/2 and CGI scripts with their switches

The card Modules that stay as they are lists the modules freePanel and your customers' sites need. They cannot be turned off here.

If something goes wrong

nginx front

What this does: puts a second web server, nginx, in front of Apache. nginx then answers visitors first, handles the secure connection (https), and passes each request to Apache, which still runs every site and its PHP.

When you need it: when many visitors on slow connections tie up Apache, or when you want nginx to keep copies of pages so PHP runs less. Most small servers do not need it.

Where: Web server and PHP > nginx front

To put nginx in front of Apache

  1. Open Web server and PHP > nginx front. The card nginx in front of Apache shows Front: Off, and whether nginx is installed.
  2. Click Turn on.
  3. A question appears: "Turn the front on? Apache restarts onto its new ports and nginx starts, so sites are unreachable for a few seconds." Click Turn on again to confirm.
  4. Wait a few seconds. You see nginx is now in front of Apache.
The nginx front page with the Turn on button, the list of sites with Full and Passthrough modes, and the Caching card

Under each site, HTTPS by nginx means the site has a certificate, so nginx answers secure (https) visits for it; HTTP only means it has none yet. While the front is off, the nginx line says Stopped; that is normal.

To choose how nginx treats one site

  1. On the same page, find the site in the Sites card. Type part of its name in Find a site to narrow the list.
  2. Choose Full (right for most sites) or Passthrough (for sites that stream data or keep a live connection open to the browser, called a WebSocket, as chat pages do; only for sites you trust).
  3. Click Save modes. You see "Saved. nginx has been reloaded."

To turn caching on for an account

  1. In the Caching card, tick the accounts whose pages nginx may keep copies of.
  2. Click Save caching. Only visitors who send no cookie (a small file a site stores in the browser, for example to remember a login) and are not signed in get copies.

To turn the front off, click Turn off and confirm. Every file goes back as it was.

If something goes wrong

Varnish cache

What this does: puts Varnish, a cache, between the part of the server that handles the secure connection (https) and Apache. Varnish keeps copies of pages that every visitor gets alike and answers from them, so each site's PHP runs less.

When you need it: when busy sites serve the same pages to many visitors who are not signed in, such as a blog or a shop's catalogue. Sites whose visitors are mostly signed in gain little.

Where: Web server and PHP > Varnish cache

To turn the cache on

  1. Open Web server and PHP > Varnish cache. The card Varnish cache shows Cache: Off, whether Varnish is installed, and which way visitors will go through once it is on.
  2. Click Turn on.
  3. A question appears: "Turn the cache on? Varnish starts and the web server is reloaded onto it, so sites may not answer for a moment." Click Turn on again to confirm.
  4. Wait a few seconds. You see The cache is on.
The Varnish cache page with the cache on, the Turn off button, the Purge a site card with a Purge button for each site, and the What is kept card

To purge one site

  1. On the same page, find the site in the Purge a site card.
  2. Click Purge beside it. You see "The copies of site were dropped." The next visitor gets a fresh page.

To turn the cache off, click Turn off and confirm. Varnish stops, and every file the cache added is put aside under a dated name; the web server is set up exactly as it was before.

What is never kept

Signed-in visitors and anything sent with a cookie (a small file a site stores in the browser, for example to remember a login) or a password, forms, sign-in and admin pages such as /wp-admin and /wp-login.php, webmail, the panel, and any page that sets a cookie or says it is private. A site owner never needs to change anything; a site that wants a page never kept sends Cache-Control: private or no-store with it.

If something goes wrong

Web server includes

What this does: lets you add your own lines of Apache configuration (each line is a directive: one instruction to Apache, such as Header set X-Example yes) at three fixed places, send a copy of every site's visitor log to one more place, and choose which file Apache shows first when a visitor opens a folder.

When you need it: only if you know Apache's configuration language and need a setting freePanel has no page for, such as an extra header on every site. Beginners can skip this tool.

Where: Web server and PHP > Web server includes

To add your own configuration lines

  1. Open Web server and PHP > Web server includes. Read the card How includes work first.
  2. Choose the place for your lines:
    • Before the sites: read before every site; a site's own settings can change it.
    • After the sites: read after every site; the only place that may hold sites of your own.
    • Last word: read last of all, for settings of the server as a whole.
  3. In that card, type your lines in Configuration lines, one directive a line.
  4. In Your password, type your own password. The web server reads these lines as root, so it is asked again.
  5. Click Check and save.
  6. If Apache accepts them, you see Saved. The web server checked it and uses it now. If it refuses them, nothing changes and Apache's own message is shown.
The Web server includes page with the three places, Before the sites, After the sites and Last word, each with a Configuration lines box

The version you replaced is kept. Click Put the earlier version back to restore it.

To change the order of index files

  1. Scroll to the card Index file order. It lists the file names Apache looks for when a visitor opens a folder, first tried first.
  2. To add one, type it in Add a file name, such as default.htm, and click Add.
  3. Move or remove names in the list, then click Save order.

To send the access log to one more place

  1. Scroll to the card Piped access log.
  2. In Send to, choose Nowhere else, The system log, or A file a day.
  3. For the system log, pick the Facility (a label the system log files the lines under; if you are not sure, keep the one shown). For a file a day, type how many Days kept.
  4. Click Save piped log. You see "Saved. The web server was checked and reloaded."

If something goes wrong

App installer

What this does: lets your customers install WordPress on their websites from their own panel with a few clicks. Here you switch the installer on, choose which apps are on offer, and see which release the server keeps.

When you need it: when you want customers to set up WordPress themselves without uploading files or making a database by hand.

Where: Web server and PHP > App installer

To let customers install apps

  1. Open Web server and PHP > App installer. The Status card says Off at first.
  2. In the Settings card, tick Let customers install apps.
  3. Read the paragraph under it: while the installer is on, freePanel downloads each app only from that app's own site (for WordPress, wordpress.org) and checks every file against the app's published checksum.
  4. Click Save.
  5. The status changes to "On. Getting the current release…" and then On. Customers can install the release below. The table shows the Release on file and when it was Fetched.
The App installer page with the Status card, Let customers install apps ticked in the Settings card with its Save button, and the Apps on offer list

To choose which apps are on offer

  1. In the card Apps on offer, tick the apps customers may install. Customers see only the ticked ones.
  2. Click Save apps on offer.

To fetch the newest release now instead of waiting for the daily check, click Check now in the Status card (it appears once the installer is on). The first fetch usually takes a few seconds; if it fails, the card says "The last check failed" with the reason.

If something goes wrong

App hosting

What this does: shows which programming languages customers may run their own programs in (Node.js, Python and Ruby), installs the Node.js versions customers may choose beside the server's own, checks that the web server can reach those programs, and decides whether a program may use a network port.

When you need it: when a customer wants to run an app of their own, such as a Node.js site, rather than a PHP site. Only customers with shell access (permission to use the server's command line, set per account under Accounts > Shell access) are offered the Apps page.

Where: Web server and PHP > App hosting

To check that apps can run

  1. Open Web server and PHP > App hosting.
  2. In Languages for apps, check that each language shows Installed with its version.
  3. In Reaching the apps, check that both lines say In order. One of them is about SELinux, a safety guard built into AlmaLinux, Rocky Linux and RHEL that limits what each program may touch; on Ubuntu and Debian that line may say Not needed.
The App hosting page listing Node.js, Python and Ruby as installed, and the Reaching the apps checks marked In order

To install another Node.js version

The server's own Node.js is whatever version its system comes with (Ubuntu 24.04's is 18, for example). You can install Node.js LTS versions (the long-term support ones) beside it, and each customer picks one for each Node.js app. Apps that pick none stay on the server's own.

  1. In the card Node.js versions, click Install next to the version, such as Node.js 24.
  2. The card Node.js install follows the install until it ends. It says Node.js 24 is installed and on its newest release.
  3. The version's Release column shows the release installed, such as 24.11.1.
The Node.js versions card with Node.js 22 and 24 installed, one app on 24 and an update available

The server looks for new releases once a day. When an installed version has a newer one, such as a security release, the server installs it by itself and restarts the apps on that version. Look for new releases now does the same at once, and Update updates one version.

To remove a Node.js version

  1. In Node.js versions, click Remove next to the version.
  2. A question asks you to confirm. Click Remove again.

A version an app still uses can't be removed: the Remove button is greyed out, and the line names the apps, such as "Node.js 24 is still used by 1 app(s) (alice/blog)". Their owners have to choose another version first.

To let apps listen on a port

Apps normally talk to the web server through a socket, a private connection only their own account and the web server can use. A port is shared by every account on the server, so it is less safe. Allow ports only if a customer's app cannot use a socket.

  1. In the card Ports on this machine, click Allow ports.
  2. A question explains the risk. Click Allow ports again to confirm.

If something goes wrong

Country database

What this does: shows whether the server has a country database: a file that says which country each internet address belongs to. With it, customers see which countries their visitors come from, and you can refuse mail by country.

When you need it: when you want visitor countries in the customer panel, or want to use Email > Mail by country.

Where: Web server and PHP > Country database

To add the country database

freePanel does not download this file for you. You choose where the address ranges come from.

  1. Get a country file in CSV form (comma-separated text). Several organisations publish such lists, some for free; check the licence of the one you choose. Each line must hold the first address of a range, the last address, and a two-letter country code, for example 192.0.2.0,192.0.2.255,NL.
  2. Open Web server and PHP > Country database. The File line shows exactly where the file must go.
  3. Copy your file to that place on the server, for example with an SFTP program (one that copies files over SSH) signed in as root, the server's administrator account. Then, on the server's command line, run chown root:root and chmod 644 followed by the file's path, so it belongs to root and no one else may change it.
  4. Click Reload. The State changes to In use, and the page shows how many address ranges and countries it holds.
The Country database page showing the file in use, its path, the number of address ranges and countries, and the How to turn it on steps

The file is read again by itself whenever it changes. Nothing needs restarting.

If something goes wrong

Domain forwarding

What this does: sends visitors of a domain to another web address, when no site on this server serves that domain. For example, an old company name can send its visitors on to the new one.

When you need it: when you own a domain that points at this server but has no website, and you want its visitors to land somewhere useful.

Where: Web server and PHP > Domain forwarding

To forward a domain

  1. Open Web server and PHP > Domain forwarding.
  2. In the card Forward a domain, type the domain in Domain, for example old-name.example.com. Its DNS must already point at this server: the domain's address record must hold this server's IP address. If the domain's DNS is on this server, change it under DNS > DNS zones; otherwise change it where the domain was registered.
  3. In Send to, type the full new address, starting with http:// or https://, for example https://www.example.com/.
  4. In Kind of forward, choose Permanent (301) if the move is for good, or Temporary (302) if it is for a while. Search engines treat a permanent forward as a move. The other two, Temporary (307) and Permanent (308), do the same but also keep a form's data on the way; you rarely need them.
  5. Leave Keep the path ticked if /about on the old domain should go to /about on the new address.
  6. Tick Forward the www name too to forward www. in front of the domain as well.
  7. Click Forward domain. You see "(domain) is now forwarded." and it appears in Forwarded domains.
The Domain forwarding page with old-brand.example.com already forwarded, and the Forward a domain form filled in for old-name.example.com to https://www.example.com/

To stop, click Remove next to the domain, then Yes, remove.

If something goes wrong