Free Stuff
: links
: Neue Surf Tips
: know-how
: Zitate
: Spam Strike
: HTML Checker!
: Link Checker
: Cartoons
About IC
: friends
: lust und frust
: guestbook
: what's new
|
|
| RedHat 8.0 Tips & Traps |
|
Some useful features you were expecting to run out of the box have to adjusted manually on a RedHat 8.0 full installation. |
|
|
|
RedHat General
RedHat Setup Tips & Hints
PHP & RedHat 8.0 :-|
(latest) rpm's installed:
php-4.2.2-8.0.5
httpd-2.0.40-11
...dont't work to run PHP :-(
Here's a good advice to work around the problem:
http://www.php.net/manual/en/install.apache2.php
- gzip -d httpd-2_0_44.tar.gz
- tar xf httpd-2_0_44.tar
- gunzip php-4.3.0.tar.gz
- tar -xf php-4.3.0.tar
- cd httpd-2.0.44
- ./configure --enable-so
or
./configure --enable-so --enable-ssl
- make
- make install
Now you have Apache 2.0.NN available under /usr/local/apache2,
configured with loadable module support and the standard MPM prefork.
To test the installation use your normal procedure for starting
the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start
and stop the server to go on with the configuration for PHP:
/usr/local/apache2/bin/apachectl stop.
- cd ../php-4.3.0
- ./configure --with-apxs2=/usr/local/apache2/bin/apxs
- make
- make install
- cp php.ini-dist /usr/local/lib/php.ini
Edit your php.ini file to set PHP options. If
you prefer this file in another location, use
--with-config-file-path=/path in step 10.
- vi /usr/local/apache2/conf/httpd.conf
Edit your httpd.conf file and check that these lines are
present:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
You can choose any extension you wish here. .php is simply the one
we suggest.
The path on the right hand side of the LoadModule statement must point
to the path of the PHP module on your system. The above statement is
correct for the steps shown above.
- Use your normal procedure for starting the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start
What else you could do now?
- vi /etc/rc.d/init.d/httpd
# - apachectl=/usr/sbin/apachectl
# - httpd=/usr/sbin/httpd
apachectl=/usr/local/apache2/bin/apachectl
httpd=/usr/local/apache2/bin/httpd
- cd /var/www
- mv html html-redhat-old
- cd /usr/local/apache2
- chown -R nobody cgi-bin
- /etc/rc.d/init.d/httpd start
Configure Apache Installation
./configure --prefix=/usr/local/apache2 (typical)
Orig: /usr/local/apache2/bin/
RH8.0: /usr/sbin/
|