Re: directoryindexing or what?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On October 18, 2011 10:44 , Georgi Georgiev <georgi.int@xxxxxxxxx> wrote:
Hello, I have slackware 13.37 web server, but when I open from browser wordpress for example list the php file instead loading the site. I have in httpd.conf (tryed different variants)
<Directory />
    Options Indexes FollowSymLinks MultiViews
    AllowOverride Indexes
    #Order deny,allow
    #Deny from all
allow from all
DirectoryIndex index.html index.php
</Directory>
.....
<IfModule mod_dir>
    DirectoryIndex index.html index.php
</IfModule>
tryed and with htaccess, but no effect. Uncomented the line in httpd.conf for mod_php, but again the same. Where is the problem - missing module, error in the cod or? If recompile php?

You need to load mod_php and tell Apache HTTP Server when (and how) to use mod_php. What I generally use is:

LoadModule php5_module modules/libphp5.so
php_flag engine on
AddType application/x-httpd-php .php

...which automatically has mod_php process any file whose name ends in .php However, make sure you read and understand the documentation before deciding how to configure your server:

http://www.php.net/manual/en/install.unix.apache2.php

--
  Mark Montague
  mark@xxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux