{"id":596,"date":"2013-03-15T22:24:48","date_gmt":"2013-03-15T21:24:48","guid":{"rendered":"http:\/\/blog.rabahi.net\/?page_id=596"},"modified":"2014-08-04T17:34:10","modified_gmt":"2014-08-04T15:34:10","slug":"srv-redmine","status":"publish","type":"page","link":"https:\/\/blog.rabahi.net\/?page_id=596","title":{"rendered":"srv-redmine"},"content":{"rendered":"<h1>Prerequiste<\/h1>\n<p>I assume that you have a Centos installation.<\/p>\n<h1>Installation<\/h1>\n<p>You can copy\/paste this script and use it to configure automatically your server.<\/p>\n<pre class=\"bash\" style=\"font-family:monospace;\"><ol><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#!\/bin\/bash<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#      PARAMETERS <\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #007800;\">redmine_install_url<\/span>=http:<span style=\"color: #000000; font-weight: bold;\">\/\/<\/span>www.redmine.org<span style=\"color: #000000; font-weight: bold;\">\/<\/span>releases<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine-3.4.2.tar.gz<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #007800;\">redmine_version<\/span>=redmine-3.4.2<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #007800;\">ruby_version<\/span>=2.4.1<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#      INSTALLATION SCRIPT<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;create database redmine, user\/password redmine\/redmine&quot;<\/span>:<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">mysql <span style=\"color: #660033;\">--user<\/span>=root <span style=\"color: #660033;\">--password<\/span>=root <span style=\"color: #660033;\">-e<\/span> <span style=\"color: #ff0000;\">&quot;CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'redmine';&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">mysql <span style=\"color: #660033;\">--user<\/span>=root <span style=\"color: #660033;\">--password<\/span>=root <span style=\"color: #660033;\">-e<\/span> <span style=\"color: #ff0000;\">&quot;CREATE DATABASE IF NOT EXISTS redmine;&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">mysql <span style=\"color: #660033;\">--user<\/span>=root <span style=\"color: #660033;\">--password<\/span>=root <span style=\"color: #660033;\">-e<\/span> <span style=\"color: #ff0000;\">&quot;use redmine; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost' WITH GRANT OPTION;&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;1 - install rvm (Ruby Version Manager)&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">dnf <span style=\"color: #660033;\">-y<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span> curl<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">gpg <span style=\"color: #660033;\">--keyserver<\/span> hkp:<span style=\"color: #000000; font-weight: bold;\">\/\/<\/span>keys.gnupg.net <span style=\"color: #660033;\">--recv-keys<\/span> 409B6B1796C275462A1703113804BB82D39DC0E3<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">curl <span style=\"color: #660033;\">-sSL<\/span> https:<span style=\"color: #000000; font-weight: bold;\">\/\/<\/span>get.rvm.io <span style=\"color: #000000; font-weight: bold;\">|<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">bash<\/span> <span style=\"color: #660033;\">-s<\/span> stable<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">source<\/span> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>.bash_profile<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">source<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>etc<span style=\"color: #000000; font-weight: bold;\">\/<\/span>profile.d<span style=\"color: #000000; font-weight: bold;\">\/<\/span>rvm.sh<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">rvm get stable <span style=\"color: #660033;\">--auto-dotfiles<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">rvm requirements<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;2- install ruby&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">rvm <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span> <span style=\"color: #007800;\">$ruby_version<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">rvm use <span style=\"color: #007800;\">$ruby_version<\/span> <span style=\"color: #660033;\">--default<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;3- install rubygem&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">rvm rubygems current<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;install bundle and nokogiri&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">gem <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span> bundle <span style=\"color: #660033;\">--no-rdoc<\/span> <span style=\"color: #660033;\">--no-ri<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#dnf -y install libxml2-devel libxslt-devel<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#gem install nokogiri -v '1.5.10' --no-rdoc --no-ri<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;install passenger&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">dnf <span style=\"color: #660033;\">-y<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span> curl-devel httpd-devel<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">gem <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span> passenger <span style=\"color: #660033;\">--no-rdoc<\/span> <span style=\"color: #660033;\">--no-ri<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">passenger-install-apache2-module <span style=\"color: #660033;\">-a<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;get redmine&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">mkdir<\/span> <span style=\"color: #660033;\">-p<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>opt<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>download<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">cd<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>opt<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>download<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">wget<\/span> <span style=\"color: #007800;\">$redmine_install_url<\/span>  <span style=\"color: #666666; font-style: italic;\"># GET LATEST VERSION ON RUBYFORGE<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">tar<\/span> xvfz <span style=\"color: #007800;\">$redmine_version<\/span>.tar.gz<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">mv<\/span> <span style=\"color: #007800;\">$redmine_version<\/span> ..<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;configure database&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">cd<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>opt<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>config<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">cp<\/span> database.yml.example database.yml<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/username: root\/username: redmine\/g&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>opt<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>config<span style=\"color: #000000; font-weight: bold;\">\/<\/span>database.yml<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">sed<\/span> <span style=\"color: #660033;\">-i<\/span> <span style=\"color: #ff0000;\">&quot;s\/password: <span style=\"color: #000099; font-weight: bold;\">\\&quot;<\/span><span style=\"color: #000099; font-weight: bold;\">\\&quot;<\/span>\/password: redmine\/g&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>opt<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>config<span style=\"color: #000000; font-weight: bold;\">\/<\/span>database.yml<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;install redmine&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">dnf <span style=\"color: #660033;\">-y<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span> mariadb-devel ImageMagick-devel freetds-devel<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">cd<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>opt<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">bundle <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;now populate database&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">cd<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>opt<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">rake generate_secret_token<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">rake db:migrate <span style=\"color: #007800;\">RAILS_ENV<\/span>=<span style=\"color: #ff0000;\">&quot;production&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">rake redmine:load_default_data <span style=\"color: #007800;\">RAILS_ENV<\/span>=<span style=\"color: #ff0000;\">&quot;production&quot;<\/span> <span style=\"color: #007800;\">REDMINE_LANG<\/span>=<span style=\"color: #ff0000;\">&quot;en&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;set chmod on tmp directory&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">chmod<\/span> <span style=\"color: #000000;\">777<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>opt<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>tmp<span style=\"color: #000000; font-weight: bold;\">\/<\/span> <span style=\"color: #660033;\">-R<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">#      CONFIGURATION APACHE HTTPD<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\">##################################################<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #666666; font-style: italic;\"># NOTE REDMINE MUST BE STARTED &quot;NORMALLY&quot; BEFORE THIS STEP.<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">cat<\/span> <span style=\"color: #000000; font-weight: bold;\">&gt;<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>etc<span style=\"color: #000000; font-weight: bold;\">\/<\/span>httpd<span style=\"color: #000000; font-weight: bold;\">\/<\/span>conf.d<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine.conf <span style=\"color: #cc0000; font-style: italic;\">&lt;&lt; EOF<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">LoadModule passenger_module \/usr\/local\/rvm\/gems\/ruby-$ruby_version\/gems\/passenger-5.1.6\/buildout\/apache2\/mod_passenger.so<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">PassengerRoot               \/usr\/local\/rvm\/gems\/ruby-$ruby_version\/gems\/passenger-5.1.6<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">PassengerRuby               \/usr\/local\/rvm\/wrappers\/ruby-$ruby_version\/ruby<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">&lt;VirtualHost *&gt;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">&nbsp; ServerName YOUR_SERVER<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">&nbsp; DocumentRoot \/var\/www\/html<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">&nbsp; RailsEnv production<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">&nbsp; RailsBaseURI \/redmine<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">&nbsp; PassengerDefaultUser apache<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">&nbsp;  ErrorLog &quot;|\/usr\/sbin\/rotatelogs \/etc\/httpd\/logs\/redmine-error.%Y-%m-%d.log 86400&quot;<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">&nbsp;  CustomLog &quot;|\/usr\/sbin\/rotatelogs \/etc\/httpd\/logs\/redmine-access.%Y-%m-%d.log 86400&quot; &quot;%h %l %u %t %D \\&quot;%r\\&quot; %&gt;s %b \\&quot;%{Referer}i\\&quot; \\&quot;%{User-Agent}i\\&quot;&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">&lt;\/VirtualHost&gt;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #cc0000; font-style: italic;\">EOF<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #c20cb9; font-weight: bold;\">ln<\/span> <span style=\"color: #660033;\">-s<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>opt<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<span style=\"color: #000000; font-weight: bold;\">\/<\/span>public <span style=\"color: #000000; font-weight: bold;\">\/<\/span>var<span style=\"color: #000000; font-weight: bold;\">\/<\/span>www<span style=\"color: #000000; font-weight: bold;\">\/<\/span>html<span style=\"color: #000000; font-weight: bold;\">\/<\/span>redmine<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;restart httpd service&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">systemctl restart httpd.service<\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\"><span style=\"color: #007800;\">myip<\/span>=<span style=\"color: #000000; font-weight: bold;\">`<\/span><span style=\"color: #c20cb9; font-weight: bold;\">hostname<\/span> -I<span style=\"color: #000000; font-weight: bold;\">`<\/span><\/div><\/li><li style=\"background: #f0f0f0;\"><div style=\"font-size: 12px;\"><span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;Now meet you here: http:\/\/<span style=\"color: #007800;\">$myip<\/span>&quot;<\/span><\/div><\/li><li style=\"background: #fcfcfc;\"><div style=\"font-size: 12px;\">&nbsp;<\/div><\/li><\/ol><\/pre>\n<p>That&#8217;s all \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prerequiste I assume that you have a Centos installation. Installation You can copy\/paste this script and use it to configure automatically your server. That&#8217;s all \ud83d\ude42<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":673,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-596","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=596"}],"version-history":[{"count":6,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/596\/revisions"}],"predecessor-version":[{"id":1016,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/596\/revisions\/1016"}],"up":[{"embeddable":true,"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=\/wp\/v2\/pages\/673"}],"wp:attachment":[{"href":"https:\/\/blog.rabahi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}