Dne Út 7. dubna 2015 05:43:31, Greg Freemyer napsal(a):
All,
http://php-test.iac-forensics.com/info.php
is downloading the trivial contents of info.php instead of running it and presenting the results.
Obviously I have something very basic wrong, but I don't tweak apache configs much so I am asking for help.
Did You activate Apache PHP module? https://activedoc.opensuse.org/book/opensuse-reference/chapter-20-the-apache... Via YaST or a2enmod
===
I setup apache on OS 13.1 a year or more ago.
It is a very basic setup except I have a couple vhosts.
As I recall I edited the config files manually instead of using yast.
I'm trying to use php for the first time on this setup. I've created a dedicated vhost to test on.
=== contents of conf file
ServerAdmin webmaster@IAC-Forensics.com ServerName php-test.IAC-Forensics.com DocumentRoot /srv/www/vhosts/php-test.IAC-Forensics.com ErrorLog /var/log/apache2/php-test.IAC-Forensics.com-error_log CustomLog /var/log/apache2/php-test.IAC-Forensics.com-access_log combined HostnameLookups On UseCanonicalName On ServerSignature On Include /etc/apache2/conf.d/*.conf
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> UserDir public_html Include /etc/apache2/mod_userdir.conf </IfModule>
Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> === # ls /etc/apache2/conf.d/ gitweb.conf manual.conf mod_perl.conf wordpress.conf mailman.conf mod_cgid-timeout.conf php5.conf === If you know what I'm missing, a quick pointer would be great.
Thanks Greg -- Greg Freemyer
-- Vojtěch Zeisek Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux http://www.opensuse.org/ http://trapa.cz/