LINUX development server installation
Ajiefudan@sina.com
For a development system, there is a need for a good development environment, such as Email, File Management, Error Tracking System, and more. For this purpose, we need to establish a development server to provide the above functions. I spent two weeks, I got it.
System: RedHat 7.2.
Installation services include: Sendmail & Pop3 & SMTP, CVS & CVSWeb, Bugzilla & mysql, HTTP, SMB & SWAT
Installation process:
1 Install Red Hat 7.2 completely.
Machine name: FILESERVER.COM IP address: 192.168.0.70
Gateway: 192.168.0.1 Domain Name Server: 202.96.96.68 202.96.209.5
Setup Opens Sendmail, HTTPD, IPOP3, SMB, SWAT, add test users, such as Ajie
To ensure that you can connect to the Internet, otherwise you will get a lot of money to install ADSL (the sharpener is not mistaken). Reboot
2 Configuring Sendmail
2. Open POP3 and SMTP services
2.1.1 POP3
If fully installed, open the IPOP3 service, modify /etc/xinetd.d/ipop3,
Disable = yes
Change to
Disable = no
2.1.2 SMTP
Modify /etc/sendmail.cf, find SMTP,
O daemonportOptions = port = SMTP, addr = 127.0.0.1, name = MTA
Add
O daemonportOptions = port = SMTP, addr = 192.168.0.70, name = MTA
2.2 Modify Access
2.2.1 Edit / etc / hosts, add
192.168.0.70 FilServer.com FILSERVER
2.2.2 Modify / etc / mail / access, add
FilServer.com relay
Then make Access.db
2.3 /etc/rc.d/init.d/sendmail restart
2.4 test or use
2.4.1 Settings as follows in Outlook
Email: User Name @ FileServer.com, Account: User Name, Password: Landing Password.
POP3 and SMTP Server: 192.168.0.70
3 Configuring CVS
3.1 GroupAdd CVS
3.2 UserAdd CvsRoot -g CVS
3.3 Passwd CvsRoot
3.4 CD /
3.5 MKDIR CVSROOT
3.6 Chown CvsRoot.cvs / CVSROOT
3.7 CHMOD 0775 / CVSROOT
3.8 CVS -D / CVSROOT INIT
3.9 cd /etc/xinetd.d
3.10 VI CVSPSERVER, the content is as follows: Service CVSPServer
{
Socket_type = stream
Wait = NO
User = root
ENV = Home =
Server = / usr / bin / cvs
Server_Args = --Allow-root = / cvsroot pserver
}
3.11 /etc/rc.d/init.d/xinetd Restart
3.12 test or use
In other machines
Export cvsroot =: pserver: cvsroot@192.168.0.70: / cvsroot
CVS login
If you have no error after entering your password.
4 Configuring CVSWeb
4.1 under the cvsweb package, http://stud.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi/
4.2 CD /
4.3 TAR XzVF CVSWeb.Tar.gz
4.4 Chown -R Apache.Apache CvsWeb
4.5 CD CVSWeb
4.6 Modify CVSWeb.conf
Find cvsroot, put
'Configuration' => '/ TMP / CVSROOT / CONF',
changed to
'Configuration' => '/ cvsroot',
Find pats, put
# $ Env {'Path'} = '/ usr / local / bin';
Change to
$ ENV {'Path'} = '/ usr / bin';
4.7 Modify CVSWeb.cgi
Find Configuration, put
$ config = $ env {'cvsweb_config'} || '/usr/local/web/apache/conf/cvsweb.conf';
Change to
$ config = $ env {'cvsweb_config'} || '/cvsweb/cvsweb.conf';
4.8 Modify httpd.conf
CD / ETC / HTTPD / CONF
Vi httpd.conf
Add after End Of Aliases
AddHandler CGI-script .cgi
Alias / cvsWeb / "/ cvsweb /"
Options Execcgi
ALLOWOVERRIDE NONE
Directory>
4.9 /etc/rc.d/init.d/httpd Restart
5 Configuring SMB and SWAT
5.1 Modify /etc/xinetd.d/swat, remove the only from = 127.0.0.1, so SWAT can be accessed from other machines.
5.2 /etc/init.d/xinetd Restart
5.3 Open http://192.168.0.70:901 from the browser, log in with the root account
5.4 Modifying Global
Workgroup Your Working Group
Netbios Name you shared machine name
5.5 Modify Share
5.5.1 Creating a full sharing directory
CD / home
Mkdir public
chmod 0777 public
5.5.2 Perfect sharing of this directory
Create a new shared public
Path / home / public
Create Mask 0777
Security Mask 0777
Directory Mask 0777
Directory Security Mask 0777
5.6 Add User
Select Passwd
UserName Ajie
NEW passwd ******
RE-TYPE new password *******
Click Add New User
5.7 restrained SMB
6 Install Bugzilla
6.1 Upgrade Perl to the latest version 5.6.1
RPM list: (download the latest version)
Perl-5.6.1-26.72.3.i386.rpm
Perl-db_file-1.75-26.72.3.i386.rpm
Perl-cgi-2.752-26.72.3.i386.rpm
Perl-ndbm_file-1.75-26.72.3.i386.rpm
Perl-cpan-1.59_54-26.72.3.i386.rpm
6.2 Setup launches the MySQLD service, and stronze.
6.3 Using CPAN to install the needs of various components
6.3.1 Perl-McPan -e 'Install "bundle :: bugzilla"'
6.3.2 Always enter the way to select the CPAN host,
(2) Asia - à
(1) CHINA - à
(2) ftp://ftp.shellhung.org/pub/cpan here must choose 2, if you choose 1, the list of modules on the freest.cei.gov.cn site has not been updated for a long time, just can't find bundle :: bugzilla, installation will have a lot of trouble. After I was in, I don't know how to change the host of FTP, I have to reinstall the system. If you know, please tell me.
6.3.3 Ask if you want to run DBI test, select N
6.3.4 There are also some relevant components, ask if you are installed, you can choose N, save time.
6.4 Configuring MySQL
Bash # mysql -u root mysql
MySQL> Update User Set Password = Password ('new_password') where user = 'root';
mysql> flush privileges;
Mysql> Grant Select, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, DROP, REFERENCES ON BUGS. * To bugs @ localhost iDentified by 'bugs_palhost'; mysql> flush privilege
6.5 Download Bugzilla Pack http://www.bugzilla.org/
CD /
Tar xzvf bugzilla-late.tar.gz
MV Bugzilla-2.14.1 Bugzilla
Chown -r apache.apache bugzilla
6.6 Set up Perl connection for Bugzilla
Bash # MKDIR / USR / BONSAITOOLS
Bash # MKDIR / USR / BONSAITOOLS / BIN
Bash # ln -s / usr / bin / perl /usr/bonsaitools/bin/perl6.7 cd / bugzilla
6.8 ./checksetup.pl
6.9 Modify LocalConfig
Server's Host: "Localhost"
Database Name: "BUGS"
MySQL UserName: "BUGS"
Password for the "bugs" mysql account above
6.10 Run Checksetup.pl
You need to enter (bugzilla) administrator email, name, password
6.11 Modify httpd.conf
Vi /etc/httpd/conf/httpd.conf
Add after End Of Aliases
Alias / bug / "/ bugzilla /"
Options Execcgi
ALLOWOVERRIDE NONE
Directory>
6.12 /etc/init.d/httpd Restart
6.13 http://192.168.0.70/bug/ You can access Bugzilla.
6.14 After logging in with the administrator Mail and password above, there is an Edit Parameters, editing parameters,
Change USRBase to http://192.168.0.70/bug/
6.15 ok, it can be used.