phpbb - Installation: Fehler bei Zugriff auf Apache-Datei

Fragen zu allen Themen rund ums Programmieren außerhalb von phpBB können hier gestellt werden - auch zu anderen Programmiersprachen oder Software wie Webservern und Editoren.
Antworten
Gast

phpbb - Installation: Fehler bei Zugriff auf Apache-Datei

Beitrag von Gast »

Hallo,

ich habe soeben in folgender Reihenfolge installiert:

- Apache Webserver
- mySQL
- php
- phpbb

Bei der letzten Installation bekam ich eine Fehlermeldung angezeigt, dass
die entsprechenden Einträge in der Apache-Datei (wohl die httpd) nicht
gemacht werden konnten.

Habt Ihr da einen Tipp für mich?

Danke
Benutzeravatar
Schumi
Ehemaliges Teammitglied
Beiträge: 4925
Registriert: 07.10.2002 12:37

Beitrag von Schumi »

Kannst du uns bitte die genaue Fehlermeldung geben?
Gast

Beitrag von Gast »

Na klar,

die Fehlermeldung erscheint bei der Installation von php 4.2.3.

Apache Configuration

Sorry, the software to automatically configure
the Apache httpd.conf has not yet been written.
You will have to configure Apache manually.
See the install.txt for more details.

Danke ;-)
Benutzeravatar
Leuchte
Ehemaliges Teammitglied
Beiträge: 9179
Registriert: 26.05.2003 14:57
Wohnort: Duisburg
Kontaktdaten:

Beitrag von Leuchte »

dann ist das aber kein problem von phpBB sondern die php installation war nicht richtig
http://de.php.net/manual/de/install.apache.php
Gast

Beitrag von Gast »

Ich verstehe. Aber vielen Dank für die Hilfe und besonders für den Link.

CU ;-)
Benutzeravatar
Schumi
Ehemaliges Teammitglied
Beiträge: 4925
Registriert: 07.10.2002 12:37

Beitrag von Schumi »

See the install.txt for more details.
Dann mach das doch mal :wink:
Gast

Beitrag von Gast »

Schumi hat geschrieben:
See the install.txt for more details.
Dann mach das doch mal :wink:
Hab ich schon. Da stehen nur die Install-Tipps drin, oder?
Mein Englisch ist nicht gerade. Jaja, wieder mal typisch..

Code: Alles auswählen

 Installing PHP on Windows with Apache 1.3.x

  There are two ways to set up PHP to work with Apache 1.3.x
  on Windows. One is to use the CGI binary (php.exe),
  the other is to use the Apache module dll. In either case
  you need to stop the Apache server, and edit your
  srm.conf or httpd.conf to configure Apache to work with PHP.

  Although there can be a few variations of configuring PHP
  under Apache, these are simple enough to be used by the
  newcomer. Please consult the Apache Docs for further
  configuration directives.

  Now that version 4.1 introduces a safer sapi module, we recommend
  that you configure PHP as a module in Apache.

  To do this, you should move php4ts.dll to the windows/system (for Windows 9x/Me)
  or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any
  older file. Then you should add the following three lines to your Apache
  conf file: (swap c:/php/ for your PHP install path)

   LoadModule php4_module c:/php/sapi/php4apache.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php

If you wish to install PHP as a CGI binary, (the sapi is much better)
you need to enable the apache security fix in your php.ini by 
setting cgi.force_redirect = 1. Then, insert these lines to your conf file:

   ScriptAlias /php/ "c:/php/"
   AddType application/x-httpd-php .php
   Action application/x-httpd-php "/php/php.exe"

  Please note that you cannot use php-cli.exe with your webserver. You have
  to use php.exe which can be found in the sapi directory of your 
  PHP distribution.

  Note, we consider installing PHP like this suicidal.

  As a further precaution, we recommend you change the "/php/"
  ScriptAlias to something more random, to prevent any attempts to 
  call your binary (like the Code Red scripts) for returning a response
  other than 404.

  Remember when you have finished to restart the server, for example,
   NET STOP APACHE
  followed by
   NET START APACHE

  To use the source code highlighting feature, add the following
  line to your apache httpd.conf file:

    AddType application/x-httpd-php-source .phps

  Note, this will only work when you install php as a sapi module.
  If you wish to use this feature with the cgi binary, create a new
  file, and use the show_source("path/to/original_file.php"); function.

  On Win-Apache all backslashes in a path statement such
  as: "c:\directory\file.ext", must be converted to
  forward slashes.

----------------------------------------------------------
Benutzeravatar
Leuchte
Ehemaliges Teammitglied
Beiträge: 9179
Registriert: 26.05.2003 14:57
Wohnort: Duisburg
Kontaktdaten:

Beitrag von Leuchte »

tipps is gut :D das is ne kurz anleitung.. aber du hast ja den deutschen link ;)
Jürgen H.
Mitglied
Beiträge: 192
Registriert: 01.06.2003 23:13

Re: Linux Umgebung für Windows-Rechner schaffen

Beitrag von Jürgen H. »

Hallo,
Habt Ihr da einen Tipp für mich?
Wer recht einfach unter Windows einen Apache-Server installieren möchte könnte mal diesen Link ausprobieren.

AppServ202 ist denkbar einfach zu installieren - runterladen (18 MB), Exe-Datei ausführen, Server starten - fertig!

Funktionen:

Apache 1.3.28
phpMyAdmin 2.5.3-rc2
PHP 4.3.3
+ Calendar Function
+ BCMatch Support
+ COM Function
+ EXIF Support
+ FTP Support
+ GD bundled 2.0.15
+ Ming SWF output library
+ ODBC Support
+ XML Support
+ Java Support
+ IMAP Support
+ PDF Support
+ Printer Support
+ Sockets Support
+ ICONV Support
Zend Optimizer 2.1.0a
Downgrade MySQL to 3.23.57 for STABLE reason


Evt. zuvor bereits installierte Programme (mysql, php, phpMyAdmin) via Systemsteuerung (Software) entfernen, Daten sichern nicht vergessen. Zum Installieren des Forums die entpackte phpBB-Datei in den Ordner AppServ/.../www kopieren. Via phpMyAdmin (Aufruf: http://localhost/ , dann erscheint ein Webfrontend) eine neue Datenbank anlegen.
Aufrufen und installieren kann man das Forum dann mit http://localhost/ (dein Ordner,z.B. phpBB2)/install/install.php

Bei der Installation von AppServ selber werden mehrere Dinge abgefragt:
Server Name: localhost
Administrator E-Mail Adress: (so lassen oder eigene)
Http Port: 80 (nicht ändern)

User Name: root (sollte nicht geändert werden)
Passwort: (leerlassen)
Charset: latin1 (Grundeinstellung)

Die Angabe eines mysql-Passwortes sollte bei lokaler Verwendung nicht unbedingt notwendig sein, wenn sonst keiner Zugriff auf den Rechner hat :roll:

So kann man unter Windows NT/XP/2000 relativ einfach und schnell eine Linux-Umgebung zaubern, die (fast) voll funktionsfähig ist und (normalerweise) keine Anpassungen mehr erfordert. Zum Ausprobieren von grösseren Änderungen im Forum vor dem Aufspielen auf den Webserver oder zum Austesten von Updates/Upgrades ist so ein lokaler Server Gold wert.

Lg
Jürgen
Antworten

Zurück zu „Coding & Technik“