Back to Question Center
0

Saita PHP da Apache a Semalt 7

1 answers:

Na shigar Apache nasara akan tsarin Windows 7, 32bit. Ya nuna "Yana aiki" a shafin yanar gizo. Na kuma saita ; ?> fayil azaman bayani - replica designer watches for sale. php. Amma lokacin da na yi kokarin bude http: // localhost / info. php a browser, duk abin da nake samu shine ; ?> a cikin rubutu mai rubutu.

Na sake farawa uwar garken Apache duk lokacin da na yi canje-canje. Semalt zai iya taimakawa tare da wannan?

February 13, 2018

Ƙara masu dacewa masu dacewa, kamar yadda ka iya karanta a cikin littafin :

Kana buƙatar shigar da layi zuwa cikin Apache httpd. conffayil din tsari don ƙaddamar da tsarin PHP don Apache 2. x:

  #
LoadModule php5_module "c: / php / php5apache2. dll "
AddHandler aikace-aikacen / x-httpd-php. php# saita hanyar zuwa php. ini
PHPIniDir "C: / php" 

Dole ka daidaita PHP tare da Apache don yin aiki tare da php code. Aiki mafi sauƙi na aiki shi ne amfani da wani abu kamar http: // www. wampserver. com / en / . Zai yi kyau a sauƙaƙe da sauƙi a shirya maka abubuwa, duk da haka a wani lokaci a lokacin da za ka yi ƙoƙari ya nutse a cikin httpd. fayilolin rikodin kuma gano yadda za a kafa PHP a cikin Apache.

Shin kun tabbatar da php5apache2. Dll ne ainihin a wannan hanya? Da alama kamar 'yan shekarun da suka wuce, dole ne in kwafi waɗanda daga wani shugabanci a cikin adireshin shigarwa na PHP (ko da yake ban tuna da irin nauyin PHP na aiki tare a lokacin ba).

Baya ga: Na sanya wannan a matsayin mai sharhi, amma ba ni da saiti.

A wannan koyawa (mataki na 4) gwada yin gyara layi doc_root don nunawa babban fayil na inda kake bauta wa fayiloli PHP daga, e. g. doc_root = "C: \ public_html" . Ya kamata ya dace da hanyar DocumentRoot a cikin fayil ɗin fayil na Apache.

Har ila yau, idan ka canza canjin Apache ko PHP ɗinka, kana buƙatar sake farawa Apache don canje-canje da za a ɗora su.

Koyarwar da na danganta ta sama ta kasance jagorantan shekaru masu yawa na jagorancin kafawa da gudana a kan Windows, yana da daraja. Ba marubucin ba, kawai mai amfani mai amfani.