Hallo im Eifer des Gefechts habe ich mir jetzt zweimal LAMP aufgespielt.
Einmal von einer CD-Rom aus einem Buch und einmal von meiner SuSE 8.0
CD-Rom. Um die ganze Kiste zum Laufen zu bringen will ich jetzt die erst
Version wieder tilgen, damit ich die noch bestehenden Hänger beseitigen kann,
ohne ständig im falschen Verzeichnis zu landen.
Wie kann ich jetzt diese Daten und Links etc. wieder entfernen ohne noch anderes
zu sabotieren, was kann ich stehenlassen? Perl und PHP kann ich doch so belassen, oder?
Perl:
v5.6.1 built for i586-linux
php:
php -v PHP 4.3.1 (cgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
[PHP Modules]ctype mysql overload pcre posix session standard tokenizer xml
[Zend Modules]
Vielen Dank für Hinweise.
Ich hatte
httpd-2.0.40.tar.gz
mysql-3.23.52.tar.gz
php-4.3.1.tar.gz
pdflib-4.0.3.tar.gz
mod_perl-1.99_05.tar.gz
entpackt in /usr/local/src/lamp.
-------------------------------
MySQL habe ich wie folgt im Verzeichnis /usr/local/src/lamp/mysql/3.23.52 konfiguriert:
./configure --prefix=/usr/local/mysql/3.23.52
--localstatdir=/var/mysql/data
make
make install
Folgende Links wurden erzeugt:
ln -s /usr/local/mysql/3.23.52 /usr/local/mysql/current
mkdir /var/mysql
mkdir /var/mysql_data
scripts/mysql_install_db
/usr/local/mysql/current/bin/safe_mysqld &
/usr/local/mysql/current/bin/mysqladmin -u root passwort 'xyz'
Für den Autostart wurde folgendes eingetragen:
cp support-files/mysql.server /etc/rc.d/init.d
chmod 744 /etc/rc.d/init.d/mysql.server
ln -s /etc/rc.d/init.d/mysql.server /etc/rc.d/rc2.d
K20mysql.server
ln -s /etc/rc.d/init.d/mysql.server /etc/rc.d/rc2.d
K20mysql.server
ln -s /etc/rc.d/init.d/mysql.server /etc/rc.d/rc3.d
K20mysql.server
ln -s /etc/rc.d/init.d/mysql.server /etc/rc.d/rc3.d
K20mysql.server
---------------------------------
Apache wurde wie folgt installiert:
cd /usr/local/src/lamp/httpd-2.0.40
./configure ----prefix=/usr/local/apache2/2.0.40 -enable-modules=all --enable-so
make
make install
ln -s /usr/local/apache2/2.0.40 /usrlocal/apache2/current
Für den Autostart:
cp /usr/local/apache2/current/bin/apachectl /etc/rc.d/init.d/httpd
ln -s /etc/rc.d/init.d/httpd2 /etc/rc.d/rc2.d/S20httpd2
ln -s /etc/rc.d/init.d/httpd2 /etc/rc.d/rc2.d/K20httpd2
ln -s /etc/rc.d/init.d/httpd2 /etc/rc.d/rc3.d/S20httpd2
ln -s /etc/rc.d/init.d/httpd2 /etc/rc.d/rc3.d/K20httpd2
in der Datei /usr/local/apache2/current/conf/httpd.conf wird die Zeile
DirectoryIndex index.html ergänzt zu
DirectoryIndex index.html index.htm index.php index.pl index.cgi
anschließend noch:
chown -R nobody:nobody /usr/local/apache2/htdocs
-------------------------------------
pdf-Library wurd wie folgt installiert:
cd /usr/local/src/lamp/pdflib-4.0.3
./configure --with-shared-pdflib --enable-cxx
make
make test
make install
dann noch Änderung der Datei ld.so.conf:
gegebenenfalls die Zeile /etc/local/lib einfügen
zu Schluß:
/sbin/ldconfig
---------------------------------------
php wurde so installiert:
cd /usr/local/src/lamp/php-4.3.1
./configure
--with-apx2=/usr/local/apache2/current/bin/apxs
--with-mysql=/usr/local/mysql/current
--with-pdflib=/usr/local/
--with-zlib-dir=/usr/lib/
--enable-versioning
--enable-track-vars=yes
--enable-url-includes
--enables-trans-sid
--enable-sysvshm=yes
--enable-sysvsem=yes
--enable-ftp
--with-config-file-path=/etc
--with-gd
make
make install
Kopie der optionalen Konfigurationsdatei:
cp /urs/local/src/lamp/php-4.3.1/php.ini-dist /etc/php.ini
zuletzt Apache Konfiguration:
in der Datei /usr/local/apache2/current/conf/httpd.conf
einfügen:
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
------------------------------
phpMyAdmin "installieren":
hier sollte es reichen die Datei phpMyAdmin-2.2.0-php.tar.gz in das Verzeichnis
/usr/local/apache2/current/htdocs/phpmyadmin zu entpacken. Startbar soll es durch
den Aufruf http://localhost/phpmyadmin sein. Das geht auch nicht