mirror of https://github.com/tLDP/LDP
updated
This commit is contained in:
parent
9da3c3b849
commit
310e0a13e1
|
@ -2,7 +2,7 @@
|
||||||
<article>
|
<article>
|
||||||
|
|
||||||
<artheader>
|
<artheader>
|
||||||
<title>Linux-Apache-PHP-Sybase mini-HOWTO</title>
|
<title>Sybase-PHP-Apache mini-HOWTO</title>
|
||||||
<author>
|
<author>
|
||||||
<firstname>Tyson</firstname>
|
<firstname>Tyson</firstname>
|
||||||
<othername>Lloyd</othername>
|
<othername>Lloyd</othername>
|
||||||
|
@ -19,10 +19,10 @@
|
||||||
|
|
||||||
<revhistory>
|
<revhistory>
|
||||||
<revision>
|
<revision>
|
||||||
<revnumber>1.0</revnumber>
|
<revnumber>1.1</revnumber>
|
||||||
<date>2001-05-29</date>
|
<date>2001-05-29</date>
|
||||||
<authorinitials>TLT</authorinitials>
|
<authorinitials>TLT</authorinitials>
|
||||||
<revremark>Initial Release.</revremark>
|
<revremark>Updated environment configuration section, changed HOWTO name.</revremark>
|
||||||
</revision>
|
</revision>
|
||||||
</revhistory>
|
</revhistory>
|
||||||
|
|
||||||
|
@ -40,8 +40,8 @@ by reference. Send feedback to
|
||||||
<sect1 id="instlinux"><title>Install Linux</title>
|
<sect1 id="instlinux"><title>Install Linux</title>
|
||||||
<para>
|
<para>
|
||||||
This howto assumes you have already installed a working Linux system.
|
This howto assumes you have already installed a working Linux system.
|
||||||
This howto is based on a Redhat 6.2 system. I would greatly welcome any
|
This howto is based on a Redhat 6.2 system. I would appreciate any
|
||||||
information on setting this up on other distros.
|
feedback on setting this up on other distros.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -121,6 +121,15 @@ as super user and insert the following lines:
|
||||||
export DSQUERY=SYBASE
|
export DSQUERY=SYBASE
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Next you need to change to permissions of the Sybase directory. This fixes
|
||||||
|
some problems where PHP is unable to connect to the Sybase server.
|
||||||
|
Run the following command as super user:
|
||||||
|
</para>
|
||||||
|
<programlisting>
|
||||||
|
chown -R sybase:sybase /opt/sybase
|
||||||
|
</programlisting>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
To test whether your Sybase environment works, type the following:
|
To test whether your Sybase environment works, type the following:
|
||||||
</para>
|
</para>
|
||||||
|
@ -188,7 +197,7 @@ put its files when you run '<command>make install</command>'.
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
|
||||||
<sect1 id="instphp"><title>Configure Environment</title>
|
<sect1 id="instphp"><title>Install PHP</title>
|
||||||
<para>
|
<para>
|
||||||
Download the latest PHP distribution and unpack it.
|
Download the latest PHP distribution and unpack it.
|
||||||
</para>
|
</para>
|
||||||
|
@ -199,6 +208,8 @@ script. You need to pass
|
||||||
certains options to the script. To enable PHP access Sybase, you
|
certains options to the script. To enable PHP access Sybase, you
|
||||||
need <command>--with-sybase-ct</command>. You will also need to specify the web server interface
|
need <command>--with-sybase-ct</command>. You will also need to specify the web server interface
|
||||||
to use; in our case, this is Apache, so we use <command>--with-apache</command>
|
to use; in our case, this is Apache, so we use <command>--with-apache</command>
|
||||||
|
To build a CGI version of PHP, (which is also very useful as a shell scripting tool), just leave
|
||||||
|
out the --with-apache.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -334,3 +345,4 @@ Thanks.
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2262,7 +2262,7 @@ How to change your Linux system so it uses UTF-8 as text encoding. </Para>
|
||||||
Unix-and-Internet-Fundamentals-HOWTO</ULink>,
|
Unix-and-Internet-Fundamentals-HOWTO</ULink>,
|
||||||
<CiteTitle>The Unix and Internet Fundamentals HOWTO</CiteTitle>
|
<CiteTitle>The Unix and Internet Fundamentals HOWTO</CiteTitle>
|
||||||
</Para><Para>
|
</Para><Para>
|
||||||
<CiteTitle>Updated: May 2001</CiteTitle>.
|
<CiteTitle>Updated: June 2001</CiteTitle>.
|
||||||
Describes the working basics of PC-class computers, Unix-like
|
Describes the working basics of PC-class computers, Unix-like
|
||||||
operating systems, and the Internet in non-technical language. </Para>
|
operating systems, and the Internet in non-technical language. </Para>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
|
|
@ -44,7 +44,7 @@ requirements, and some resources. </Para>
|
||||||
Unix-and-Internet-Fundamentals-HOWTO</ULink>,
|
Unix-and-Internet-Fundamentals-HOWTO</ULink>,
|
||||||
<CiteTitle>The Unix and Internet Fundamentals HOWTO</CiteTitle>
|
<CiteTitle>The Unix and Internet Fundamentals HOWTO</CiteTitle>
|
||||||
</Para><Para>
|
</Para><Para>
|
||||||
<CiteTitle>Updated: May 2001</CiteTitle>.
|
<CiteTitle>Updated: June 2001</CiteTitle>.
|
||||||
Describes the working basics of PC-class computers, Unix-like
|
Describes the working basics of PC-class computers, Unix-like
|
||||||
operating systems, and the Internet in non-technical language. </Para>
|
operating systems, and the Internet in non-technical language. </Para>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
|
|
@ -18,13 +18,22 @@
|
||||||
</author>
|
</author>
|
||||||
|
|
||||||
<revhistory>
|
<revhistory>
|
||||||
|
<revision>
|
||||||
|
<revnumber>2.4</revnumber>
|
||||||
|
<date>12 June 2001</date>
|
||||||
|
<authorinitials>esr</authorinitials>
|
||||||
|
<revremark>
|
||||||
|
Where to find more.
|
||||||
|
</revremark>
|
||||||
|
</revision>
|
||||||
|
|
||||||
<revision>
|
<revision>
|
||||||
<revnumber>2.3</revnumber>
|
<revnumber>2.3</revnumber>
|
||||||
<date>22 May 2001</date>
|
<date>22 May 2001</date>
|
||||||
<authorinitials>esr</authorinitials>
|
<authorinitials>esr</authorinitials>
|
||||||
<revremark>
|
<revremark>
|
||||||
Introduction to bus tyoes.
|
Introduction to bus types.
|
||||||
Polish translatiopn link.
|
Polish translation link.
|
||||||
</revremark>
|
</revremark>
|
||||||
</revision>
|
</revision>
|
||||||
|
|
||||||
|
@ -828,11 +837,11 @@ three decimal places).</para>
|
||||||
<para>Characters are normally represented as strings of seven bits each in
|
<para>Characters are normally represented as strings of seven bits each in
|
||||||
an encoding called ASCII (American Standard Code for Information
|
an encoding called ASCII (American Standard Code for Information
|
||||||
Interchange). On modern machines, each of the 128 ASCII characters is the
|
Interchange). On modern machines, each of the 128 ASCII characters is the
|
||||||
low seven bits of an 8-bit
|
low seven bits of an
|
||||||
<firstterm>octet</firstterm><indexterm><primary>octet</primary></indexterm>;
|
<firstterm>octet</firstterm><indexterm><primary>octet</primary></indexterm>
|
||||||
octets are packed into memory words so that (for example) a six-character
|
or 8-bit byte; octets are packed into memory words so that (for example) a
|
||||||
string only takes up two memory words. For an ASCII code chart, type `man
|
six-character string only takes up two memory words. For an ASCII code
|
||||||
7 ascii' at your Unix prompt.</para>
|
chart, type `man 7 ascii' at your Unix prompt.</para>
|
||||||
|
|
||||||
<para>The preceding paragraph was misleading in two ways. The minor one is
|
<para>The preceding paragraph was misleading in two ways. The minor one is
|
||||||
that the term `octet' is formally correct but seldom actually used; most
|
that the term `octet' is formally correct but seldom actually used; most
|
||||||
|
@ -1217,7 +1226,7 @@ place...).</para>
|
||||||
file systems</firstterm><indexterm><primary>journalling file
|
file systems</firstterm><indexterm><primary>journalling file
|
||||||
systems</primary></indexterm>. These arrange traffic to the disk so that
|
systems</primary></indexterm>. These arrange traffic to the disk so that
|
||||||
it's guaranteed to be in a consistent state that can be recovered when the
|
it's guaranteed to be in a consistent state that can be recovered when the
|
||||||
system comes back up. This will speed up the boot-time integrity check a
|
system comes back up. This will speed up the boot-time integrity check a
|
||||||
lot.</para>
|
lot.</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
@ -1567,13 +1576,21 @@ Content-Length: 2982
|
||||||
Content-Type: text/html
|
Content-Type: text/html
|
||||||
</screen>
|
</screen>
|
||||||
|
|
||||||
<para>These headers will be followed by a blank line and the text of the web page
|
<para>These headers will be followed by a blank line and the text of the
|
||||||
(after which the connection is dropped). Your browser just displays that
|
web page (after which the connection is dropped). Your browser just
|
||||||
page. The headers tell it how (in particular, the Content-Type header
|
displays that page. The headers tell it how (in particular, the
|
||||||
tells it the returned data is really HTML).</para>
|
Content-Type header tells it the returned data is really HTML).</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
<sect1 id="more"><title>To Learn More</title>
|
||||||
|
<para>There is a <ulink
|
||||||
|
url="http://www.linuxdoc.org/HOWTO/Reading-List-HOWTO/">Reading List
|
||||||
|
HOWTO</ulink> that lists books you can read to learn more about the
|
||||||
|
topics we have touched on here. You might also want to read the
|
||||||
|
<ulink url="http://www.tuxedo.org/~esr/faqs/hacker-howto.html">How To Become A
|
||||||
|
Hacker</ulink> document.</para>
|
||||||
|
</sect1>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -1583,4 +1600,3 @@ fill-column:75
|
||||||
compile-command: "mail -s \"Unix and Internet Fundamentals HOWTO update\" submit@linuxdoc.org <Unix-and-Internet-Fundamentals-HOWTO.sgml"
|
compile-command: "mail -s \"Unix and Internet Fundamentals HOWTO update\" submit@linuxdoc.org <Unix-and-Internet-Fundamentals-HOWTO.sgml"
|
||||||
End:
|
End:
|
||||||
-- >
|
-- >
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue