----------- --------
110 Beijing
120 Tianjin
[Related software]
Redhat 7.0 Linux
Apache 1.3.12
PHP 4.0.0
Sybase 11.9.2 for Linux/intel
[Installation process]
1. Install Red HAT 7.0
I chose the customer full installation, because when Sybase is installed, there should be an X environment.
After the installation is complete, create a working directory/home/workshop, upload all the installation files
sybase-common-11.9.2-3.i386.rpm
sybase-openclient-11.1.1-3.i386.rpm
Apache_1.3.12.tar.gz
Php-4.0.0.tar.gz
2. Install Sybase's open-client.
Under the/home/workshop directory:
host_name# Rpm-hiv sybase-common-11.9.2-3.i386.rpm
host_name# Rpm-hiv sybase-openclient-11.1.1-3.i386.rpm
The default installation path is/OPT/SYBASE-11.9.2/, and a Sybase user is used to change the Sybase user's password with the passwd Sybase command.
Now, with Sybase logging on to your Linux computer, the computer will show
------------------------------------------------------------------------
C-shell Users:
source. CSHRC
=> Start @ #srvbuild @#
Srvbuild
Documentation towards any Sybase product can is found on our Dynaweb
Pages accessible from our World Wide Web site:
We would like your to register your installation
Information about this Sybase adaptive Server Enterprise Release
For Linux available from:
Enjoy this Sybase adaptive Enterprise Server installation!
bash-2.04$
------------------------------------------------------------------------
At this point, start the Xwindow environment,
Bash-2.04$startx
In the Xwindow environment, run/opt/sybase-11.9.2/bin/dsedit, select Add New Server Entry,
Server Name:devhost (write at will)
Then choose Add New Network Transport,
Transport TYPE:TCP
Host name:211.5.6.50 (IP of server)
Port number:5000 (the ports that Sybase server listens on)
When you are finished, make sure to exit.
The isql command is available to verify that the connection is successful.
Bash-2.04$isql-usa-sdevhost
When you enter a password, you appear
1> Use test
2> Go
1> SELECT * FROM Test. Province
2> Go
province_id Province
----------- --------
110 Beijing
120 Tianjin
130 Hebei Province
140 Shanxi Province
150 Inner Mongolia
210 Liaoning Province
220 Jilin Province
230 Heilongjiang
... ...
610 Shaanxi Province
620 Gansu Province
630 Qinghai Province
640 Ningxia
650 Xinjiang District
660 Tibet District
(Rows affected)
1>
Ah, now the openclient is complete.
2. Install Apache and PHP4
host_name/home/workshop# TAR-VZXF apache_1.3.12.tar.gz
host_name/home/workshop# TAR-VZXF php-4.0.0.tar.gz
Go to Apache directory, precompile Apache
#./configure--prefix=/home/apache
We have Apache installed in the/home directory.
Enter PHP directory, compile PHP + sybase
#cd. /php-4.0.0
#./configure--with-apache=. /apache_1.3.12
--with-mysl=no
--with-sybase-ct=/opt/sybase-11.9.2/
--enable-ftp
--enable-track-vars
# make; Make install
# CP Php.ini-dist/usr/local/lib/php.ini
# CD ... /apache_1.3.12
#./configure--prefix=/home/apache--activate-module=src/modules/php4/libphp4.a
# make; Make install
The compilation is complete and now you need to modify some of the configuration files.
#cd/home/apache/conf
#vi httpd.conf
Modify the DirectoryIndex index.html index.php3 index.php Line
Remove the # in front of the AddType application/x-httpd-php. PHP Line
Join a line AddType application/x-httpd-php. php3
Finally, you need to modify several parameters
ServerName
ServerAdmin
DocumentRoot "/home/apache/htdocs"
Start Apache
Cd.. /bin
./apachectl Start
Now, to write a file, let Apache start when the computer starts.
And you'll edit/etc/rc.d/rc.sysinit, add Auto_run file at the last line.
Auto_run is created At/usr/sbin and with +x mode.
Auto_run is:
#!/bin/sh
/home/apache/bin/apachectl restart
==================================================================================
The installation part is complete.
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.