View previous topic :: View next topic |
Author |
Message |
hanj Veteran
Joined: 19 Aug 2003 Posts: 1500
|
Posted: Mon Sep 03, 2007 11:34 pm Post subject: Apache Upgrade -- apache2ctl and php_admin_value [SOLVED] |
|
|
Hello
Ok.. dealing with the irritating issues with the last apache upgrade:
https://forums.gentoo.org/viewtopic-t-579476-highlight-apache.html
https://bugs.gentoo.org/show_bug.cgi?id=190966
I finally have all of my apache tools (without emerging apache-tools). I thought everything was good, but then today I tested my config and received the following:
Code: | Syntax error on line 25 of /etc/apache2/vhosts.d/mydomain.com.conf:
Invalid command 'php_admin_value', perhaps mis-spelled or defined by a module not included in the server configuration |
WTF. Okay, so I look at that vhost at line 25, and the following is listed:
Code: | php_admin_value safe_mode 1 |
PHP is loaded and working. I can even restart the server without any incident. Here are my commands showing output:
Code: | comp named # apache2ctl -t
Syntax error on line 25 of /etc/apache2/vhosts.d/mydomain.com.conf:
Invalid command 'php_admin_value', perhaps mis-spelled or defined by a module not included in the server configuration
comp named # /etc/init.d/apache2 restart
* Stopping apache2 ... [ ok ]
* Starting apache2 ... [ ok ] |
Anyone know what might be going on? This worked fine with previous Apache. It looks like it's barfing on all php_value or php_admin_value in the config.
Thanks!
hanji _________________ Server Admin Blog - Uno-Code.com
Last edited by hanj on Fri Sep 21, 2007 3:15 pm; edited 1 time in total |
|
Back to top |
|
|
JustJoe Tux's lil' helper
Joined: 30 Jul 2005 Posts: 80
|
Posted: Sun Sep 16, 2007 3:30 pm Post subject: |
|
|
I think you want to recompile PHP with 'apache2', 'cli' and 'cgi' USE-flags.
Also make sure APACHE2_OPTS in /etc/conf.d/apache2 contains "-D PHP5". |
|
Back to top |
|
|
hanj Veteran
Joined: 19 Aug 2003 Posts: 1500
|
|
Back to top |
|
|
|