PHPMyFAQ Create Entry Error - HELP

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

NickRac
Posts: 5
Joined: Fri Jul 08, 2005 2:21 pm

PHPMyFAQ Create Entry Error - HELP

Post by NickRac »

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 »

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
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
calande
Posts: 70
Joined: Sat Sep 02, 2006 7:01 am

Post by calande »

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 »

Hi,

which version of phpMyFAQ is shipped with CPanel?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
calande
Posts: 70
Joined: Sat Sep 02, 2006 7:01 am

Post by calande »

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 »

Hi,

in which version did this happened?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
calande
Posts: 70
Joined: Sat Sep 02, 2006 7:01 am

Post by calande »

In phpMyFAQ 1.6.6 :roll:
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

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
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
calande
Posts: 70
Joined: Sat Sep 02, 2006 7:01 am

Post by calande »

Thank you, where can I find the audit.log file? :roll:
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

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
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
calande
Posts: 70
Joined: Sat Sep 02, 2006 7:01 am

Post by calande »

I found out, I hope this helps you guys. When I add a new entry, with the following inside the body of the FAQ:

Code: Select all

wget ''
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 »

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
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
calande
Posts: 70
Joined: Sat Sep 02, 2006 7:01 am

Post by calande »

Thanks, I disabled mod_security, and now the error message is different, when I publish a new entry I get:

Code: Select all

An error occured.
Any idea? :roll:
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you need at least a activated category and a question.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
calande
Posts: 70
Joined: Sat Sep 02, 2006 7:01 am

Post by calande »

Ok, it's working fine now :)
Thanks you guys.
Post Reply