Installing apache2+php5+mysql+resin+ssl+gd+weba_php tutorials on RedhatAS3.0

Source: Internet
Author: User
RedhatLinuxAS3.0 Install APACHE2.0.50+MYSQL+PHP5+RESIN+SSL+GD and log Analysis tool (Webalizer) copyright notice: This article can be reproduced arbitrarily, please keep the integrity of the article, The original source of the article and the author's information and this statement are indicated by hyperlinks. Original source: [url]http://www.troyoo.com/article/04/07/19/171145.shtml[/url][color=red:f9cb90d4d4]http://www.troyoo.com   /ARTICLE/04/07/19/171145.SHTML[/COLOR:F9CB90D4D4] Author: troyoo Transcendence (troyoo@troyoo.com) First draft date: 2004-7-19 17:03 We assume that the system was installed without selecting any of the system's own server programs, such as Apache,mysql. If it is already installed, please uninstall it first. We also assume that the development tools have been installed.
Part I: Configuration of the Web server (i) Download the file: (assuming all under ~/server) httpd-2.0.50.tar.gz http://apache.linuxforum.net/dist/httpd/ httpd-2.0.50.tar.gz mysql-standard-4.0.20-pc-linux-i686.tar.gz http://dev.mysql.com/get/Downloads/MySQL-4.0/ Mysql-standard-4.0.20-pc-linux-i686.tar.gz/from/http://mysql.ihostunit.com/php-5.0.0.tar.gz http://cn.php.net/ Get/php-5.0.0.tar.gz/from/this/mirror resin-3.0.8.tar.gz http://www.caucho.com/download/resin-3.0.8.tar.gz openssl-0.9.7d.tar.gz ftp://ftp.openssl.org/source/openssl-0.9.7d.tar.gz J2sdk-1_4_2_05-linux-i586-rpm.bin http:/ /192.18.97.74/ecom/ecomticketservlet/beginjsecom8b.sun.com-10d7%3a40faaebd%3a6ca521da7aa699f/-2147483648/ 452386287/1/489890/489674/452386287/2ts+/westcoastfsend/j2sdk-1.4.2_05-oth-jpr/j2sdk-1.4.2_05-oth-jpr:3/ J2sdk-1_4_2_05-linux-i586-rpm.bin gd-2.0.27.tar.gz http://www.boutell.com/gd/http/gd-2.0.27.tar.gz (ii) installation 1, MySQL # Groupadd MySQL # useradd-g mysql mysql # cd/usr/local # gunzip < ~/server/mysql-standard-4.0.20-pc-linux-i686.tar.gz | Tar xvf -# ln-s mysql-standard-4.0.20-pc-linux-i686 MySQL # cd mysql # scripts/mysql_install_db--user=mysql # chown-r root. # chown-r MySQL data # chgrp-r MySQL. # Bin/mysqld_safe--user=mysql & #./mysqladmin-u root password ' password ' #使用mysqladmin修 change root password to password ' system starts automatically Run: # cp Support-files/mysql.server/etc/rc.d/init.d/mysqld # chkconfig--add mysqld with NTSYSV settings to enable MySQL to run automatically every time you start. Now that the MySQL installation is complete, you can start your MySQL service #/etc/rc.d/init.d/mysqld start 2, install the OpenSSL CD ~/server # TAR-ZXVF openssl-0.9.7d.tar.gz # C D openssl-0.9.7d #/configure--prefix=/usr/local/openssl #设置安装路径 # make # make install 3, configure Apache # cd/usr/local/# tar -ZXVF ~sea/server/httpd-2.0.50.tar.gz #./configure--enable-so--enable-ssl--with-ssl=/usr/local/openssl-- Enable-rewrite # make # make install build Apache boot file # cd/etc/rc.d/init.d # sed s/sbin/atd/local/servers/apache/bin/http d/g atd > httpd # sed s/atd/httpd/g httpd >/tmp/txt # sed s/at daemon/httpd daemon/g/tmp/txt > httpd # rm/tmp/ TXT # chmod 755 httpd # chkconfig--level 345 httpd on # chkconfig--level 0126 httpd off start and test Apache server #/ETC/RC.D/INIT.D/HTT PD start if appears: Starting httpd daemon: [OK] proves that HTTPD has been properly installed and is already running in the background, if there are other prompts, please check that your installation steps are correct. Enter http://localhost or Http://yourIP to see the Apache Welcome page. 3. Configure J2DK # CD ~/server # chmod 755 j2sdk-1_4_2_05-linux-i586-rpm.bin # RPM-IVH j2sdk-1_4_2_05-linux-i586.rpm VI ~/.bash_p Rofile changed it to the following: Java_home=/usr/java/j2sdk1.4.2_05 classpath= $JAVA _home/lib/tools.jar: $JAVA _home/lib/rt.jar PATH=$ PATH: $HOME/bin: $JAVA _home/bin: $JAVA _home/jre/bin bash_env= $HOME/.bashrc username= "root" Export USERNAME bash_env   PATH java_name CLASSPATH Log off, and then log back in to make the environment variable work # exit # Su-# java # Javac if Java and Javac run, the Java environment variable configuration is successful. 4. Install resin # cd/usr/local # TAR-ZXVF ~/server/resin-3.0.8.tar.gz # cd resin-3.0.8/#./configure--with-java-home=/usr/ja va/j2sdk1.4.2_05--with-apxs=/usr/local/apache2/bin/apxs--with-apache=/usr/local/apache2 # make # make install use VI in/ usr/local/servers/apache/htdocs/Create aA file named Test.jsp, which includes the following: <% out.println ("

Hello, world!.

"); After%> disk, use your browser to view http://202.99.11.120/test.jsp if correct, you can see "Hello, world!" Words. Otherwise, check if the resin is running, if the parameters of resin are correct, if the Java environment is installed correctly, and if the Apche is working properly. 5. Install GD # cd/usr/local # TAR-ZXVF ~/server/gd-2.0.27.tar.gz # cd gd-2.0.27/#./configure--PREFIX=/USR/LOCAL/GD2 # Make # make install 6, install PHP # cd/usr/local # tar-zxvf ~/server/php-5.0.0.tar.gz # mv php-5.0.0 php5 # CD php5/#./configur E--with-apxs2=/usr/local/apache2/bin/apxs--with-mysql=/usr/local/mysql--WITH-GD=/USR/LOCAL/GD2-- Enable-track-vars--enable-ftp # make # make install use VI to open httpd.conf, add in header: AddType application/x-httpd-php. php AddType Application/x-httpd-php-source. Phps AddType application/x-httpd-php. php3 Restart Apache for the changes to take effect #/ETC/RC.D/INIT.D/HTTPD Restart test PHP uses VI to create a file (info.php) in/www/troyoo.com, which includes the following: Use your browser to view the number of http://yourIP/info.php.   If an error occurs, check to see if Apache is running and the parameters are modified correctly. Part II: Web server log analysis software Webalizer webalizer-2.01-10-src.tgz ftp://ftp.mrunix.net/pub/webalizer/ WEBALIZER-2.01-10-SRC.TGZ # tar zxf webalizer-2.01-10-src.tgz #/configure--with-language=simplified_chinese-- WITH-GDLIB=/USR/LOCAL/GD2--WITH-GD=/USR/LOCAL/GD2 # perl/path/of/webalizer_patch.pl./#这里为了解决乱码问题, see (http:// www.troyoo.com/article/04/07/18/115309.shtml) # make # do install # Mkdir/www/troyoo.com/usage #cp webalizer/usr/bin/ #cd/etc #ls webalizer* webalizer.conf.sample #cp webalizer.conf.sample webalizer.conf.troyoo #vi Webalizer.conf.troyoo Edit the Webalizer.conf.troyoo file (change the value inside to the following): Logfile/usr/local/apache2/log/access_log outputdir/www/troyoo.com/ Usage HostName www.troyoo.com Incremental Yes PageType htm* PageType CGI PageType php hideurl *.gif hideurl *. GIF hideurl *.jpg Hideurl *. JPG Hideurl *.ra ignoreurl/taskbar* run: #/usr/bin/webalizer-c/etc/webalizer.conf.troyoo normal information: Webalizer V2.01-10 (Lin Ux2.4.21-4.el) Simplified Chinese uses the log file/usr/local/apache2/logs/access_log (CLF) output results to/www/troyoo.com/usage the hostname of the generated report is SEA is reading the history information file ... webalizer.hist is generating a report----for July 2004 is generating a comprehensive report that is saving historical information files ... 3,273,647 Records 33.57 seconds, 97517/sec automatically run: Set crontab let Webalizer run hourly: #crontab-E 0 * * * */usr/bin/webalizer-c/etc/w Ebalizer.conf.troyoo View results: Http://www.troyoo.com/usage to this end, install apache2.0.50+mysql+php5+resin+ on Redhat LinuxAS3.0 SSL and the Traffic Statistics tool (Webalizer) have been installed, and the root directory of the Web site is/www/troyoo.com, where you can provide Web services based on the PHP and Java languages. Author: Troyoo (troyoo@troyoo.com) First draft date: 2004-7-19 17:03 For more information, please visit: http://www.troyoo.com

http://www.bkjia.com/PHPjc/531912.html www.bkjia.com true http://www.bkjia.com/PHPjc/531912.html techarticle RedhatLinuxAS3.0 Install the APACHE2.0.50+MYSQL+PHP5+RESIN+SSL+GD and Log Analysis tool (Webalizer) copyright notice: This article can be reproduced, reproduced, please keep the integrity of the article, and ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.