[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] >> RaQ3 / MySQL / PHP INSTALL REQUIRES KERNEL HEADERS



Hi Sean,

> I still havnt managed to install the kernel headers on my RaQ3.
> I know there are quite a few people out there trying to do this too,
> (aparantly they are needed for Zend / PHP install on a RaQ3)
>
> has anyone got any instructions on how we do this, i have searched and
> tried thinhs in the Cobalt KBase.

I have never installed the ZEND cache or ZEND optimizer myself, but installed 
PHP404pl1 on a wide variety of Cobalt boxes (RaQ2, 3, 4i ,4r) with all the 
latest goodies like APC-cache, pnglib, ttf-lib and such, if they were 
required by the customer.

For just that you do not need the kernel headers. So unless I'm mistaken 
about what you have in mind, then there are easier ways to do the job. I 
apologize should I offer common knownledge all over again, as I'm new on this 
list.

Grab the PHP4 tarball and unpack it on your machine. Then go to the extracted 
directory and execute the following script (you need to create it).

You might want to remove and options which you don't need. So if you don't 
have MySQL installed, then simply remove "--with-mysql" \

Or add other options which you'd like to have.

Before you start the script you might need to check if your "httpd" 
executable is located in /usr/sbin and /usr/bin. If it is available in just 
one of those directories, then add a symlink in the other directory which 
points to the proper executable in the other directory. 

#! /bin/sh
#
# Configuration for RaQ3 (SMD.NET)
 
"./configure" \
"--with-mysql" \
"--with-apxs=/usr/sbin/apxs" \
"--enable-track-vars" \
"--with-config-file-path=/etc" \
"--enable-magic-quotes" \
"--enable-apc=shared" \
"--with-xml" \
"--enable-trans-sid" \
"--with-pgsql" \
"--with-zlib" \
"$@"

After this script has run through simply run "make". If that ends with an 
error then look at the option in the above script which gave you troubles. 
Possibly remove the option and try the script again, if you can't fix it.

If it runs without error simply execute "make install". Then check your 
/etc/httpd/conf/srm.conf to see if the extensions PHP, PHP3 and PHP4 are 
recognized:

AddType application/x-httpd-php3 .php3 .html .php .php4 .phtml
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php .phtml .php3 .php .php4

DirectoryIndex index.php index.php3 index.html index.htm index.shtmlh 
home.html home.htm

Then restart Apache and there you are: /etc/rc.d/init.d/httpd restart

If that works without error you might want to try the following script to see 
if your PHP now works:

<?
phpinfo()
?>

It should generate a status page with tons of information about PHP and your 
system environment.


Mit freundlichen Grüßen / Best regards

Michael Stauber