Copyright (C) 2000-2012 |
Whole document tree 4. Configure EnvironmentAfter installing Sybase, you need to setup the Linux environment in order to allow clients to connect to the dataserver. The first thing we need to do is to set certain environment variables in /etc/profile. Open /etc/profile as super user and insert the following lines:
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:
To test whether your Sybase environment works, type the following:
You should see a list of databases. To test whether you can use the sample datebase, now type:
If you a list, you have sucessfully set up Sybase.
You may also want to add sybase to the list of services to run at boot time. To do this execute the following commands:
Now Sybase will start whenever you boot into runlevel 3.
4.1. Preconfigure ApacheDownload and unpack the latest Apache distribution. In the Apache directory issue the following command:
I think the 'prefix' value specifies where you want to store your html files; I just set it to the same as the apache install directory, where Apache will put its files when you run 'make install'. |