From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from plane.gmane.org ([80.91.229.3]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TyfgQ-0002mJ-KI for ptxdist@pengutronix.de; Fri, 25 Jan 2013 10:34:51 +0100 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tyfge-0003sX-8A for ptxdist@pengutronix.de; Fri, 25 Jan 2013 10:35:04 +0100 Received: from pd95b6601.dip0.t-ipconnect.de ([217.91.102.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jan 2013 10:35:04 +0100 Received: from t.spitzer by pd95b6601.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jan 2013 10:35:04 +0100 From: Thomas Spitzer Date: Fri, 25 Jan 2013 09:31:49 +0000 (UTC) Message-ID: Mime-Version: 1.0 Subject: [ptxdist] php files are download instead of beeing interpreted Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi all, I'm using ptxdist-2012.03.0 on an Arm board. We want to use Apache2 with php5 I activated Apache and php5 in menuconfig and flashed the image. To prove, php is installed I did find root@phyCORE-AM335x:~ find / -name *php* /etc/php5 /etc/php5/php.ini /var/www/info.php /usr/lib/ipkg/info/php5.list /usr/lib/ipkg/info/php5.control /usr/modules/libphp5.so This seems good, at a first glance. Apache is running, which I checked by getting the default index.htm now I added an "info.php" in /var/www with contend root@phyCORE-AM335x:~ cat /var/www/info.php This file is displayed, instead of being interpreted :-( So I googled and added some stuff in /etc/apache2/httpd.conf root@phyCORE-AM335x:~ cat /etc/apache2/httpd.conf # This is insert to enable php LoadModule php5_module modules/libphp5.so # # SetHandler application/x-httpd-php # AddType application/x-httpd-php .php .php3 .phtml AddType application/x-httpd-php-source .phps ############################## ... Now the php file is not longer displayed, but offered for download :-( This proofs, I've changed "something" but I'm not successful, yet. I cannot find any helpful information in the Internet, because it is full of Ubuntu helps which advise to use "a2enmod" which seems not to be how ptxdist deals with configuration. Can you give a hint, of how get php up and running? -- ptxdist mailing list ptxdist@pengutronix.de