Apache|mysql used to microsft things, people also become more and more lazy:-) but still want Microsoft not to fall ~ ~, what new software package to get the first is can't wait to the CD-ROM drive inside a plug, if it can automatically run (Hey, The service is really thoughtful) jump directly to the next step, if not the words to find setup.exe,install.exe ... Anyway it's easy to fix, and then go to brew a cup of tea, slowly sit down to the side of tea and constantly hit enter, and occasionally to enter what serial no.*& (*&) (I'm shy in the bag, no registration code to go ...) Oh, I do not know where there is. Wait until the enerything is OK, and then restart the machine, a software is installed.
A few days ago, friends interested in PHP, he has a sun E3500, (Wow, the machine died ... 1G Memory Dual Sparc CPU) to help me to install a, I said, with 7, 8 years ago in the school with Xenix,vax experience, I think the past so many years, Unix is not still in place. Besides, Linux is so hot in these two years, I also play a game at home. I don't think it's a small case ...
First of all, do not want to pop, PA, PA open a few IE windows, only Ben Www.php.net, www.mysql.com, www.apache.org to download software to go. A go in, go to latest Version run, haha, sure enough, there are many *.*.tar.gz bag, I quickly when, when, when, all of a sudden put apache_1.3.12.tar.gz mysql-3.23.32.tar.gz ( Why not 3.23.5 wait for explanation), php-3.0.15.tar.gz Download down ~ ~ Oops, my eyes are dragged spent ~ ~ First rest.
Okay, now it's started. ~ -163 dial-up Networking-。。。。 Log on to the network. , went up, and then telnet ***.***.***.*** username:*** password:***
$ ls carriage, well, a lot of things are still in ~ ~, first planning a good directory, because I am a common user (friend afraid I use Super User disruptive:), I first of all the source code CP to the $home/soft directory, planning things loaded into the $HOME/apache $HOME/mysql $ HOME/PHP3 below. Installation sequence for the first installation of MySQL and then configure the Apache compiler, and then install PHP, and finally install Apache. Then modify the various configurations (this is the first to see someone else's installation documents ~ ~ Newton did not say ~ ~ to stand on the shoulders of giants ~ ~ hehe).
First of all
$tar-ZXVF mysql-3.23.32.tar.gz
Look at the end of the characters in the fast to the top string, I think the luck is good, did not think, from this moment, the nightmare has come, the decompression finished quickly half. Snapped out of a typesetting to error ..., the effect is that the filename is too long. Unexpectedly, supporting the originator of long filenames incredibly afraid of long file names. There was no way to go back to www.mysql.com to see the document, which turned out to be a bug in Sun Solaris tar. Hum, 7456. No way, according to its cue, went down a gtar-sparc.gz, this is the GNU's own tar software. The next came back first:
$gzip-D gtar-sparc.gz
Generated a file Gtar-sparc, and then ln-s Gtar-sparc GT (in order to knock a few words later, I am clumsy:) and then chmod 755 GT can now start
$GT-ZXVF mysql-3.23.32.tar.gz
Haha, all the way naturally, a mouthful of gas ~ ~
$GT-ZXVF php-3.0.15.tar.gz
$GT-ZXVF apache_1.3.12.tar.gz
Everything OK. Then start compiling, MySQL first.
$./configure--prefix= $HOME/mysql
Just started two lines, and then stopped. A look at the error prompted check GCC no; Check cc no; Wow, spitting blood and fainting!!! No, no compiler, who is that network manager? I'm going to chop him!!!!. Say, do or do (if your system has GCC or CC, you don't get too excited, hehe, see). Again to www.gnu.org see, this is the famous GCC home, said the latest version is gcc-2.95.2, I dare not, It's a gcc-2.8.1-sol26-sparc-opt.tar.gz. A GCC installation package, and a compiled libstdc2.8.1-sol26-sparc-opt library file and a make-3.76.1-sol26-sparc-local.gz , these things are necessary if GCC is to be used. Note that if Sol26 version, to this place to go under the www.sunfreeware.com, haha, that site is a good place ~ ~ Light that freeware is very tempting ah;------------------------------------- That's a lot to look at. When it came down later.
$GT-ZXVF gcc-2.8.1-sol26-sparc-opt.tar.gz
$gzip-D make-3.76.1-sol26-sparc-local.gz
$pkgadd-D gcc-2.8.1-sol26-sparc-opt (to run by Root)
$pkgadd-D make-3.76.1-sol26-sparc-local
Then add/opt/gcc281/bin to the PATH environment variable, note that you must add it, you can use the SET to see if added. Otherwise, you can not find gcc well, now GCC has, and again, and then $./configure--prefix= $HOME/mysql haha, as if passed. Next look at the output information rows of fast running, in the heart of the flattered. Who knows, not happy 2 minutes ~ ~ There is a hint checking for restartable system calls ... configure:error can not run test programs while cross Compi Ling, wow, why so commiseration!! and to see the document, OH originally GCC-2.8.1 work under sun is not very good!!!! Recommend the use of egcs-1.1.2 me .... Go to the next bar, went to see, no Egcs for Solaris 2.6 of the binary sedan, finished, the next one gcc-2.92.2-sol26-sparc-local.tar.gz look at it, better than Egcs more new. Come down later. Zzzzz, it's 3 o'clock in the evening, and I have to work tomorrow!!! Go to bed First ~
The next day
$GT-ZXVF gcc-2.92.2-sol26-sparc-local.tar.gz
$pkgadd-D gcc-2.92.2-sol26-sparc-local
Note that this version of GCC has been installed under/usr/local/bin. Of course, add this path to the front of the/opt/gcc281. Next $./configure--prefix= $HOME/mysql, the result is still in that place jam, I am going to collapse!! Also, follow the documentation prompts to insert the following line into the Config.cache file.
Ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls= ' No '}
The result is still not good. Hey, it seems that there is no way to compile mysql-3.23.32, the recognition of the bar, go to the next binary version!! So I went up and found a mysql-3.23.5-alpha version for Solaris 2.6 (I seem to remember that it was a MySQL Mirror in Singapore under the Ftp://ftp.hjc.edu.sg/mysql). $HOME the/mysql directory, and then
$CD $HOME/mysql
$scripts/mysql_install_db
$bin/mysqld &
$bin/mysqlshow
Haha, finally saw the MySQL and test two database
Next Configure apache_1.3.12
$CD $HOME/soft/apache_1.3.12
$./configure--prefix= $HOME/apache
Re-install PHP3.0.15
$CD $HOME/soft/php-3.0.15
$./configure--with-apache= $HOME/soft/apache_1.3.12--with-mysql= $HOME/mysql--with-charset=gb2312
If you have any other PHP3 module, also need to compile first, and then add it here, after a long time, through the
$make
$make Install
It's going well ~ ~ Next Apache.
$CD $HOME/soft/apache_1.3.12
$./configure--prefix= $HOME/apache--activate-module=src/modules/php3/libphp3.a
Note that it is libphp3.a that this file will be automatically generated. In addition, all command lines should be entered on one line, and if your Telnet terminal has a line limit of 80, you need to end up in another uprising line, this is important!!! Next
$make
After a lot of information, I thought the victory was in sight, and who knew it was stuck on top of it. Hint Httpd.h can't find!!! Oh, my God, tell me where to take this file,!!!. I'm guessing two GCC has a conflict, so I'm in the PATH environment variable,/opt/gcc281 refers to the front of the/usr/local/bin. Again
$make
Haha, passed it. $ sign out, hurry up
$make Install
Oooooooooooooooo,z finally see the success of compiling the message ... Bingo, Comrades, the revolution was half done.
Quickly to modify the configuration. There are several points to be noted;
$CD $HOME/apache/conf
Modify the httpd.conf file, change the following several, and remove the annotation
1, ServerName http://..... This must be removed from the annotation
2, Listen xxx.xxx.xxx:8888 (where xxx.xxx.xxx is the domain name, or IP address)
3, Port 8888 (if it is less than 1023, the root user will be able to start httpd)
4, AddType application/x-httpd-php3. php3
AddType Application/x-httpd-php3-source. Phps
Find these two lines and remove the annotations.
OK, now it's time to start Apache.
$CD $HOME/apache/bin
$apachectl start
Then go to the Htdocs directory to edit a test.php3
<?php3
Phpinfo ();
?>
Then browse http://XXX.XXX.XXX:8888/test.php3 can see the fruits of your labor in particular, there is a MySQL information ~ ~ Ah, finally finished.
Email:tan_xin@163.net oicq:1304743 icq:9637614 Test Address http://202.103.112.27:8888/bbs/index.php3
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.