Gå til innhold

Web Programmer


Anbefalte innlegg

Videoannonse
Annonse

Ser ingen grunn til at du ikke kan installere det manuelt, det tar bare 10 minutter lenger tid, men til gjengjeld sitter du da med oppdaterte versjoner, og er ikke avhengig av at "forxserv" el. blir oppdatert for å selv oppdatere.

 

Her er en guide:

 

Manually installing Apache/PHP/mySQL

~~~~~~~~~~~~~~~~~~~~~~~~~

 

This is actually very easy, and it will be a lot easier to maintain/upgrade than a preconfigged package...

 

1. Download the following four files ...

Apache2 -> http://www.apache.org/

PHP -> http://www.php.net/

mySQL -> http://www.mysql.com/

phpMyAdmin -> http://prdownloads.sourceforge.net/phpmyadmin/

 

2. Install Apache2 to c:/Apache

 

3. Unzip mysql zip and install into c:/Apache/mysql

 

4. Unzip php and copy all files into c:/Apache/php

 

5. Copy the following files into windows/system32 ...

all files from php/sapi

all files from php/dlls

php/php4ts.dll

 

6. Copy php/php.ini-dist into windows directory and rename it to php.ini

 

7. Open php.ini in text editor and make the following changes ...

change extension_dir to "c:\Apache\php\extensions"

change display_startup_errors to On

change upload_tmp_dir to "c:\apache\php\tmp" (dont forget to create this folder)

uncomment extension = php_gd2.dll

 

8. Save php.ini and close it

 

9. Open C:\Apache\Apache2\conf\httpd.conf in a text editor and make the following changes ...

Under the LoadModule entries, add ...

LoadModule php4_module "c:/Apache/php/sapi/php4apache2.dll"

AddType application/x-httpd-php .php

Change DirectoryIndex index.html index.html.var to DirectoryIndex index.html index.html.var index.php

 

10. Save httpd.conf and close it

 

11. Open the c:\Apache\mysql\bin folder and run winmysqladmin.exe, enter a username and password when prompted - WRITE THEM DOWN SOMEWHERE SAFE!

 

12. Start your Apache server.

 

Securing your htdocs folder

~~~~~~~~~~~~~~~~~~

 

If you want to keep your local server locked to outside users you can easily add a .htaccess that requires you to enter a username/password to gain access ...

 

1. Select Run from your start menu and type C:\Apache\Apache2\bin\htpasswd.exe -c .users yourname

 

2. Enter your password when prompted

 

3. This will create a file called .users inside your apache2/bin folder

 

4. Open your text editor and enter this text ...

AuthName "Restricted"

AuthType Basic

AuthUserFile "C:/Apache/Apache2/bin/.users"

<LIMIT GET POST>

require valid-user

</LIMIT>

 

5. Save the file as .htaccess in yout Apaches2/htdocs folder

 

6. Open Apache2/conf/httpd.conf in your text editor

 

7. Change the line AllowOverride None to AllowOverride AuthConfig

 

8. Save and exit

 

9. Restart Apache, when you go to your local server (http://localhost) you will have to enter the username and password you entered to gain access.

 

Installing phpMyAdmin

~~~~~~~~~~~~~~

 

1. Unzip the phpMyAdmin zip you downloaded earlier and copy it into your Apache2/htdocs folder

 

2. Open config.inc.php in a text editor

 

3. Enter the full path to your phpMyAdmin folder in the $cfg['PmaAbsoluteUri'] variable, ie, $cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin-2.5.1';

 

4. Enter your mySQL username that you entered earlier in the $cfg['Servers'][$i]['user'] variable

 

5. Enter your mySQL password that you entered earlier in the $cfg['Servers'][$i]['password'] variable

 

6. Save the file and exit - phpMyAdmin is now ready to use and can be found at http://localhost/<your_phpMyAdmin_folder>

Lenke til kommentar

PHPTriad er ELDGAMMELT. Det betyr *mange* sikkerhetshull

Sette det opp manuelt er vanskelig! har strevd mye med det selv, det ville bare ikke fungere.

 

Men hvorfor må du ha FoxServ BETA da? Hva er galt med siste, stabile versjon? Fungerer helt knall her!

Lenke til kommentar
PHPTriad er ELDGAMMELT. Det betyr *mange* sikkerhetshull

Sette det opp manuelt er vanskelig! har strevd mye med det selv, det ville bare ikke fungere.

 

Men hvorfor må du ha FoxServ BETA da? Hva er galt med siste, stabile versjon? Fungerer helt knall her!

vel, jeg bare teste betan.. men den var ikke vellykket.. :p

 

Nå har jeg satt opp min egen.. men.. får en feil:

 

WinMySQLAdmin 1.4

 

Fails t o start the Service.

Please wait 30 seconds to try again.

 

wtf... :grine:

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...