You will need a standard LAMP stack to run ProcessWire. When creating your droplet, under Applications, choose LAMP on Ubuntu.
A full list of requirements is available here.
To ensure that all of your modules install correctly, be sure to run the following command before installing any additional modules:
ProcessWire requires that the mod_rewrite PHP module be enabled. If you use Digital Ocean’s LAMP Application droplet configuration, it should already be installed and will only need to be enabled. To enable it and restart Apache, run the following commands:
a2enmod rewrite service apache2 restart
To use mod_rewrite, htaccess overrides have to be enabled. You will need to modify the default host configuration file. This can be found at:
Open it in either
nano. Look for the following section (it starts with
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
Where it says
AllowOverride None change it to
ProcessWire requires GD to be installed in order to resize and crop images uploaded through the CMS. To install GD and run it, use the following commands.
apt-get install php5-gd service apache2 restart
If you wish to have a contact form on your website, you will also need to ensure that sendmail is installed and configured so that you can use features that send email including password recovery and contact forms.
apt-get install sendmail sendmailconfig service sendmail restart service apache2 restart
To speed up PHP mail, add the following line to your host file, which can be found at
yourhostnamehere with your host name.
127.0.0.1 localhost localhost.localdomain yourhostnamehere
Visit your site URL’s PHP Info page to see that all modules have been installed correctly at
http://yourhostname/info.php where you replace
yourhostname with your actual host name.
Once those are there, we are ready to download and install ProcessWire.
Navigate to your web root folder:
The easiest way to download ProcessWire is using
wget to fetch one of the stable ProcessWire releases:
The above link refers to the latest release at the time this article was written but you can see and choose from all available releases here.
The above command downloaded the file
2.4.0.tar.gz. To extract these files and move them to your web root, use the following commands.
tar -zxf 2.4.0.tar.gz cd ProcessWire-2.4.0 mv * .. cd .. # go back to /var/www rm -r ProcessWire-2.4.0 # deletes unneeded directory rm index.html # the default index.html needs to be removed to use ProcessWire
Please note that the version number specified here may be different from the one you downloaded.
Navigate to your website in your browser. From there, you should see the installation screen:
You may be prompted to rename
site. You can do this by running the following command:
mv site-default site
Reload the page and that warning bar should go away. Click “Get Started.”
In order to make sure that ProcessWire will install and run smoothly, you need to make sure that all of the items in the compatibility check show up green:
If you get some error messages, make sure that the
site folder is writeable by the application. One way of doing this is with the following commands, which we will make secure after the installation.
chmod -R 777 site/assets chmod 666 site/config.php
Also rename the
mv htaccess.txt .htaccess
If everything is green, it’s safe to continue.
The next screen will ask you for your database credentials and the database you would like to use.
You also have the option to set the file permissions if you would like to change the defaults—by default, directories are 755 and files are 644. This can be changed later in the
You will need to create a user and a database in MySQL and give permissions to that user.
Assuming you already have a MySQL username and password created, you will need to login to MySQL and create a database:
mysql -u username -ppassword
Upon successful login, you should see
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; create database pwtest; grant all privileges on pwtest.* to username@localhost identified by 'password';
If your database was accessed successfully and the permissions applied to your files and directories, the following page should show all green.
On this page you can also select which admin theme you would like to use and what you would like your login URL to be. The default is
At this time, you also have the chance to create a username and password. The default username is
admin but it is advised to use a username other than the default. Your password must be at least 6 characters long.
If everything has been done correctly, the next screen should give you some information about what ProcessWire did to secure your installation.
Remove the installation script:
Remove the installation files:
rm -r /var/www/site/install/
Make the config file read only:
chmod 444 /var/www/html/site/config.php
At this point, you can view your installation or login to your website!
If you have any questions about ProcessWire, you can reach out to the friendly ProcessWire community in the forums.
<div class=“author”>Submitted by: <a href=“http://tinaciousdesign.com”>Tina Holly </a></div>
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in our Questions & Answers section, find tutorials and tools that will help you grow as a developer and scale your project or business, and subscribe to topics of interest.Sign up
Click below to sign up and get $200 of credit to try our products over 60 days!