57 lines
2.0 KiB
Plaintext
57 lines
2.0 KiB
Plaintext
|
#!/bin/bash
|
|||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
|||
|
#dieses Framework wird im CVS Repository
|
|||
|
#:pserver:www.compuextreme.de/Data/cvs zur Verf<72>gung gestellt
|
|||
|
#
|
|||
|
#Lage dieser Datei im Archiv: $Source$
|
|||
|
#
|
|||
|
#(c) 2003 by Harald Kueller
|
|||
|
#This program is free software; you can redistribute it and/or
|
|||
|
#modify ist under the terms of the GNU General Public License
|
|||
|
#as published by the Free Software Foundation; either version
|
|||
|
#2 of the License, or (at your option) any later version.
|
|||
|
#
|
|||
|
#This program is distributed in the hope that it will be useful,
|
|||
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|||
|
#See the GNU General Public License for more details.
|
|||
|
#
|
|||
|
#You should have received a copy of the GNU General Public License
|
|||
|
#along with this program; if not write to the Free Software Foundation,
|
|||
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
#
|
|||
|
#Beschreibung:
|
|||
|
#Script, welches nach der phpinstallation die httpd.conf
|
|||
|
#so modifiziert, das apache php l<>d.
|
|||
|
#
|
|||
|
#Aufrufparameter:
|
|||
|
#keine
|
|||
|
#
|
|||
|
#Letzte <20>nderung von: $Author$
|
|||
|
#Datum der letzten <20>nderung: $Date$
|
|||
|
#Version der Datei: $Revision$
|
|||
|
#
|
|||
|
#$Log$
|
|||
|
#Revision 1.5 2006/06/18 14:40:41 segler
|
|||
|
#httpd.conf saved
|
|||
|
#
|
|||
|
#Revision 1.4 2006/05/23 13:59:20 segler
|
|||
|
#AddType brauchen wir auch und php5 ist aktuell
|
|||
|
#
|
|||
|
#Revision 1.3 2003/11/12 09:50:19 kueller
|
|||
|
#Bugfix im sed aufruf
|
|||
|
#
|
|||
|
#Revision 1.2 2003/11/12 09:14:12 kueller
|
|||
|
#Kommentar anpassung.
|
|||
|
#
|
|||
|
#Revision 1.1.1.1 2003/11/12 09:13:13 kueller
|
|||
|
#Initialisierung php/apache Module nach php installation
|
|||
|
#
|
|||
|
#
|
|||
|
|
|||
|
if [ -f /etc/httpd/httpd.conf ]; then
|
|||
|
sed -e "s/^# LoadModule.*foo_module.*modules\/mod_foo.so/# LoadModule foo_module modules\/mod_foo.so\n#\nLoadModule php5_module modules\/libphp5.so/;s/#AddOutputFilter.*INCLUDES.*\.shtml/#AddOutputFilter INCLUDES \.shtml\n\n AddType application\/x-httpd-php \.php/;s/DirectoryIndex/DirectoryIndex index.php/" /etc/httpd/httpd.conf >/tmp/httpd.conf
|
|||
|
mv /etc/httpd/httpd.conf /etc/httpd/httpd.conf.orig.`date +%s`
|
|||
|
mv /tmp/httpd.conf /etc/httpd/httpd.conf
|
|||
|
fi
|