Als erstes updaten wir Portsnap. (sollte eigendlich schon drauf sein wegen MySQL5)
PHP Code:
portsnap update
Dann installieren wir Apache22
PHP Code:
cd /usr/ports/www/apache22
PHP Code:
make install clean
Damit Apache22 immer am anfang startet bearbeiten wir noch die rc.conf
PHP Code:
ee /etc/rc.conf
Und fügen unten
PHP Code:
apache22_enable="YES"
ein. Das solltet ihr schon vom installieren des MySQL Servers kennen.
So Apache22 ist fertig installiert.
-------------
WICHTIG!!
fahrt den MySQL Server und Apache22 runter!!!
WICHTIG!
-------------
MySQL Server stoppen:
PHP Code:
/usr/local/etc/rc.d/mysql-server stop
Apache22 stoppen:
PHP Code:
/usr/local/sbin/apachectl stop
-------------
WICHTIG!!
fahrt den MySQL Server und Apache22 runter!!!
WICHTIG!
-------------
Jetzt installieren wir PHP5
PHP Code:
cd /usr/ports/lang/php5
Bei Build Apache Module ein Kreuz setzen!!
PHP Code:
make install clean
dann die extensions
PHP Code:
cd /usr/ports/lang/php5-extentions
PHP Code:
make install clean
Dann sucht zieht ihr euch per SFTP die Datei httpd.conf auf den PC
Pfad:
PHP Code:
/usr/local/etc/apache22/httpd.conf
und öffnet diese mit Notepad++ und fügt diese Zeilen rein oder ersetzt sie mit meiner Datei die es im Anhang zu downloaden gibt ;D
PHP Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Und sucht nach der Zeile
PHP Code:
DirectoryIndex index.html
Und bearbeitet diese so bzw fügt index.php vorne rein
PHP Code:
DirectoryIndex index.php index.html
Dann sucht ihr nach
PHP Code:
#Include etc/apache22/extra/httpd-languages.conf
Und macht das # davor weg dases so ist:
PHP Code:
Include etc/apache22/extra/httpd-languages.conf
Dann bearbeiten wir noch die Datei httpd-languages.conf die findet ihr hier:
PHP Code:
/usr/local/etc/apache22/extra
Dort fügen wir am Ende das ein oder ihr downloadet euch meine ;D
PHP Code:
AddDefaultCharset On
Jetzt zur Sicherheit mal rebooten
Und wir sind auch schon fertig (: