Šta je novo?

Problem sa PHP-om i Apache-om

  • Začetnik teme Začetnik teme Tiger
  • Datum pokretanja Datum pokretanja

Tiger

Čuven
Učlanjen(a)
07.11.2003
Poruke
265
Poena
619
Instalirao sam Apache Web Server i PHP. Ne mogu da pokrenem nista u PHP-u (greska 404), nesto kao:
Not Found

The requested URL /php/php.exe/test_php.php was not found on this server.
Apache/2.0.48 (Win32) Server at localhost Port 80

test_php.php se nalazi u folderu f:/web_server/www

Radio sam po nekom uputstvu sa Net-a za instalaciju i konfigurisanje Apache Web Servera, PHP-a i MySQL-a.
 
Once both servers are started, go to http://localhost or http://127.0.0.1. These are the loopback addresses for your local computer and are the addresses you can use to test your PHP applications. http://localhost is mapped to c:\apache\htdocs. Individual files in that directory will be available at http://localhost/filename.ext. Any directories you create under c:\apache\htdocs will also be reflected in the URL as well. c:\apache\htdocs\directory will be accessed at http://localhost/directory/.

Ovo je iz readme fajla, znaci kao sto je rekao moj prethodnik ubacujes fajlove u foldet c:\appache\htdocs\fajl.php... mozes i da pravis poddirektorijume ali pozivas sa http://localhost/folder/fajl.php

Poz.
 
Dodaj ovo na kraj CONF fajla i kada budes kucao www.test.com on ce otici na tvoju prezentaciju:

<VirtualHost *>
ServerAdmin webmaster@www.test.com
DocumentRoot c:/www/www.test.com
ServerName www.test.com
ErrorLog logs/www.test.com-error_log
CustomLog logs/www.test.com-access_log common
</VirtualHost>

<VirtualHost *>
ServerAdmin webmaster@www.nuke.com
DocumentRoot c:/www/www.nuke.com
ServerName www.nuke.com
ErrorLog logs/www.nuke.com-error_log
CustomLog logs/www.nuke.com-access_log common
</VirtualHost>
AddType application/x-httpd-php .php .html .htm
AddType application/x-httpd-php-source .phps

Takodje moras u ETC fajlu u c:\windows\systen32\drivers da dodas ovo:
 
Nazad
Vrh Dno