[mdlug] Fwd: Question about Apache APR configuration

email5000 at usa.com email5000 at usa.com
Tue Jun 9 11:35:56 EDT 2020


I notice that the mail server messed up the message. Here it is again
[hopefully] corrected....


I'm having difficulty getting the PHP server to render the content on my
embedded system (i.e. NAS). It just want to download the file. Apache
(I believe it's Apache) serves htm* pages fine. I know that the PHP
server is running as I get a valid response to the command: []#php -v
(btw: it's PHP 5.4.34). In all my research it appears that I need the
line:
     AddType    application/x-httpd-php5    .php

... added to the httpd.conf file, which seems reasonable. I did this;
but when I call the phpinfo.php file (just the standard phpinfo();
function), it throws an error showing the config line with all
whitespace removed:
     AddTypeapplication/x-httpd-php5.php

... as if it doesn't understand, well duh!! I used nano on the box to
edit this conf file, so thinking nano corrupted the line, I looked at it
in another editor - it appears just fine.

I've SUCCESSFULLY configured Apache and PHP servers in other 'full'
implementations (i.e. full-blown servers); but I've NEVER seen this
before. I'm just so stumped by this I can't think straight. I just don't
know where to go from here.

Any help is MUCH appreciated!

Again, it's Apache APR (Apache Portable Runtime).

Thanks in advance.
-Rich Hall



More information about the mdlug mailing list