It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
apt-get update
mkdir tempSwitch into the directory:
cd tempThen you can go ahead and download the most recent version of Joomla straight from their website. You can find newest version on:
wget https://github.com/joomla/joomla-cms/releases/download/3.5.1/Joomla_3.5.1-Stable-Full_Package.zipThis command will download the zipped Joomla package straight to your user's home directory on the virtual server. You can untar it with the following command, moving it straight into the default apache directory, /var/www :
unzip Joomla_3.5.1-Stable-Full_Package.zip -d /var/www/htmlDo not forget to remove downloaded file:
rm Joomla_3.5.1-Stable-Full_Package.zipWe will need to change some folders permissions:
chown -R www-data.www-data /var/www/html
chmod -R 755 /var/www/htmlRestart apache:
service apache2 restart
mysql -u root -pLogin using your MySQL root password. We then need to create the Joomla database, a user in that database, and give that user a new password. Keep in mind that all MySQL commands must end with semi-colon.
CREATE DATABASE joomla;Then we need to create the new user. You can replace the database, name, and password, with whatever you prefer:
CREATE USER juser@localhost;Set the password for your new user:
SET PASSWORD FOR juser@localhost= PASSWORD("password");Finish up by granting all privileges to the new user. Without this command, the Joomla installer will be able to harness the new MySql user to create the required tables:
GRANT ALL PRIVILEGES ON joomla.* TO juser@localhost IDENTIFIED BY 'password';Then refresh MySQL:
FLUSH PRIVILEGES;Exit out of the MySQL shell:
exitRestart apache:
service apache2 restart
sudo a2enmod rewrite
touch /etc/apache2/sites-available/joomla.conf
ln -s /etc/apache2/sites-available/joomla.conf /etc/apache2/sites-enabled/joomla.conf
nano /etc/apache2/sites-available/joomla.confNote: If nano is not installed on your server you can simple do it with command:
apt-get install nanoAdd the following lines:
<VirtualHost *:80>Note: Do not forgot to change server's admin email address, domain and so on.
ServerAdmin [email protected]
DocumentRoot /var/www/html/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>
service apache2 restart