HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Problem trying to reload apache (http://www.howtoforge.com/forums/showthread.php?t=58037)

carlosmay 22nd July 2012 23:16

Problem trying to reload apache
 
The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3) - Page 6

/etc/init.d/apache2 reload

Syntax error on line 6 of /etc/apache2/conf.d/aquirrelmail.conf:
Invalid command 'AddTypeapplication/x-httpd-php.php', perhaps misspelles or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
...fail!


thanks for you help

rosehosting 23rd July 2012 00:19

Quote:

Originally Posted by carlosmay (Post 282552)
The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3) - Page 6

/etc/init.d/apache2 reload

Syntax error on line 6 of /etc/apache2/conf.d/aquirrelmail.conf:
Invalid command 'AddTypeapplication/x-httpd-php.php', perhaps misspelles or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
...fail!


thanks for you help


it looks like you have a (real) syntax error on line 6 in your /etc/apache2/conf.d/aquirrelmail.conf file and it also looks like you are missing mod_php module ....

as suggested by the output, what is apache's error log file saying about this?

also can you post your '/etc/apache2/conf.d/aquirrelmail.conf' file?

carlosmay 23rd July 2012 00:54

1 Attachment(s)
i get this problem after edit this file also as you ask here it is

vi /etc/apache2/conf.d/squirrelmail.conf

rosehosting 23rd July 2012 01:15

you have a typo on line 6 between 'AddType' and 'application/x-httpd-php' and '.php'. It should be:

Quote:

AddType application/x-httpd-php .php

carlosmay 23rd July 2012 01:58

Just Coping and pasting a reply, I find out that when you do that you can see how really the txt should be, because on the manual this txt was red and all underlined wich was difficult to understand

Quote:

[...]
<Directory /usr/share/squirrelmail>
Options FollowSymLinks
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/squirrelmail/tmp
php_admin_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname:/var/spool/squirrelmail
php_flag register_globals off
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
# access to configtest is limited by default to prevent information leak
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
</Directory>
[...]


All times are GMT +2. The time now is 19:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.