Instalimi i Apache, PHP, MySQL, Perl në Windows

Le të fillojmë me instalimin Apache (HTTP-serveri). Ju mund të shkarkoni Apache instalimeve në www.apache.org shkarkoni versionin që preferoni, unë rekomandoj versionin 2.

 Ja linku për të.

Për shkarkime më të shpejta, vizitoni.
Pas shkarkimit të skedarit .msi installerit (), ekzekutoni atë. Asistenti i instalimit vazhdon, vazhdoni, përfundoni "punën" …

Installer do t'ju kërkojë disa detaje, si emri  serverë i juaji, adresa e serverit dhe adresa e emailit të administratorit. Nëse keni një emër domëni ose emër hosti, vendosni informacionin si këtë:

Emri i serverit: your_domain.org
Adresa e serverit: www.your-domain.org

Email-administratori: Ky adresë emaili është e mbrojtur nga botët spambot. Duhet të aktivizoni JavaScript për ta parë.

nëse nuk keni një, duhet të merrni një adresë të lirë:

http://www.no-ip.org/

Kontrolloni opsionin 'dëgjon si shërbim për të gjithë përdoruesit në portin 8080 ' dhe shtypni butonin Tjetër, Gati, për të përfunduar instalimin. Këshillë: Instaloni atë në disk C: (ai krijon një dosje për të, mos u shqetësoni), për t'u siguruar që ta konfiguroni më lehtë. Kur të përfundoni, hapni browserin dhe shkruani në shiritin e adresës:

HTTP://lokal/
Nëse shihni "Faqja e Testimit për instalimin e Apache", gjithçka funksionon.

Instalimi i PHP:

Le të instalojmë PHP. shkarkoni paketat nga www.php.net. Ja lidhja e drejtpërdrejtë për Verioni 4.3.9:

Sigurohuni që të shkarkoni paketat dhe jo instalimet. OK! pas shkarkimit, shkarkoni paketën në C:/PHP (kjo është për ta thjeshtuar rrugën). Tani hapni C:/apache/conf/httpd.conf dhe kërkoni këtë rresht:

#LoadModule Ssl_module модули/mod_ssl.so

në këtë rresht, shtoni këtë:

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php4_module "C:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4

Tani kërkoni këtë rresht:

Direktori "C:/apache2/HTDOCS"
Tani ndryshoni:

Opsionet Indekset FollowSymLinks
#
# AllowOverride управляет тем, что директивы могут быть помещены в файл .htaccess.
# Это не может быть «Все», «None», или любая комбинация из ключевых слов:
# Опции FileInfo AuthConfig Лимит
#
AllowOverride None

në:

Opsionet Indekset përfshirë FollowSymLinks MultiViews ExecCGI
#
# AllowOverride управляет тем, что директивы могут быть помещены в файл .htaccess.
# Это не может быть «All», «None», или любую комбинацию из ключевых слов:
# Опции FileInfo AuthConfig Лимит
#
AllowOverride All

Kjo do të lejojë..htaccess mbështetje në serverin tuaj dhe sigurohuni që të mund të shihni përmbajtjen e dosjes pa marrë 403 Forbidden gabime.

Tani kërkoni:

DirectoryIndex index.html index.var.html
dhe ndryshojeni në:

DirectoryIndex index.html index.php

Ruani skedarin dhe rinisni Apache. (mund ta ripërsërisni, duke klikuar mbi rindizjen e serverit Apache shkurtesë në menunë Start ose me shkrim:

Apache e pastër rindez

në dritaren e komandës. OK!

keni PHP funksionon për serverin tuaj. Tani le të konfigurojmë PHP dhe sigurohuni që të funksionojë me të vërtetë! Hapni C:/php/php.ini (php.ini-distances have been renamed) and search for this item:

max_execution_time = 60; Maximum execution time of each script, in seconds max_input_time = 60; Maximum time each script can spend parsing input data memory_limit = 5M; Maximum amount of memory a script can consume (8 MB)

You should change this to whatever you want. Here’s an example I use:

max_execution_time = 300; Maximum execution time of each script, in seconds max_input_time = 300; Maximum time each script can spend parsing input data memory_limit = 5M; Maximum amount of memory a script can consume (8 MB)

Tani kërkoni:

register_globals = Off

dhe ndryshojeni në:

register_globals = On

Search:

extension_dir = "."

dhe ndryshojeni në:

extension_dir = "C:/PHP/extensions"

if you installed PHP in C: ...

Search:

, Windows
extensions; Note that MySQL ODBC and support are now built-in, so no DLLs are needed for this.
and uncomment (remove the ; in front of) the following modules:

extension=php_bz2.dll
extension=php_db.dll
extension=php_gd2.dll
extension=php_java.dll
extension=php_msql.dll
extension=php_pdf.dll
extension=php_pgsql.dll
extension=php_sockets.dll

OK! Now let’s change the SMTP settings Search (this is good for your email () you need this!!!)

[mail]; For Win32 only.

SMTP =
smtp_port = 25
; For Win32
only.; Sendmail_from =

and change to:

[mail]; For Win32 only.
SMTP = mail.isp.org
smtp_port = 25
; For Win32 only.
Sendmail_from = [email protected]domain.org

if you do not have a mail server or:

[mail]; For Win32 only.

SMTP = local
smtp_port = 25
; For Win32 only.
Sendmail_from = [email protected]domain.org

if you have a mail server...

Save the files. Now let’s complete the installation PHP. copy all DLL files from C:/PHP/libraries to C:/Windows/System32. copy C:/php/php4ts.dll to C:/Windows/System32/ and copy php.ini në dosjen PHP to Windows and system32.Restart Apache.

save this file in the HTDOCS folder (C:/Apache/HTDOCS) as info.php and open the browser. in the address bar type:

HTTP://localhost/info.php

You should see the PHP configuration in a table. The looong file can optionally be installed Zend Optimizer.I use it ... it doesn’t need a manual. Install pear modules for PHP, just run the pear batch from the PHP folder and double-click the reg file to finish the installation.

Blini hosting të besueshëm për faqe interneti me mbrojtje nga DDoS, serverë VPS VDS 🔥 Blini hosting të besueshëm për faqe interneti me mbrojtje nga DDoS, serverë VPS VDS | ProHoster