xammp server

bond007

Cadet 2nd Year
Registriert
Feb. 2005
Beiträge
16
ok jetzt mal ernzthaft

wie richcte ich einen server (für zuhause)

mit mysql und php und das andere ein
 
Vergiss Xamp, hier eine kleine Anleitung:

"In this tutorial, you'll learn how to install and configure both the Apache web server and PHP on a Windows system. I tried to keep this text as short as possible; if you encounter any problems or have any questions regarding this tutorial, just drop me some lines...I'll get back to you as soon as possible:)

(1) Download the latest Apache & PHP binaries for Win32

You can get the Win32 binaries directly from the Apache and PHP web sites (http://httpd.apache.org/dist/ and http://www.php.net/downloads.php, respectively).

(2) Install Apache

Simply run the Apache executable you have just downloaded - the install wizard should be pretty self-explanatory. I recommend installing the web server in C:\Programs\Apache, but of course you're free to change this to anything else you want. When asked about the installation type, choose "Typical".

(3) Configuration of the Apache web server

Using Notepad or another text editor, open the file httpd.conf which is located in the conf folder in the Apache installation directory (In my case, the full path would be C:\Programs\Apache\conf\httpd.conf).

Scroll down until you find the line

ServerAdmin you@your.address

Change the e-mail address to a real value, e.g. your own e-mail address. Some lines below you'll find the line

#ServerName new.host.name

Remove the '#' and enter localhost for the server name. The entry should now look like this:

ServerName localhost.

When finished setting the configuration directives, save http.conf.


(4) Test Apache

In the Windows start menu, choose Apache Web Server > Management > Start Apache. You should now see a small console window. Open your browser and type localhost in the address field. After pressing Enter you should see an HTML page confirming the successful installation of the Apache web server. To stop Apache, simply choose Apache Web Server > Management > Start Apache in the start menu.

Note: If you are running Windows NT/2000, you might want to install Apache as a service. To do this, simply choose Apache Web Server > Apache as a service > Install service in the start menu.


(5) Install PHP

To install PHP, simply extract all the files in the downloaded zip archive to C:\php4 (If you choose another directory, don't forget to modify the Apache configuration directives accordingly as described later in this text).

(6) Configure PHP & Apache

In Windows Explorer, open the PHP installation directory. Rename the file php.ini-dist in this folder to php.ini. Open the file in Notepad or another text editor, and scroll down until you see the line

[mail function]

Directly below, you should find the entry

SMTP = localhost

If you have an SMTP server running on your local machine, simply leave this entry unchanged. Otherwise, replace localhost with the host name of an SMTP server you know (e.g. the mail server of your ISP). Now save php.ini.

After that, open Apache's configuration file httpd.conf as described in (3). Scroll down until you see the entry

ScriptAlias /cgi-bin/ "C:/Programs/Apache/cgi-bin/"

Directly below, insert the following line:

ScriptAlias /php4/ "C:/php4/"

Scroll down some more until you see the line

AddType application/x-tar .tgz. Below, add two more entries:

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

Once again, scroll down until you see a section starting with the lines

# Action lets you define media types that will execute a script whenever
# [...]

Insert the line

Action application/x-httpd-php /php4/php.exe

below the comments and save httpd.conf.


(7) Test PHP

In a text editor, type

<?php phpinfo(); ?>

and save the text file as phpinfo.php. Move it to the folder htdocs located in your Apache installation directory (in my case: C:\Programs\Apache\htdocs\phpinfo.php). Now open your web browser and type

http://localhost/phpinfo.php

in the address field. After pressing Enter you should see a page similar to this one.


That's it...you have successfully installed Apache and PHP, and can now start coding your own PHP scripts!"

Dann installierst du einfach noch MySQL.
 
das is ja leicht einfach hier son englisches tutorial einzufügen..

also ich finde mit xampp geht das schon recht leicht .. du musst im control panel einfach nur mysql und apace starten ...

dann gibts du in deinem browser fenster "localhost" ein und kannst den da konfigurieren
 
jo und pass auf das dein server nicht von aussen erreichbar ist.

ist nur ein testsystem und gerade die sicherheit ist nach der installation nicht so großartig :) als "richtiger" server nur bedingt geeignet
 
Wenn du allerdings Zeit und lust hast verweise ich immer wieder gerne an
http://www.debianhowto.de/de:howtos

Sollte wenn man sich mehr als einen tag zeit nimmt eigentlich zu schaffen sein. Und dann hast du auch nen Server "wie die Großen". Sprich nen system dass man ruhig auch in der echten Welt einsetzen könnte.

mfg
 
Zurück
Oben