Joomla

Transcription

joomla#joomla

Table of ContentsAbout1Chapter 1: Getting started with er 2: Full Joomla installation via SSH24Parameters4Remarks4Examples5Installing Joomla with SSH - full cycleCredits57

AboutYou can share this PDF with anyone you feel could benefit from it, downloaded the latest versionfrom: joomlaIt is an unofficial and free joomla ebook created for educational purposes. All the content isextracted from Stack Overflow Documentation, which is written by many hardworking individuals atStack Overflow. It is neither affiliated with Stack Overflow nor official joomla.The content is released under Creative Commons BY-SA, and the list of contributors to eachchapter are provided in the credits section at the end of this book. Images may be copyright oftheir respective owners unless otherwise specified. All trademarks and registered trademarks arethe property of their respective company owners.Use the content presented in this book at your own risk; it is not guaranteed to be correct noraccurate, please send your feedback and corrections to info@zzzprojects.comhttps://riptutorial.com/1

Chapter 1: Getting started with joomlaRemarksJoomla is a free and open-source content management system (CMS) for publishing web content.It is built on a model–view–controller web application framework that can be used independently ofthe CMS.Joomla is written in PHP, uses object-oriented programming (OOP) techniques (since version 1.5)and software design patterns, stores data in a MySQL, MS SQL (since version 2.5), orPostgreSQL (since version 3.0) database, and includes features such as page caching, RSSfeeds, printable versions of pages, news flashes, blogs, search, and support for e Date1.02005-09-221.5 (LTS)2008-01-221.62011-01-101.72011-07-192.5 est version as of utorial.com/2

Detailed instructions on Joomla installation can be found on its official website documentation.Read Getting started with joomla online: startedwith-joomlahttps://riptutorial.com/3

Chapter 2: Full Joomla installation via SSHParametersVariableExplanationJUSERIDRandom user idJUSERNAMESpecified login for admin userJUSEREMAILSpecified email for admin userJUSERPASSSpecified password (will be hashed)DBSpecified Database nameDBUSERSpecified Database user for joomlaDBPASSSpecified Database user password for joomlaDBPREFIXSpecified Database PrefixJOOMLAVERSIONJoomla version to be installedRemarksSetting up the machine to run installation script was like:## Install needed commands (apt-add-repository)apt-get updateapt-get -y install software-properties-common -qapt-get -y install python-software-properties -q### Install apacheapt-add-repository ppa:ptn107/apacheapt-get updateapt-get install -y apache2## Install gitapt-get install -y git## Intall mysqldebconf-set-selections 'mysql-server mysql-server/root password password qweasd'debconf-set-selections 'mysql-server mysql-server/root password again password qweasd'apt-get -y install mysql-server## mysql secure installation### Install PHP7apt-add-repository -y ppa:ondrej/phpapt-get updateapt-get install php7.0 php7.0-fpm php7.0-mysql php7.0-xml libapache2-mod-php7.0 php7.0-curlphp7.0-sqlite php7.0-xdebug php7.0-mcrypt php7.0-gd php-mbstring -ya2enmod proxy fcgi setenvifa2enmod mcrypta2enconf php7.0-fpmhttps://riptutorial.com/4

apache2ctl restartThis will set up Apache 2.4 that is required by PHP7Also you may want to dirty install phpMyAdmin in Joomla subfolder for examplewget --no-check-certificate yAdmin-4.6.3all-languages.zip -P /var/tmp/unzip /var/tmp/phpMyAdmin-4.6.3-all-languages.zip -d /var/public html/mv phpMyAdmin-4.6.3-all-languages phpmyadminmv phpmyadmin/config.sample.inc.php phpmyadmin/config.inc.phpExamplesInstalling Joomla with SSH - full cycleSetup variablesJUSERID [ ( RANDOM % 100 ) 1 ]JUSERNAME "admin"JUSEREMAIL "admin@localhost.com"JUSERPASS "qweasd"DB "joomla 3"DBUSER "jdbuser"DBPASS "dbupass"DBPREFIX "prfx "JOOMLAVERSION "3.6.2"Delete initial index.htmlrm -f /var/public html/index.htmlDownload Joomla version specified abovewget oad/ JOOMLAVERSION/Joomla JOOMLAVERSION-Stable-Full Package.zip -P/var/tmp/Install unzip and unzipapt-get install unzipunzip /var/tmp/Joomla JOOMLAVERSION-Stable-Full Package.zip -d /var/public htmlChange foldercd /var/public htmlChange configuration.php values as needed (according to vars set up above)https://riptutorial.com/5

sed -i "s/\ user ''/\ user ' {DBUSER}'/" installation/configuration.php-distsed -i "s/\ password ''/\ password ' {DBPASS}'/" installation/configuration.php-distsed -i "s/\ db ''/\ db ' {DB}'/" installation/configuration.php-distsed -i "s/\ dbprefix 'jos '/\ dbprefix ' {DBPREFIX}'/" installation/configuration.php-distsed -i "s/\ tmp path '/tmp'/\ tmp path '/var/public html/tmp'"installation/configuration.php-distsed -i "s/\ log path '/var/logs'/\ log path '/var/public html/logs'/"installation/configuration.php-distsed -i "s/\ cache handler 'file'/\ cache handler ''/" installation/configuration.php-distMove configuration.php to where it needs to bemv installation/configuration.php-dist configuration.phpCreate DB and Joomla DB userecho "CREATE DATABASE {DB}" mysql -u root --password qweasdecho "CREATE USER ' {DBUSER}'@'%' IDENTIFIED BY ' {DBPASS}';" mysql -u root -password qweasdecho "GRANT ALL ON {DB}.* TO ' {DBUSER}'@'%';" mysql -u root --password qweasdInitialize joomla DB by sqlsed -i "s/# / {DBPREFIX}/" installation/sql/mysql/joomla.sqlcat installation/sql/mysql/joomla.sql mysql -u DBUSER --password DBPASS DBCreate Joomla Admin userJPASS " (echo -n " JUSERPASS" md5sum awk '{ print 1 }' )"echo "INSERT INTO \ {DBPREFIX}users\ (\ id\ , \ name\ , \ username\ , \ email\ ,\ password\ , \ block\ , \ sendEmail\ , \ registerDate\ , \ lastvisitDate\ , \ activation\ ,\ params\ , \ lastResetTime\ , \ resetCount\ , \ otpKey\ , \ otep\ , \ requireReset\ ) VALUES(' {JUSERID}', 'Me', ' {JUSERNAME}', ' {JUSEREMAIL}', ' {JPASS}', '0', '0', '0000-00-0000:00:00.000000', '0000-00-00 00:00:00.000000', '', '', '0000-00-00 00:00:00.000000', '0', '','', '0');" mysql -u DBUSER --password DBPASS DBecho "INSERT INTO \ {DBPREFIX}user usergroup map\ (\ user id\ , \ group id\ ) VALUES(' {JUSERID}', '8');" mysql -u DBUSER --password DBPASS DBJUSERINC JUSERID 1echo "ALTER TABLE \ {DBPREFIX}users\ auto increment {JUSERINC};" mysql -u DBUSER -password DBPASS DBRemove installation folderrm -rf installation/Read Full Joomla installation via SSH online: mlainstallation-via-sshhttps://riptutorial.com/6

CreditsS.NoChaptersContributors1Getting started withjoomlaCommunity, James2Full Joomlainstallation via SSHAlexandrhttps://riptutorial.com/7

Joomla is a free and open-source content management system (CMS) for publishing web content. It is built on a mode