infoCopter.com
retoh's Online Repository for myself and other Web Geeks

home | newsletter | site map

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. p-friendly
Home :: Know-how :: RedHat 8.0 Tips & Traps


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


  1. gzip -d httpd-2_0_44.tar.gz
  2. tar xf httpd-2_0_44.tar
  3. gunzip php-4.3.0.tar.gz
  4. tar -xf php-4.3.0.tar
  5. cd httpd-2.0.44
  6. ./configure --enable-so

    or
    ./configure --enable-so --enable-ssl
  7. make
  8. 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.
  9. cd ../php-4.3.0
  10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs
  11. make
  12. make install
  13. 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.
  14. 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.
  15. Use your normal procedure for starting the Apache server, e.g.: /usr/local/apache2/bin/apachectl start

What else you could do now?

  1. 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
  2. cd /var/www
  3. mv html html-redhat-old
  4. cd /usr/local/apache2
  5. chown -R nobody cgi-bin
  6. /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/
Know-How home | Must Read | What's new? | iC Site Map
link search
©1998-2004 infoCopter