Zenphoto is a free and open souce, PHP based content management system (CMS) for creating gallery focused websites. Zenphoto features support for various media formats and integrated blog and custom pages. It is the ideal CMS for personal websites of artists, illustrators, photographers, designers, film makers and musicians. In this guide we will explain how to install Zenphoto on an Ubuntu 14.04 VPS.
At the time of writing this tutorial, Zenphoto 1.4.11 is the latest stable version available and it requires:
– Apache web server.
– PHP (version 5.2 or better) with GD graphics library and mbstring extension library.
– MySQL(version 5.0 or better) installed on your Linux VPS.
INSTRUCTIONS:
Login to your VPS via SSH
Update the system
Install MySQL so you can create the database needed. Run the following command:
Now run the post-installation script ‘mysql_secure_installation’ in order to set the MySQL root user password:
So, you set the MySQL root password to your liking. Next thing you need to do is to create a database. Login to your MySQL service as root:
Do not forget to replace ‘your-password’ with a strong password.
Install Apache2 web server
Install PHP and required PHP modules
To install the latest stable version of PHP and all necessary modules, run:
Download and extract the latest version of Zenphoto on your server
All files have to be readable by the web server, so set the proper ownership:
Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘zenphoto.conf’ on your virtual server:
Then, add the following lines:
Restart the Apache web server for the changes to take effect:
Open your favorite web browser, navigate to http://your-domain.com/ and if you configured everything correctly the Zenphoto installer should be starting. You should follow the easy instructions on the install screen inserting the necessary information as requested.
Once you finish the installation you can access the admin section at:
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install ZenPhoto for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.
Thank you for the information but the syntax is incorrect for the mysql sequence. You will need to add the user zenphotouser before the granting of privileges and that statement does not need the IDENTIFIED BY clause.
The syntax is correct, it is a SQL syntax that creates and grants privileges to a user to access and manage the database. The IDENTIFIED BY is also needed to set the password for the user.