In this board you can talk about general questions about phpMyFAQ
Moderator: Thorsten
NickRac
Posts: 5 Joined: Fri Jul 08, 2005 2:21 pm
Post
by NickRac » Sat Jul 09, 2005 6:45 pm
I'm getting some errors when trying to add new entry's - it doesn;t always happen but it's starting to get annoying. I am getting the following error:
Not Acceptable
An appropriate representation of the requested resource /admin/index.php could not be found on this server.
As I said it's not always happening but it's getting annoying. It happens when I've tried to post this:
mount the old / partition as old
mount /dev/hdb1 /old #if the old partition is hdb1
start copying back data from the old drive
rsync -vrplogDtH /old/usr/local/apache/conf /usr/local/apache
rsync -vrplogDtH /old/var/named /var
rsync -vrplogDtH /old/home/* /home
rsync -vrplogDtH /old/usr/local/cpanel /usr/local
rsync -vrplogDtH /old/var/lib/mysql /var/lib
rsync -vrplogDtH /old/var/cpanel /var
rsync -vrplogDtH /old/usr/share/ssl /usr/share
rsync -vrplogDtH /old/var/ssl /var
rsync -vrplogDtH /old/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty
rsync -vrplogDtH /old/var/log/bandwidth /var/log
rsync -vrplogDtH /old/usr/local/frontpage /usr/local
rsync -vrplogDtH /old/var/spool/cron /var/spool
rsync -vrplogDtH /old/root/.my.cnf /root
rsync -vrplogDtH /old/etc/httpd/conf/httpd.conf /etc/httpd/conf
rsync -vrplogDtH /old/etc/sysconfig/network /etc/sysconfig
then change to the old etc, and execute all on one line ...
cd /old/etc
rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts /etc
That's it.
Update cpanel afterwards .. /scripts/upcp .. /scripts/updatenow .. /scripts/sysup .. /scripts/fixeverything
Reply With Quote
and a few other things - whats wrong?
Thorsten
Posts: 15725 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Mon Jul 11, 2005 6:51 am
Hi,
I don't know what's happening. You can try to enable the DEBUG MODE in admin/index.php and send me the debig log when the error occurs next time.
bye
Thorsten
calande
Posts: 70 Joined: Sat Sep 02, 2006 7:01 am
Post
by calande » Thu Nov 23, 2006 4:03 am
Ouch, I have the same problem when creating a new entry:
Code: Select all
Not Acceptable
An appropriate representation of the requested resource /admin/index.php could not be found on this server.
Thorsten
Posts: 15725 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Thu Nov 23, 2006 8:11 am
Hi,
which version of phpMyFAQ is shipped with CPanel?
bye
Thorsten
calande
Posts: 70 Joined: Sat Sep 02, 2006 7:01 am
Post
by calande » Thu Nov 23, 2006 12:16 pm
I don't know, actually I downloaded phpMyFAQ from the official web site and installed it manually
Thorsten
Posts: 15725 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Thu Nov 23, 2006 12:18 pm
Hi,
in which version did this happened?
bye
Thorsten
calande
Posts: 70 Joined: Sat Sep 02, 2006 7:01 am
Post
by calande » Thu Nov 23, 2006 12:38 pm
In phpMyFAQ 1.6.6
matteo
Posts: 572 Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy
Post
by matteo » Thu Nov 23, 2006 2:26 pm
Hi calande & NickRack,
please check with your sysad if your host is running under mod_security "shield": in my experience your issue is arised WHEN the web request is matching with a mod_security rule
.
Check it through the
audit.log file.
Ciao,
Matteo
calande
Posts: 70 Joined: Sat Sep 02, 2006 7:01 am
Post
by calande » Thu Nov 23, 2006 2:37 pm
Thank you, where can I find the audit.log file?
matteo
Posts: 572 Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy
Post
by matteo » Thu Nov 23, 2006 2:44 pm
Hi calande,
it depends IF and HOW mod_security has been deployed on your server: it usually sits in the same folder in which you can find the error.log file, that's of Apache.
Ciao,
Matteo
calande
Posts: 70 Joined: Sat Sep 02, 2006 7:01 am
Post
by calande » Tue Nov 28, 2006 5:11 pm
I found out, I hope this helps you guys. When I add a new entry, with the following inside the body of the FAQ:
I get the following error message:
Not Acceptable
An appropriate representation of the requested resource /admin/index.php could not be found on this server.
matteo
Posts: 572 Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy
Post
by matteo » Tue Nov 28, 2006 8:02 pm
Hi,
this confirm that you're running mod_security on your server and the issue is strictly related to your Apache configuration: one rule among those deployed with your mod_security installation is to prevent the use of wget as HTTP POST/GET values.
Please contact your SysAd and ask him to relax that rule or to create an exception just for the admin/index.php page: otherwise you'll not be able to write faq containing the word wget
Ciao,
Matteo
calande
Posts: 70 Joined: Sat Sep 02, 2006 7:01 am
Post
by calande » Wed Nov 29, 2006 3:34 am
Thanks, I disabled mod_security, and now the error message is different, when I publish a new entry I get:
Any idea?
Thorsten
Posts: 15725 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Wed Nov 29, 2006 7:47 am
Hi,
you need at least a activated category and a question.
bye
Thorsten
calande
Posts: 70 Joined: Sat Sep 02, 2006 7:01 am
Post
by calande » Wed Nov 29, 2006 3:02 pm
Ok, it's working fine now
Thanks you guys.