Xampp

Aus Wikizone
Wechseln zu: Navigation, Suche

Mailkonfiguration für XAMPP

Man kann XAMPP so konfigurieren, dass er über einen Mail Account Mails versenden kann. Damit kann man z.B. php Mailskripte testen. In Mac kann man das eingebaute Postfix nutzen (siehe Postfix auf Mac OS) in Windows nutzt man die XAMPP Konfiguration.

Beispiel Konfiguration für Gmail Dateien:

C:\xampp\php\php.ini
C:\xampp\sendmail\sendmail.ini

php.ini [mail function]

SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = my-gmail-id@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

sendmail.ini. Replace all the existing code in sendmail.ini with following code

[sendmail]

smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=my-gmail-id@gmail.com
auth_password=my-gmail-password
force_sender=my-gmail-id@gmail.com

replace my-gmail-id and my-gmail-password restart the server using the XAMMP control panel so the changes take effect.

XAMPP Probleme lösen

Zuweilen hat xampp veraltete libs an Bord. Auch wenn auf dem Rechner die neueren Libs sind benutzt xampp die eigenen alten.

ImageMagick und GraphicsMagick funktionieren nicht

Fehlermeldung im error_log

dyld: Library not loaded: /usr/local/lib/libfreetype.6.dylib
  Referenced from: /usr/local/bin/gm
  Reason: Incompatible library version: gm requires version 18.0.0 or later, but libfreetype.6.dylib provides version 15.0.0

GraphicsMagick wurde über Homebrew installiert.

Die Pfadangabe für libfreetype.6.dylib stimmt nicht. Eigentlich nutzt XAMPP die in seinem eigenen lib Verzeichnis. Man kann diese jedoch einfach mit der aus der /usr/local/lib/ ersetzen, dann funktioniert es wieder.

xampp update

Quelle: http://www.jurkos.com/?p=854 11/2014

1. Stop services or process under XAMPP control panel and EXIT
2. Rename installation folder C:\XAMPP\… with C:\XAMPP_old\
3. Create new folder with the same name C:\XAMPP\…
4. Install there new version of XAMPP (in security options you have to write the same passwords and usernames you had before)
5. Ctrl+c or ctrl+x just website folders under C:\XAMPP\htdocs\*… (don’t copy xampp folder and others who came with installation)
6. Create databases (with same name as before), this will create just new folder under C:\XAMPP\mysql\data\* with file inside db.opt + copy ibdata1 file under folder C:\XAMPP\mysql\
7. Copy content of older C:\XAMPP_old\mysql\data\*\ to C:\XAMPP\mysql\data\*\ and skip the file db.opt
8. If you did changes in previous xampp of file httpd-vhosts.conf under C:\XAMPP\apache\conf\extra\ don’t forget to copy it right and create folder C:\XAMPP\log
9. Start XAMPP control panel, start apache and mysql
10. DONE

Bessere installation auf Mac

in XAMPP > xamppfiles > htdocs Symlink auf allgemeinen www Ordner setzen (z.B. unterste Ebene Festplatte oder in Benutzerordner.