% master: installieren_php.tex % PHP v0.1 % 2011-06-07 (Rx) \subsection{PHP} %--------------- \begin{verbatim} cd /usr/local/src Verzeichnis wechseln tar xvfj php-5.0.1.tar.bz2 Quelldateien entpacken cd php-5.0.1 in das Quelldatei-Verzeichnis wechseln ./configure --help Hilfe zu den möglichen Optionen ./configure --with-apxs=/usr/local/apache/current/bin/apxs Apache 1.3 oder --with-apxs2=/usr/local/apache2/current/bin/apxs Apache 2 --with-mysql=/usr/local/mysql/current --with-zlib --with-ftp --with-gd --with-jpeg-dir=/usr/local/lib --enable-versioning --enable-track-vars=yes --enable-url-includes --enable-sysvshm=yes --enable-sysvsem=yes --with-config-file-path=/etc make Programm herstellen su als root anmelden make install Programm installieren cp php.ini-dist /etc/php.ini PHP-Konfiguration kopieren vi /etc/apache/httpd.conf Apache1.3 anpassen vi /etc/apache2/httpd.conf Apache2 anpassen LoadModule php5_module modules/libphp5.so Apache2 LoadModule php5_module libexec/libphp5.so Apache1.3 AddModule mod_php5.c Apache1.3 DirectoryIndex index.html index.htm index.html.var index.php index.phtml AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps exit root abmelden \end{verbatim}