Gå til innhold

Anbefalte innlegg

Videoannonse
Annonse

Problemet ligger som nevnt over her i httpd.conf fila til Apache.

 

Du må huske å legge til disse linjene, hvis du kjører som CGI:

 

ScriptAlias /php/ "c:/php/"

AddType application/x-httpd-php .php

Action application/x-httpd-php "/php/php.exe"

 

evt .php3, .php4, .phtml, osv hvis du bruker andre extensions.

Lenke til kommentar

Tror faktisk ikke det spiller noen stor rolle, men du kan jo legge det en stykke ned.

 

Jeg har det etter:

 

-----start utdrag fra httpd.conf---------

 

#

# ScriptAlias: This controls which directories contain server scripts.

# ScriptAliases are essentially the same as Aliases, except that

# documents in the realname directory are treated as applications and

# run by the server when requested rather than as documents sent to the client.

# The same rules about trailing "/" apply to ScriptAlias directives as to

# Alias.

#

ScriptAlias /cgi-bin/ "C:/Apache/Apache/cgi-bin/"

 

ScriptAlias /php/ "c:/php/"

AddType application/x-httpd-php .php

Action application/x-httpd-php "/php/php.exe"

 

-----slutt utdrag fra httpd.conf---------

 

Husk også å oppdater:

 

-----start utdrag fra httpd.conf---------

 

# DirectoryIndex: Name of the file or files to use as a pre-written HTML

# directory index. Separate multiple entries with spaces.

#

<IfModule mod_dir.c>

DirectoryIndex index.html index.php

</IfModule>

 

-----slutt utdrag fra httpd.conf---------

 

Her ser du at jeg har lagt til index.php etter index.html. Apache vil da automatisk åpne index.php filer i et directory. Har man både en index.html og en index.php i samme katalog vil index.html bli åpnet fordi den står først i rekka. Dette er jo enkelt å forandre på...

 

Lykke til!

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...