Re: PHP Not Working

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

 



On 06/10/2011 08:31 PM, zavelopez@xxxxxxxxx wrote:
J, I couldn't figure out what exactly you meant when you typed "in your Documentroot Directory". Did you mean in the block of text that contains the DocumentRoot Directive, or the Directory Directive containing the document root? I tried it both ways, like so:

ServerName http://new.dev
ServerAdmin webmaster@localhost
DocumentRoot /home/zave/Public/new
RewriteEngine off
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

AND:

<Directory /home/zave/Public/new>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
</Directory>



Both are valid, but the former means you allow PHP processing anywhere, while the latter restricts it to your web content location.


After restarting Apache, neither made any difference. Am I doing it incorrectly?

You'd have to show concrete evidence of this.
Run httpd -L to verify the php module is loaded.
Clear the browser cache.


--
J.


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