Home > Backend Development > PHP Tutorial > CentOS6.5+apache+mysql+php+Ruby+Redmine+phpMyAdmin+BugFree

CentOS6.5+apache+mysql+php+Ruby+Redmine+phpMyAdmin+BugFree

WBOY
Release: 2016-08-08 09:28:06
Original
3245 people have browsed it

1. Installation version instructions

CentOS: 6.5-x86_64

Apache: 2.4.9

PHP: 5.5.6

Ruby: 2.1.5

Redmine: 2.5.2

Mysql: 5.6.16

II. Install CentOS_6.5-x86_64

1. System installation process

Interface 1 Select basic storage device

Interface 2 Select new installation

Interface 3 Host name: localhost, and click Configure Network in the lower left corner

The pop-up network link interface , select Systemeth0 and click Edit

In the System eth0 editing interface that pops up, select Automatic connection, select the IPv4 label, and change the method to manual.

Click Add, enter 192.168.1.XXX for IP in the address bar, enter 24 for subnet mask, enter 192.168.1.1 for gateway

DNS server: 202.96.209.133, click Apply

Close the network link interface

Interface 4, Default

Interface 5, password: target device and click to select the boot loader.

Interface 8, delete the device under the LVM volume group and delete the partition labels under the device, such as sda1, sda2, etc., leaving only device labels such as sda and sdb.方 Create a new partition plan, the plan is as follows:

SDB1 /BOOT EXT4 100MB

Force primary partition

Sdb2                                                                                                          50GB

Sdb4

Extended partition

Sdb5 /var ext4 20 GB​​

It is recommended to point all system logs to the

log directory of this directory

Sdb6​ Memory 1-2times, it is recommended

1.5

times                                                                                                                                                                                   to be 1.5 Space Interface 9, click Change Device and select the boot sector The first partition Interface 10, select Minimal Desktop

Restart after installation is complete

Create username: redmine Password: XXXXXSet time network synchronization

Start kdump, default

Restart after completion.

2. Install basic dependencies

# su -

//Turn root

# yum -y install makeapr* autoconf automake gcc gcc-c++ zlib-devel openssl openssl-devel pcre-develgd kernel key utils patch perl kernel-headers compat* mpfr cppglibc libgomp libstdc++-devel ppl cloog-ppl keyutils-libs-develibcom_err-devel LibsePol-Devel Libselinux-Devel Krb5-Devel ZLib-Devel Libxpm* Free Libjpeg* Libpng* PHP-COMMON PHP-GD NCURSES* libxml2libxml2 -DeVEL PATCHel LRZSZ VIN CURL-DEVEL PHP-MCRYPT LIBMCRYPT LibmCrypt-Devel Vim Mod_SSL

3. Modify the firewall

# vi/etc/sysconfig/iptables //Modify the firewall configuration file and open the corresponding port

-A INPUT -m state --state NEW -m tcp-p tcp --dport 22 -j ACCEPT-A INPUT -m state --state NEW -m tcp-p tcp --dport 80 -j ACCEPT

-A INPUT -m state --state NEW -m tcp-p tcp --dport 8000:

9000-j ACCEPT

-A INPUT -m state --state NEW -m tcp-p tcp --dport 3306 -j ACCEPT

-A INPUT -m state --state NEW -m tcp-p tcp --dport 3000 -j ACCEPT# /etc/init.d/iptablesrestart

#Finally restart the firewall to make the configuration take effect

4. Turn off SELINUX

# vi /etc/selinux/config

#SELINUX=enforcing #Comment out

#SELINUXTYPE=targeted #Comment out

SELINUX= disabled​​​​​ #increase

# reboot​​ #Restart the system

Three. Install MySQL-5.6.16

# SU - // Change to root user permissions

1. Install CMAKE-2.8.10.2

# TAR-XZVFCMAKE-2.8.10.2.gz

#

#

#

#

#

#

#

# cd cmake-2.8.10.2

# ./bootstrap

# make

# make install

# cd ..

2. Set up mysql user group

#

groupadd mysql

# useradd -r -g mysql mysql

3. Create mysql installation directory

# mkdir -p /usr/local/mysql

///Program directory

# mk dir -p / home/data/mysqldb

//Data file directory 4. Compile and install MySQL-5.6.16

# tar -zxvf mysql-5.6.16.tar.gz

# cd mysql-5.6.16

# cmake-DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/data/mysqldb-DMYSQL_TCP_PORT=3306 -DSYSCONFDIR=/etc -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock-DDEFAULT_CHAR SET=utf8 - DDEFAULT_COLLATION=utf8_bin-DWITH_EXTRA_CHARSETS:STRING=utf8,gbk -DWITH_INNOBASE_STORAGE_ENGINE=1-DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1-DWITH_DEBUG=0 -DWITH_READLINE=1 -DWITH_SSL=yes

# (Sometimes there will be warnings such as /usr/local/mysql/data not found, ignore it and continue compiling directly)

# rm CMakeCache.txt

Re-run the configuration, you need to delete the CMakeCache.txt file

# make

# make install

5. Modify the installation directory

# cd /usr/local/mysql

# chown -R mysql:mysql .

6.       Modify the database file directory

# cd /home/data/mysqldb

# chown -R mysql:mysql .

7.   Initialize the database

# cd /usr /local/mysql

# scripts/mysql_install_db--user=mysql --datadir=/home/data/mysqldb

8.   Copy the mysql service startup configuration file

# cp/usr / local/mysql/support-files/my-default.cnf /etc/my.cnf

(can be overwritten)

9. Copy the mysql service startup script and add it to the PATH path

# cp support-files/mysql.server/etc/init.d/mysqld

#vi /etc/profile

PATH=/usr/local/mysql/bin:/usr/local/mysql/lib:$PATH

export PATH

# source /etc/profile

# vi /etc /my.cnf

Add

datadir =/home/data/mysqldb

10. Set up to start mysql at boot

# chmod 755 /etc/init.d/mysqld

# chkconfig mysqld on

11. Change mysql password

# service mysqld start

# /usr/locsl/mysql/bin/mysqladmin -uroot -p password "jorudan0407"

#servicemysqld restart

# /usr/local/mysql/bin/mysql -u root–p //New password login verification

mysql> showdatabases;IV. Install Ruby-2.1.5

1. Install ruby-2.1.5

# tar xzf ruby-2.1.5.tar.gz

# cd ruby-2.1.5

# ./configure --prefix=/usr/local/ruby

# make

# make install

# cd ..

add to environment variables

# vi /etc/profile

export PATH=/usr/local/ruby/bin:$PATH

# source /etc/profile

🎜View ruby ​​version number🎜🎜🎜# ruby ​​-v🎜🎜🎜ruby 2.1.5p273(2014-11-13 revision 48405) [x86_64-linux]🎜🎜2. Install rubygems-2.4.6🎜🎜🎜# tar # ruby ​​setup. rb🎜🎜🎜🎜# cd ..🎜🎜

Tips: Gem is a file organization package. Many general ruby ​​plug-ins are provided by this variety of packages.

# gem -v

2.4.6

# which gem

/usr/local/ruby/bin/gem

3. Installing rails-3.2.19

# gem sources -l

*** CURRENT SOURCES ***

https://rubygems.org/

# gem sources --remove https://rubygems.org/

https://rubygems.org/ removed from sources

# gem sources -ahttps://ruby.taobao.org/

https://ruby.taobao.org/ added to sources

# gem sources -l

*** CURRENT SOURCES ***

https://ruby.taobao.org/

Redmine needs to consider Ruby version compatibility issues, please refer to:

http://www.redmine.org/projects/redmine/wiki/RedmineInstall

Redmine chose to install version 2.5.3, so rails installed version 3.2

# gem install rails -v=3.2.19

# rails -v

Rails 3.2.19

5. Install Apache-2.4.9

1.                         Install apr-1.5.1

# tar –zxf apr-1.5.1.tar.gz

# cd apr-1.5.1

# ./configure –prefix=/usr/local/apr

# make

# make install

# cd ..

2. util-1.5 .4

# tar –zxf apr-util-1.5.4.tar.gz

# cd apr-util-1.5.4

# ./configure --prefix=/usr/local/ apr-util--with-apr=/usr/local/apr/bin/apr-1-config

# make

# makr install

# cd ..

3.       Install pcre-8.33

# tar –zxf pcre-8.33.tar.gz

# cd pcre-8.33

# ./configure --prefix=/usr/local/pcre

# make

# make install

# cd ..

4. Install openssl-1.0.1l

# tar –zxf openssl-1.0.1l.tar.gz

# cd openssl- 1.0.1l

# ./config --prefix=/usr/local/openssl -fPIC no-gost

# make

# make install

# cd ..

5. Install apache-2.4.9

# tar –zxf httpd.2.4.9.tar.gz

# cd httpd.2.4.9

# ./configure --prefix=/ usr/local/apache2--with-mpm=worker --enable-cache --enable-disk-cache --enable-mem-cache --enable-file-cache --enable-nonportable-atomics --enable-mods-shared=most --enable-so--enable-rewrite--enable-ssl --with-apr=/usr/local/apr/ --with-apr- util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre --with-ssl=/usr/local/openssl

# make

# make install

# cd ..

6.                Additional fcgid module

# tar zxvf mod_fcgid-2.3.6.tar.gz

# cd mod_fcgid-2.3.6

#APXS=/usr/ local/apache2/bin/apxs./configure.apxs & ---- & gt;/soft/apache/bin is the installation address of Apache

# Make

# Make Install

7. For the httpd service, you need to uninstall it first

                                                                                                                                                                                 

# cp /usr/local/apache2/bin/ apachectl/etc/rc.d/init.d/httpd

# vi /etc/rc.d/init.d/httpd

Add the following two after #!/bin/sh

Ring

#chkconfig: 345 85 15

#description: Start and Stops The Apache Http Server.

#chmod +x /etc/rc.d/httpd # chKCONFIG -ADD HTTPD

8. Modify http.conf

# MKDIR —P/VAR/www/html // Create www root directory

# vi/usr/local/apche2/conf /httpd.conft Add

Seservername LocalHost: 80

Listen 8000 //

Reserved port for Redmine

virtual server

Listrn 8008 //Reserve port for bugfreevirtual server

DocumentRo ot "/usr/local/apache2/htdocs"

e

DocumentRoot" /var/www/html"

" " Directory "/usr/local/apache2/htdocs">

e

                                                           CustomLog "logs/access_log" common

e

CustomLog "/var/log/httpd/access_log" common

ErrorLog" logs/error_ log"

e

ErrorLog"/var/log/httpd/error_log"

9. Verification Restart apache,

# service httpd restart

Then open the web page with a browser.

Six. Install PHP-5.5.61. Install zlib-1.2.8

# tar zxvf zlib-1.2.8.tar.gz

# cd zlib-1.2.8

# ./configure --prefix=/usr/local/zlib

# make

# make install

# cd ..

2.          Install libxml2-2.7.1

# tar zxvf libx ml2- 2.7.1.tar.gz

# cd libxml2-2.7.1

# ./configure--prefix=/usr/local/libxml2 --without-zlib

# make

# make install

# cd ..

3. Install libpng-1.2.31

# tar zxvf libpng-1.2.31.tar.gz

# cd libpng-1.2. 31

# ./configure--prefix=/usr/local/libpng

# make

# make install

# cd ..

4. Install freetype-2.5.0.1

# tar zxvf freetype-2.5.0.1.tar.gz

# cd freetype-2.5.0.1

# ./configure--prefix=/usr/local/freetype -without-png

# make

# make install

# cd ..

5. Install jpeg9

# tar zxvf jpegsrc.v9.tar.gz

# cd jpeg -9/

# ./configure--prefix=/usr/local/jpeg9

# make

# make install

# cd ..

6. Install libmcrypt-2.5.7

# tar -zxvf libmcrypt-2.5.7.tar.gz

# cd libmcrypt-2.5.7

# mkdir -p /usr/local/libmcrypt

# ./configureprefix=/usr /local/libmcrypt/

# make

# make install

# cd ..

7. Install GD-2.0.35

# tar -zxvf gd-2.0.3 5. tar.gz

# mkdir -p /usr/local/gd

# cd gd-2.0.35

# ./configure --prefix=/usr/local/gd --enable- m4_pattern_allow --with-jpeg=/usr/local/jpeg9--with-png=/usr/local/libpng --with-zlib=/usr/local/zlib--with-freetype=/usr/local/freetype - -With-LibmCrypt =/USR/LOCAL/LIBMCRYPT

# MAKE

# MAKE Install

# CD ..8. Install PHP-5.5.6

# TAR-ZXVF php-5.5.6.tar.gz

# cd php-5.5.6

# ./configure--prefix=/usr/local/php --with-config-file-path=/usr /local/php/etc--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock--with-gd --with-iconv--with-freetype-dir=/usr/local/freetype --with-jpeg-dir=/usr/local/jpeg9--with-png-dir=/usr/local/libpng --with -zlib=/usr/local/zlib--with-libxml-dir=/usr/local/libxml2 --enable-xml --enable-bcmath--enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex--enable-mbstring --enable-ftp --enable-gd-native-ttf --without-pear--with-openssl --enable-pcntl --enable-sockets --with-xmlrpc - -enable-zip--enable-soap --with-gettext --enable-session --with-mcrypt=/usr/local/libmcrypt/--enable-mbstring --with-pdo-mysql=/usr/local/mysql

# make

# make install

# cp php.ini-production/usr/local/php/php.ini

9. Modify the apache2 configuration and load the php module

# vi/usr/local/apache2/conf/httpd.conf

in

LoadModule php5_module modules/libphp5.so

Add

AddTypeapplication/x-httpd-php .php

AddTypeapplication/x-httpd-php-source .phps

Modify

OptionsIndexes FollowSymLinks

e Options Indexes FollowSymLinksIncludes IncludesNOEXEC ExecCGI

#service httpd restart

10. Verify phpinfo

# vim /usr/local/apache2/htdocs/index.php

                                                                                              ("PRC");

phpinfo();

?>

Open the browser and visit 192.168.1.32

11. Append curl module

# tar -zxvf curl-7.41.0.tar.gz

# cd/home/redmine/php-5.5.6/ext/curl

                                                                                                                                                                                                                     ​ config=/usr/local/php/bin/php-config--with-curl=/home/redmine/curl-7.41.0

# cd /home/redmine/curl-7.41.0

# make

# make install

Modify the php.ini file

# vi /usr/local/php/php.ini

Add extension=curl.so

12. Pitfalls

(1) Run phpize directly in the top level of the curl source code directory, and the following error will be prompted:

Cannot find config.m4.

Make sure that you run'/home/zhuyx/local/php-5.5.3/bin /phpize' in the top level source directory of the module

Reason:

 For phpize extension installation, the source package needs to have the config.m4 configuration file; the current extension’s source code package does not include it (memcache does).

Solution:

(1) Enter the ext/curl of the php source package and run phpize, and then install it

(2)./configure --with-php-config=/php compiled directory/bin/php -config --with-curl=curl source code directory

Problem extension:

When you encounter similar problems when installing other php extensions, you can adopt the above solutions.

Seven. Install phpMyAdmin-4.3.12

1. Install phpMyAdmin-4.3.12

# unzipphpMyAdmin-4.3.12-all-languages.zip

# mvphpMyAdmin-4.3.12-all-languages ​​/var/www/ html/phpMyAdmin

Open the browser at the address http://192.168.1.32/phpMyAdmin

2. Create redmine database

Log in to phpMyAdmin, root/XXXX

Create 2 redmine users, the hosts are respectively %, localhost, all have maximum permissions on the database with the same name.

Eight. Install Redmine-2.5.3

1. Deployment program file

# tar xzf redmine-2.5.3.tar.gz -C /usr/local/

# mv /usr/local/redmine{-2.5 .3.                         # gem install bundler #Note that it is executed in the root directory of the website

Successfully installed bundler-1.8.5Parsing documentation for bundler-1.8.5

Done installing documentation for bundlerafter 3 seconds1 gem installed

   ​

# bundle install --withoutdevelopment test rmagick

#Complete the installation of redmine dependency packagesbundler is a tool used to manage ruby ​​package dependencies

Gem::RemoteFetcher::FetchError:Errno::ETIMEDOUT: Connection timed out - connect(2 ) for "rubygems.global.ssl.fastly.net"port 443 (https://rubygems.org/gems/builder-3.0.0.gem)An error occurred while installing builder(3.0.0), and Bundler cannot continue.

Make sure that `gem install builder -v'3.0.0'' succeeds before bundling.

# gem install builder -v'3.0.0'

# gem install coderay -v'1.1 .0'

              #gem install json -v '1.8.2'

# gem installjquery-rails -v '2.0.3'

                                                '

                                                    #gem install ruby-openid -v '2.3.0'                                                                               '

               #bundle install --without development test rmagick # Execute again

3. Initialize the redmine database

Modify the database.yml of Redmine

# cd /usr/local/redmine/config

​​ # cp database.yml.exampledatabase.yml

                                                                                    

#Modify the corresponding database connection information

production:

adapter: mysql2

database: redmine

host: 192.168.1.XXXX //

Recommended to use IPaddress, Instead of the machine name redmine.server, the default webrick is very inefficient in parsing the server name, resulting in a very slow response, redmine.server

username: redmine

password ) ENV=production rakedb:migrate

Generate default data

I a# rails_env = ProductionRDMINE_LANG = ZH RAKE RedMine: Load_Default_Data

4. ugin_assets

# chown -R redmine/usr/local/redmine/

                                                                                                                                                   , , ,                                              ,,,,,,,,,,,,,,,,,,,,,,,, ​​;public/plugin_assets (If it does not exist, create the path, plugins resource)

5.      Modify the redmine configuration file

# cpconfiguration.yml.example configuration.yml

# mkdir -p /home/data /redmine/attachments

                                                                                                           var/log/redmine N #Chown -R redmine.redmine/var/log/redmine

# vi configuration.yml

Delivery_Method: SMTP

E

Delivery_Method: Async_smtp

attachments_storage_path: /home/data/redmine/attachments

            scm_stderr_log_file:/var/log/redmine/scm_stderr.log

                                                                                                                                                                                                     

                                                                                                                                              # Make the www user have bash permissions, and the lnmp script installation www user does not have bash permissions

                                                                                server webrick -e production -d"or # rubyscript/server webrick -e production -d

or # ruby/usr/local/redmine/script/server webrick -e production –dAddress: http:/ /IP:3000 (Note: Open iptables 3000 port number)

Default administrator user:login: admin

password: admin

How to stop the service: (The ps command finds out the pid number of this process and then kills it. This seems to be the only way at the moment. I looked in --help and there is no stopping parameter.)

# ps aux | grep ruby

# kill -9 [PID]

9. Integrate Apache and Redmine

1. Install Passenger

# gem install passenger

Fetching: passenger-5.0.4.gem (100%)

Building native extensions. This could take a while...

Successfully installed passenger-5.0.4

Parsing documentation for passenger-5.0.4

Installing ri documentation for passenger-5.0.4

Done installing documentation for passenger after 5 seconds

1 gem installed

# passenger-install- apache2-module

                      Welcome to the PhusionPassenger Apache 2 module installer, v5.0.4.

This installer will guide you through the entire installation process. can expect from the installation process:

1. The Apache 2 module will be installed for you.

2. You'll learn how toconfigure Apache.

3. You'll learn how to deploya Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to

solve any problems.

Press Enter to continue, or Ctrl-C to abort.

Enter and press Enter to display

----- ---------------------------------------

Which languages ​​are you interested in?

Use to select.

If the menu doesn't display correctly, press '!'

? ? Ruby

? Python

? Node.js

? Meteor

Continue to press Enter

Installation instructions for required software

* To install Apache 2:

* To install Apache 2 development headers:

development headers:

Please install it with yuminstall apr-devel

* To install Apache PortableRuntime Utility (APU) development headers:

Please install it with yuminstall apr-util-devel

If the aforementioned instructions didn't solve your problem, thenplease take

a look at the Users Guide:

/usr/local/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.4/doc/Users guideApache.html

https://www.phusionpassenger.com/documentation/Users%20guide%20Apache.html

# ln -s/usr/local/apache2 /etc/httpd

# mkdir -p /usr/lib/httpd

# ln -s/usr/local/apache2/modules /usr/lib/httpd/modules

# ln -s/usr/local/apache2/bin/httpd /usr/sbin/httpd

# rm /usr/sbin/apxs

# /bin/ln -s /usr/local/apache2/bin/apxs/usr/sbin/apxs

# yum install httpd-devel

# yum install apr-devel

# yum install apr-util-devel

# passenger-install-apache2-module

---------------- --------------------------Almost there!

Please edit your Apache configuration file, and add these lines: LoadModule passenger_module /usr/local/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.4/buildout/apache2/mod_passenger.so

 PassengerRoot/usr/local/ruby/ lib/ruby/gems/2.1.0/gems/passenger-5.0.4

PassengerDefaultRuby/usr/local/ruby/bin/ruby

After you restart Apache, you are ready to deploy any number of web

applications on Apache, with a minimum amount of configuration!

Press ENTER to continue.

------------------------- -------------------

Deploying a web application: an example

Suppose you have a web application in /somewhere. Add a virtual host to your

Apache configuration file and set its documentRoot to/somewhere/public:

& lt; virtualHost *: 80 & gt;

servernamewww.yourhost.com

# !!! ublic '!

                                                                                                                           s Guide for security and

optimization tips, troubleshooting and other useful information:

/usr/local/ruby/lib/ruby/gems/2.1.0/gems/passenger-5.0.4/doc/Users guideApache.html

https:/ /www.phusionpassenger.com/documentation/Users%20guide%20Apache.html

Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)

https://www.phusionpassenger.com

Phusion Passenger is a trademark of hongli lai & ninh bui.

.

In the end, the installation was successful.

2. Configure Apache to load Passenger

# vi /usr/local/apache2/conf/httpd.conf

Add

LoadModulepassenger_module /usr/local/ruby/lib/ruby/gems/2.1.0/ gems/passenger-5.0.4/buildout/apache2/mod_passenger.so

PassengerRoot/usr/local/ruby/lib/ruby/gems/2.1. 0/gems/passenger-5.0.4

PassengerDefaultRuby/usr/local/ruby/bin/ruby

Modify

LoadModulerewrite_module modules/mod_rewrite.so

##

Note Cancel Iincludeconf/EXTRA/HTTPD-VHOSTS.CONF ’s

#:wq exit3. Create a virtual machine for redmine# vi /usr/local/apache2/conf/extra/httpd-vhosts.conf

Place the two tags

The contents are all deleted

Append                                                             2.168.1.XXXX

ServerAdmin maoyunzhi@jorudan .com.cn

# !!! Be sure to point DocumentRoot to'public'!

DocumentRoot /usr/local/redmine/public

                  # Uncomment this if you're on Apache>= 2.4: Require all granted

AddHandler fcgid-script .fcgi

FCGIWrapper"/usr/local/ruby /bin/ruby /usr/local/redmine/public/dispatch.fcgi".fcgi

  ErrorLog"/var/log/httpd/redmine-error_log"

 "/var/log/httpd/redmine-access_log" common

:wq Exit

# cd /data/wwwroot/redmine/public/

# cp dispatch. fcgi.exampledispatch.fcgi

# cp htaccess.fcgi.example. htaccess

4. Modify file permissions

# chown –R apache.apache/home/data/redmine

# chown –R apache.apache/usr/local/redmine

# chown –R apache.apache/var/log/redmine

5. Restart apache

# service httpd restart

Open the browser, http:/ /192.168.1.32:8000/

十. Install Bugfree-3.0.41. Install bugfree-3.0.4

# unzipbugfree_v3.0.4.zip

# cd /var/www/html/bugfree3.0.4/

# chmod -R 777 install

2. Configure bugfree parameters

Open the browser http://192.168.1.32/bugfree3.0.4/install/, check the path permissions, and modify them one by one

# mkdir -p /home/data/bugfree/BugFile

# chown -R apache.apache /home/data/bugfree

# chmod -R 755 /home/data/bugfree

# chmod -R 777 assets

# chmod -R 777 protected/runtime

# chmod -R 777 protected/config

# ln -s/home/data/bugfree/BugFile BugFile

# viprotect/config.sample.php

                   修改'uploadPath' => '../BugFile',

'uploadPath' =>'/home/data/bugfree/BugFile',

'picPreviewApp'=> 'http://'.$_SERVER['SERVER_ADDR'].'/BugFile',

'picPreviewApp' =>'http://'.$_SERVER['SERVER_ADDR'].':8008/BugFile',

:wq 退出

# vi install/index.php

         修改define('UPLOADPATH',realpath(dirname(dirname(dirname(__FILE__)))).DIRECTORY_SEPARATOR.'BugFile');

define('UPLOADPATH', realpath((dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'BugFile');

//取消一对dirname取值

         :wq退出

         # vi protected/extensions/kindeditor4/assets/php/upload_json.php

                   修改$save_path = '../../.. /BugFile/';

$save_path ='/home/data/bugfree/BugFile/';

$save_url = 'http://'.$_SERVER['SERVER_ADDR'].'/BugFile/';

$save_url= 'http://'.$_SERVER['SERVER_ADDR'].':8008/BugFile/';

:wq 退出

         再次刷新安装配置页面,所有前置条件都满足后,选择继续,进入数据库配置界面。

打开phpMyAdmin界面,新建2个用户bugfree,设置主机分别为%和localhost,,密码zaq12wsx,并创建同名数据库。

在bugfree的数据库配置界面中,服务器为localhost,数据库名为bugfree,密码zaq12wsx,点击安装。

3.      配置apache虚拟服务器

# vi /usr/local/apache2/conf/extra/httpd-vhosts.conf

        

    ServerAdmin info@jorudan.com.cn

    DocumentRoot"/var/www/html/bugfree3.0.4"

    ServerName bugfree.jorudan.com.cn

    ErrorLog"/var/log/httpd/bugfree-error_log"

    CustomLog"/var/log/httpd/bugfree-access_log" common

   

        Options Indexes FollowSymLinks IncludesIncludesNOEXEC ExecCGI

   

         :wq退出

4.      重启Apache

# service httpd restart

 

如果修改没有生效,请删除assets下所有文件,在刷新页面。

以上就介绍了CentOS6.5+apache+mysql+php+Ruby+Redmine+phpMyAdmin+BugFree,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template