RPMs required to install sendmail

redhat-lsb-1.3-10.i386
mdadm-1.11.0-4.fc4.i386
fetchmail-6.2.5-7.i386
mutt-1.4.2.1-2.i386
sendmail-cf-8.13.4-2.i386


--

command to start services at boot

[root@server2 cdrom]# ntsysv ( enter )

this will give you a interface to start certain services at boot
--

Installing apache with php

Installing apache with php

 

1. Go to /usr/local/src/

 

[root@agnello src]# wget http://www.deluxnetwork.com/downloads/unix/php-4.3.2RC2.tar.gz

 

[root@agnello src]# wget   http://download.nextag.com/apache/httpd/apache_1.3.

37.tar.gz

 

2. tar –xzvf php-4.3.2RC2.tar.gz

3. tar –xzvf apache_1.3.37.tar.gz

4. you would get the following two folders

[root@agnello src]# ls

apache_1.3.37

php-4.3.2RC2

 

5. create a file called apacheinstall  and give it chown +x and edit the file add the following lines

[root@agnello src]# vi   apacheinstall

 

cd apache_1.3.xx 
./configure \
     --prefix=/www \  
     --enable-module=so \
      --enable-module=rewrite \
     --enable-shared=rewrite \ 
     --enable-module=setenvif \
      --enable-shared=setenvif \
      --enable-module=mime \
     --enable-shared=mime \
      --enable-module=mime_magic \
      --enable-shared=mime_magic \
     --enable-module=speling \
      --enable-shared=speling \
      --enable-module=dir \
     --enable-shared=dir \
      --enable-module=auth \
      --enable-shared=auth \
     --enable-module=access \
      --enable-shared=access \
      --enable-module=alias \
     --enable-shared=alias \
      --enable-module=status \
      --enable-shared=status \
     --enable-module=userdir \
      --enable-shared=userdir \
      --enable-module=vhost_alias \
     --enable-shared=vhost_alias \ 
     --enable-module=env \
      --enable-shared=env \
     --enable-module=log_referer \
     --enable-shared=log_referer \
      --enable-module=log_config \
     --enable-shared=log_config \ 
     --enable-module=log_agent \
      --enable-shared=log_agent \
      --enable-module=headers \
     --enable-shared=headers
      make
     make install 

:wq

 

6. [root@agnello src]# ./apacheinstall

7. create a file called phpinstall  and give it chown +x and edit the file add the following lines

 

 

8. [root@agnello src]# vi phpinstall

cd    php-4.3.2RC2 \

./configure

--with-mysql \

--with-apxs=/www/bin/apxs

Make

Make install

:wq

 

9. [root@agnello src]# ./phpinstall

 

10. Now, cd into your php_4.xxx directory and type:

[root@agnello src]# cp php.ini-dist /usr/local/lib/php.ini

This copies the php.ini to it's proper place.

10. Edit your httpd.conf to load the PHP module.

11. [root@agnello src]# vi /www/conf/httpd.conf 
be sure to check.
 For PHP 4      
       LoadModule php4_module libexec/libphp4.so
    For PHP 5:                 
       LoadModule php5_module libexec/libphp5.so
  
12. Tell Apache to parse certain extensions as PHP.   For example,
    let's have Apache parse the .php extension as PHP.   You could
    have any extension(s) parse as PHP by simply adding more, with 
    each separated by a space.  We'll add .phtml to demonstrate.  
      AddType application/x-httpd-php .php .phtml 
It's also common to setup the .phps extension to show highlighted PHP
     source, this can be done with:
     
      AddType application/x-httpd-php-source .phps 

 

12. Setup a Test PHP Script in /www/htdocs/test.PHP

 

<?php phpinfo (); ?>

 

13. [root@agnello src]# ln -s /www/bin/apachectl /etc/rc.d/init.d/

14. [root@agnello src]# /etc/init.d/apachectl restart

Your done

 



--

php -mysql-apache instatllation instruction

http://www.blazonry.com/scripting/install_apache.php
http://www.mayukhbose.com/new-apache-install/apacheinstall.php
http://www.php.net/manual/en/install.unix.php
http://www.phpfreaks.com/tutorials/12/1.php
http://www.xenocafe.com/tutorials/linux/centos/apache_web_server/index.php

--

how to un zip a .b2z file

tar -xjvf patch-iptables-1.3.2-1.3.3.bz2


--

Other Articles

Enter your email address: