FW: SCO 5.0.5/Apache/MySQL/PHP

From: Date: Thu, 07 Dec 2000 15:26:21 +0000
Subject: FW: SCO 5.0.5/Apache/MySQL/PHP
Groups: php.install 
Request: Send a blank email to php-install+get-1090@lists.php.net to get a copy of this message
Dear PHPers, I am using a cookbook recipe for installing the above config. It seems to working pretty well, but in the cookbook they had the SCO Development System, and I just have the SCO Enterprise System, so I have had to get by with the SCO Development Kit and the Linker and Libraries. I was doing great until I got to configuring PHP. It errored out saying "Something is likely to be messed up here, because the configure script was unable to detect a simple feature...". I have attached the debug.log (which appears to be telling me the problem, although I don't understand it). Can you take a quick look and let me know what you think may work? I am also attaching the cookbook recipe that I am using. Thanks! Very truly yours, Rob G.

These instructions outline the steps necessary to create from scratch the web development environment. The versions referenced in this document are not required with the exception of the GNU compiler. You need at least 2.95.2. The paths referenced in this document can be changed to those of your choice. Step #1: Install SCO Development Kit The SCO Development Kit must first be installed in order to compile the GNU source code. Version: 5.1.1A 1. Insert SCO OpenServer 5.0.5 Install CD 2. custom 3. Select Software 4. Select Install New 5. Select From (system_name) 6. Select Media Device: CD-ROM Drive 0 7. Tag the SCO OpenServer Development System (ver 5.1.1A) 8. Select Install Step #2: Install GNU make Version: 3.78.1 1. cd <path_dir>/make-3.78.1 2. ./configure 3. make 4. make install Step #3: Install FSU-pthreads Version: 3.5c 1. cd <path_dir>/FSU-pthreads-3.5c 2. cp -r ./* /usr/local 3. ln -s /usr/local/lib/libgthreads.so /usr/lib/libgthreads.so Step #4: Install bison Version: 1.28 1. cd <path_dir>/bison-1.28 2. configure 3. make 4. make install Step #5. Install GNU gcc compiler Version: 2.95.2 1. cd <path_dir>/gcc-2.95.2 2. configure 3. make bootstrap LANGUAGES="c c++" 4. make install LANGUAGES="c c++" Step #6: Install zlib Version: 1.1.3 1. cd <path_dir>/zlib-1.1.3 2. configure 3. make 4. make install 5. ln -s /usr/local/lib/libz.so /usr/lib/libz.so Step #7: Set PATH, LD_LIBRARY_PATH, LIBPATH and MANPATH Make sure you put /usr/local/bin before /usr/bin so that the GNU compiler and make are used and not the SCO versions. Set Environment Variables: 1. vi /.profile 2. PATH=./:/usr/local/bin:/bin:/usr/bin:/etc:/d/mysql/bin:/usr/local/lib/gcc-lib/i686-pc-sco3.2v5.0.4/2.95.2 3. LD_LIBRARY_PATH=/usr/lib:/usr/css/lib:/lib:/usr/local/lib:/usr/local/lib/gcc-lib/i686-pc-sco3.2v5.0.4/2.95.2 4. LIBPATH=/usr/lib:/usr/css/lib:/lib:/usr/local/lib:/usr/local/lib/gcc-lib/i686-pc-sco3.2v5.0.4/2.95.2 5. MANPATH=scohelp:/usr/man:/usr/local1/man:/usr/local/man:/usr/skunk/man This completes the development environment phase. The rest of the this document is for compiling and installing MySQL, PHP and Apache. ################ ################ Step #8: Install MySQL Version: 3.23.28 1. cd <path_dir>/mysql-3.23.28 2. make distclean This step may or may not be necessary depending on the current status of the directory tree. However, it doesn't hurt to run it. 3. configure --prefix=/d/mysql MySQL is being installed in /d/mysql. Substitute your desired path. If --prefix is ommitted entirely, then the default /usr/local/mysql is used. 4. make 5. make install 6. ln -s /d/mysql/lib/mysql/libmysqlclient.s10 /usr/local/lib Check /d/mysql/lib/mysql for a new version of the libmysqlclient. If one exists then relink (ln command) that version into /usr/local/lib. If this is just a version upgrade where MySQL has been previously installed on the system, then steps 7-12 do not need to be redone. 7. cd /usr/local/bin 8. ln -s /d/mysql/bin/* . 9. mysql_install_db 10. cp /d/mysql/share/mysql/mysql.server /etc/init.d 11. chmod 500 /etc/init.d/mysql.server 12. ln -s /etc/init.d/mysql.server /etc/rc2.d/S99mysql Step #9: Deal With NetScape If NetScape is installed, you have three options: A. Remove it completely as follows: 1. Login as root. 2. Stop the NetScape Administrator: /usr/internet/ns_httpd/stop-admin 3. Stop all other NetScape server processes: /usr/internet/ns_httpd/httpd-<Server Name>/stop To get a listing of servers just change to /usr/internet/ns_httpd and do an "l" for a directory listing. All servers will begin with httpd-<some server name>. 3. Type: custom -r SCO:Atlasadm 4. Type: custom -r SCO:FASTTRACK 5. Type: rm -r /usr/internet B. Simply stop the NetScape port 80 sever (Step 3 in option A). Also, this server, if it is not going to be used, could be removed. Use The NetScape Administrator to stop and remove. There are too many instructions for this to post here. C. Configure Apache to use a port other than 80. This will allow Apache and Netscape to coexist. However, there is no reason to have NetScape at all if you are going to have Apache. Step #10: Configure Apache Version: 1.3.14 This step is necessary before installing PHP. 1. cd <path_dir>/apache_1.3.14 2. make distclean This step may or may not be necessary depending on the current status of the directory tree. However, it doesn't hurt to run it. 3. configure --prefix=/usr/internet/apache Step #11: Install PHP4 Version: 4.0.3pl1 1. cd <path_dir>/php-4.0.3pl1 2. vi configure 3. search for all occurrences of -lmysqlclient 4. add -lz to each occurrence: ex: MYSQL_SHARED_LIBADD "-lmysqlclient $MYSQL_SHARED_LIBADD" change to: MYSQL_SHARED_LIBADD "-lmysqlclient -lz $MYSQL_SHARED_LIBADD" 5. save the configure file 6. make distclean This step may or may not be necessary depending on the current status of the directory tree. However, it doesn't hurt to run it. 7. configure --with-apache=../apache_1.3.14 --with-mysql=/d/mysql --enable-track-vars --enable-sysvsem --enable-sysvshm 8. make 9. make install 10. cp php.ini-dist /usr/local/bin/php.ini NOTE: To create PHP as a stand alone application: 11. make distclean 12. configure --with-mysql=/d/mysql --without-xml --enable-sysvsem --enable-sysvshm 13. make 14. make install The standalone PHP binary will install in /usr/local/bin. Step #11: Install Apache Version: 1.3.14 1. cd <path_dir>/apache_1.3.14 2. make distclean This step may or may not be necessary depending on the current status of the directory tree. However, it doesn't hurt to run it. 3. configure --prefix=/usr/internet/apache --activate-module=src/modules/php4/libphp4.a 5. make 6. make install 7. Customize your /usr/internet/apache/conf/httpd.conf There are a number of Apache configuration options to consider. I have listed a few of them below. Port You may need to change the port number that Apache listens on. It defaults to port 80. MinSpareSevers MaxSpareServer StartServers User Group ServerAdmin DocumentRoot <Directory> Entries You will need to add "ExecCGI" to the Options directive for the directory root that is going to use Server Side scripting. You may also want to add "Includes" as well. DirectoryIndex index.html index.php index.php3 This will allow php scripts to act as index pages. ScriptAlias AddType Application/x-httpd-php .php .php3 AddType Application/x-httpd-php-source .phps You will need to add these in order to get php to work. There are many other options to consider in setting up Apache. Read through the httpd.conf file carefully. Setps 8-11 only need to be done on a new install. If you are upgrading only, these steps do not need to be redone. 8. cp src/support/apachectl /usr/internet/apache/bin 9. ln -s /usr/internet/apache/bin/apachectl /etc/apache 10. ln -s /etc/apache /etc/init.d/apache 11. ln -s /etc/init.d/apache /etc/rc2.d/S96apache
« previous php.install (#1090) next »