mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Thomas Spitzer <t.spitzer@astade.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] php files are download instead of beeing interpreted
Date: Fri, 25 Jan 2013 09:31:49 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130125T101722-845@post.gmane.org> (raw)

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 
<?php
phpinfo();
?>

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
#<FilesMatch \.php$>
#    SetHandler application/x-httpd-php
#</FilesMatch>
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

                 reply	other threads:[~2013-01-25  9:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20130125T101722-845@post.gmane.org \
    --to=t.spitzer@astade.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox