Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

PHP nije dobro instalisan

[es] :: Windows mreže :: PHP nije dobro instalisan

[ Pregleda: 1355 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

codemaker
Borislav Pekic
Beograd

Član broj: 96807
Poruke: 67
*.maksnet.net.

Sajt: www.odraz.net/blog/index...


Profil

icon PHP nije dobro instalisan27.06.2007. u 00:01 - pre 205 meseci
Bio sam instalisao PHP 5 na IIS 6 (Windows 2003 server)
Sve je radilo ok, dok nisam kupio nov racunar za server, sve instalisao ponovo.
Sve radi pocevod IIS do poziva DLL i pokretanja EXE aplikacija preko interneta, sem PHP

Lupam glavu sta sam mogao pogresno instalisati ali nemam nikakve sanse da ustanvovim sta je. Za instalaziju PHP 5 sam koristio isti setup koji sam koristio i prilikom prve instalacije kada je sve radilo normalno. Sada sam isto to uradio ali ne pokrece ni jedan jedini PHP! :(
Imam instalisan PHP i na XP racunaru koji koristim za testove i na njemu sve radi normalno. Niakko ne mogu da vidim sta je razlika, sve mi izgleda isto.

Ima li neko pomoc koja mi je sad potrebna jer sam evo izgubio ceo jedan dan bez uspeha da pokrenem jedan jedini PHP. Napominjem da imam server sa fiksnom IP i sa domenima koji na njemu rade. Sve domene (sajtove) mogu bez problema da kontaktiram i sve radi do momenta kad treba da aktiviram PHP.

Takodje, na serveru ne mogu ni iz lokala da pokrenem PHP (http://localhost/test1.php na primer)

Hvala na bilo kakvoj pomoci
 
Odgovor na temu

codemaker
Borislav Pekic
Beograd

Član broj: 96807
Poruke: 67
*.maksnet.net.

Sajt: www.odraz.net/blog/index...


Profil

icon Re: PHP nije dobro instalisan27.06.2007. u 01:05 - pre 205 meseci
Upravo sam nasao na internetu odlicno objasnjenje i resio problem.
Tek ako nekome treba, evo sta sam citao:

-----------
PHP5 with IIS6 on Windows Server 2003 in five easy steps

How to install and configure PHP5 with IIS6 on Windows Server 2003 in five easy steps.

I thought installing PHP would be as easy as just using the install program. Well it wasn't... But by learning from my mistakes it can be almost that easy.

Just follow these five easy steps on how to install and configure PHP 5 on a Windows Server 2003 running IIS - after trying the manual and several guides and tutorials found on the net (of which some were very long and very complicated and some were short and easy but partially incorrect) this is what it all came down to. Enjoy.

This is tested on PHP 5.0.4, IIS6 on Windows Server 2003 SP1. Be aware that IIS is not automatically installed with all editions of Windows Server 2003, this guide assumes that IIS 6 and Windows Server 2003 is already up and running on your server.

1. Download PHP at http://www.php.net/downloads.php. Make sure you dowload the "zip package", the installer package won't work.

2. Extract the downloaded zip file to a directory of choice on your harddrive. The rest of this guide will assume you are using C:\PHP

3. Add C:\PHP to your path. From the Start menu, right click My Computer and select Properties. From the Advanced tab click the Environment Variables button. Under System Variable find Path and click Edit. At the end of what is already present in Variable Value add a semicolon (;) and then C:\PHP.

4. Configure IIS. Open the Internet Information Services (IIS) Manager from Administrative Tools (found directly in the Start menu or in the Control Panel)

a) Web Service Extension. Click down to the Web Service Extension folder. Right click the folder and select Add New Web Service Extension. Set Extension Name to .PHP and add C:\PHP\PHP5ISAPI.DLL to Required Files . Check Set Extension Status To Allowed.

b) Web Sites. Click down to Web Sites. Right click the folder and select Properties. From the Home Directory tab click the Configuration button. Click Add to add an Application Extension. Enter C:\PHP\PHP5ISAPI.DLL as Executable and PHP as Extension. Leave the rest as default and click Ok.

5. All set! To test your PHP installation simply create text a file with the php extension, eg. test.php. Add the following three lines of text to it and then save it to your web site directory, eg. C:\INETPUB\WWWROOT. Then use your browser to read the file, eg. http://localhost/test.php

<?php
phpinfo();
?>

Other things you might want to consider:

- Some tutorials state that you need to restart the World Wide Web Publishing Service after having installed and configured php. I haven't needed to (ie everything worked fine without restarting the service) but if you do it is found under Services in the Control Panel.

- As you start using PHP, in the not too distant future you will probably need to make some changes to php.ini. PHP works fine without the php.ini file but you really should have one and it should be in your Windows directory. Copy C:\PHP\PHP.INI-RECOMMENDED to C:\WINDOWS\PHP.INI

- If you are going to use MySQL you will need to make sure to uncomment the line "extension=php_mysql.dll" in php.ini and copy C:\PHP\LIBMYSQL.DLL to C:\WINDOWS\SYSTEM32 (Simply setting the PATH won't work as this is apparently hard coded in PHP5). If you don't follow these steps you will get an error message similar to this: "Call to undefined function mysql_connect"

- Read the manual at http://www.php.net/manual/en/install.windows.php
-----------
 
Odgovor na temu

[es] :: Windows mreže :: PHP nije dobro instalisan

[ Pregleda: 1355 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.