LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Apache PHPIniDir config issues (https://www.linuxquestions.org/questions/general-10/apache-phpinidir-config-issues-940667/)

Mark_667 04-19-2012 10:23 AM

Apache PHPIniDir config issues
 
1 Attachment(s)
Edit: I've found that the PHPIniDir option isn't used in Apache 2.4 so I commented out the last line of the attached file. Unfortunately I can't change the thread title or delete the post.

Current Problem:
I'm using Apache 2.4 but when I try to view a page in a browser I see the page source. I've attached the conf file I'm using, can anyone provide any insights?

TBotNik 01-01-2018 12:53 PM

Similar Problem
 
All,

Hey! All was working fine, till I had to resolve a MySQL issue which required clearing and reloading LAMP stack on my machine. Now PHP code works fine until it find a '>' in the code instead of '?>' and so thinks PHP processing has ended, then throws all code from that point on into display on the browser. Craziest thing the '>' can even be in a comment block, but still thinks you told PHP to stop processing.

The irc.freenode.net ##php guru's told me I had a PHP config issue with PHP5, and since things had been working thought they were wrong, but running back through some code under dev, and for testing I always echo out vars like so:
echo "1stVar=> $var1 2ndVar $var2 3rdVar $var3";
Now the '>' in these echo lines are stopping the processing! What do I look for to make PHP it can never stop processing without '?>'?

TBNK


All times are GMT -5. The time now is 09:42 AM.