Loading…
Loading documentation...
A manual LAMP-stack WordPress install on a Servers Are Up Linux server, published through a port forward.
There are two ways to run WordPress on a Servers Are Up Linux server:
Check out a Linux server running Ubuntu 24.04:
Create a Virtual Datacenter first. Enroll a machine in your cloud account or at your site, or choose a currently qualified external region in the VDC. Check the displayed provider, configuration and price before placing an order.
Turn on public SSH on the server's page and copy the command from its How to connect card. Root cannot sign in, so start a root shell for the steps below:
ssh sauuser@SERVER_ADDRESS -p SSH_PORT
sudo -i
apt update && apt upgrade -y
apt install -y apache2 mysql-server php libapache2-mod-php php-mysql \
php-curl php-gd php-xml php-mbstring php-zip php-intl
a2enmod rewrite
systemctl enable --now apache2 mysql
On Ubuntu, MySQL's root account signs in as the system's root user, so the root shell from Step 2 needs no database password. Create a database and a user for WordPress, with a strong password of your own in place of STRONG_PASSWORD_HERE:
mysql <<'EOF'
CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'STRONG_PASSWORD_HERE';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';
FLUSH PRIVILEGES;
EOF
This MySQL listens only on the server itself and has no anonymous accounts and no test database, so the clean-up mysql_secure_installation offers is already done.
cd /var/www
curl -fsSLO https://wordpress.org/latest.tar.gz
tar xzf latest.tar.gz
rm latest.tar.gz
chown -R www-data:www-data /var/www/wordpress
cat > /etc/apache2/sites-available/wordpress.conf <<'EOF'
<VirtualHost *:80>
DocumentRoot /var/www/wordpress
<Directory /var/www/wordpress>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
EOF
a2ensite wordpress.conf
a2dissite 000-default.conf
systemctl reload apache2
# WordPress answers and sends a new site to its installer
curl -sI http://127.0.0.1/ | head -n 1
For a new workload, use its cloud provider or on-site network to control public exposure. Keep management access private through the enrolled network. The following controls apply to an existing SAU-hosted Linux server with an assigned environment port block. That server has no individual public address. On Network > Public access, under Port forwards, click Add a forward and choose the server, the protocol, an External port from your environment's block (the form names the range; every port in it is 10000 or higher) and the Target port your service listens on. The forward's row then shows the address and port to Connect to, and Who can connect limits it to the addresses you name. A forward opens its own firewall rule, so you add none for it.
A site you run on the server itself is served from its own web server. On the server's Console tab, under Website, give the port your web server listens on (plain HTTP; 80 unless you changed it) and click Serve website. The site gets its own address with HTTPS at once and stays private until you click Publish website. To put it at your own domain, add the domain on Network > Public access under Add a domain and choose that server; the platform obtains and renews its certificate. An app installed from Servers > [your server] > Apps, or an Instant App, takes your domain under Your own domain the same way.
For this site, add a forward with protocol TCP and Target port 80. While you set it up, put your own address under Who can connect.
Open http://ADDRESS:PORT, the forward's Connect to value. WordPress asks for the database: name wordpress, user wpuser, the password from Step 4, and host localhost. It writes wp-config.php with fresh security keys, then asks for the site title and your admin account.
wp_ in the installer755 for directories and 644 for fileswp-content to storage you controlOpen the workspace to check your machine’s connection and available controls. For automation, consult the REST API or MCP guide. Include the resource and region when you contact support.