{"id":18325,"date":"2015-12-29T15:43:23","date_gmt":"2015-12-29T21:43:23","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18325"},"modified":"2022-06-03T03:43:56","modified_gmt":"2022-06-03T08:43:56","slug":"how-to-install-zenphoto-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-zenphoto-on-ubuntu-14-04\/","title":{"rendered":"How to install Zenphoto on Ubuntu 14.04"},"content":{"rendered":"
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<\/a>.<\/p>\n At the time of writing this tutorial, Zenphoto 1.4.11 is the latest stable version available and it requires:<\/p>\n – Apache web server. INSTRUCTIONS:<\/p>\n Login to your VPS via SSH<\/p>\n Update the system<\/p>\n Install MySQL so you can create the database needed. Run the following command:<\/p>\n Now run the post-installation script \u2018mysql_secure_installation\u2019 in order to set the MySQL root user password:<\/p>\n 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:<\/p>\n Do not forget to replace \u2018your-password\u2019 with a strong password.<\/p>\n Install Apache2 web server<\/p>\n Install PHP and required PHP modules<\/p>\n To install the latest stable version of PHP and all necessary modules, run:<\/p>\n Download and extract the latest version of Zenphoto on your server<\/p>\n All files have to be readable by the web server, so set the proper ownership:<\/p>\n Create a new virtual host directive in Apache. For example, create a new Apache configuration file named \u2018zenphoto.conf\u2019 on your virtual server:<\/p>\n Then, add the following lines:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n 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.<\/p>\n Once you finish the installation you can access the admin section at:<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install ZenPhoto<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/span><\/strong><\/span> 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.<\/p>\n","protected":false},"excerpt":{"rendered":" Zenphoto is a free and open souce, PHP based content management system (CMS) for creating gallery focused websites. Zenphoto features … <\/p>\n
\n– PHP (version 5.2 or better) with GD graphics library and mbstring extension library.
\n– MySQL(version 5.0 or better) installed on your Linux VPS<\/a>.<\/p>\nssh user@vps_IP<\/pre>\n
[user]$ sudo apt-get update && sudo apt-get -y upgrade<\/pre>\n
# apt-get install mysql-server mysql-client<\/pre>\n
# mysql_secure_installation\r\n\r\n- Set root password? [Y\/n] y\r\n\r\n- Remove anonymous users? [Y\/n] y\r\n\r\n- Disallow root login remotely? [Y\/n] y\r\n\r\n- Remove test database and access to it? [Y\/n] y\r\n\r\n- Reload privilege tables now? [Y\/n] y<\/pre>\n
[user]$ mysql -u root -p\r\n\r\nmysql> CREATE DATABASE zenphoto;\r\n\r\nmysql> GRANT ALL PRIVILEGES ON zenphoto.* TO 'zenphotouser'@'localhost' IDENTIFIED BY 'your-password';\r\n\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> \\q\r\n<\/pre>\n
[user]$ sudo apt-get install apache2<\/pre>\n
[user]$ sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-gd<\/pre>\n
[user]$ sudo cd \/opt && wget https:\/\/github.com\/zenphoto\/zenphoto\/archive\/zenphoto-1.4.11.zip\r\n[user]$ sudo unzip zenphoto-1.4.11.zip\r\n[user]$ sudo mv zenphoto-zenphoto-1.4.11\/ \/var\/www\/html\/zenphoto\/<\/pre>\n
[user]$ sudo chown www-data:www-data -R \/var\/www\/html\/zenphoto<\/pre>\n
[user]$ sudo touch \/etc\/apache2\/sites-available\/zenphoto.conf\r\n[user]$ sudo ln -s \/etc\/apache2\/sites-available\/zenphoto.conf \/etc\/apache2\/sites-enabled\/zenphoto.conf\r\n[user]$ sudo nano \/etc\/apache2\/sites-available\/zenphoto.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@your-domain.com\r\nDocumentRoot \/var\/www\/html\/zenphoto\/\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\n<Directory \/var\/www\/html\/zenphoto\/>\r\nOptions FollowSymLinks\r\nAllowOverride All\r\n<\/Directory>\r\nErrorLog \/var\/log\/apache2\/your-domain.com-error_log\r\nCustomLog \/var\/log\/apache2\/your-domain.com-access_log common\r\n<\/VirtualHost>\r\n\r\n<\/pre>\n
[user]$ sudo service apache2 restart<\/pre>\n
http:\/\/yourdomain.com\/zp-core\/admin.php<\/pre>\n