shafihuzaib / hfeeds

An easy to use RSS Feed Generator - Open Source Alternative to feed43.com
68 stars 21 forks source link

error in xml files #2

Closed anmar256 closed 8 years ago

anmar256 commented 8 years ago

hi i install your project and made some xml files like http://vpnshop.in/xml/h574cc49982371.xml but it didn't work and a have error 500 can you tell me what is the problem?

shafihuzaib commented 8 years ago

Please submit the contents of this file.. h574cc49982371.xml

and also php_error_log (if possible)

vanthang81 commented 8 years ago

hello, I also have the same problem, could you please help? I enclose the xml file. Thank you! h579a0b91ea411.xml.zip

shafihuzaib commented 8 years ago

@vanthang81 Please let me know the server details you've installed this script on.. Operating System, Apache / NGinx Server etc

vanthang81 commented 8 years ago

please share your email, I'll send you link to phpinfo. My email: @gmail.com

shafihuzaib commented 8 years ago

Please share your email address. Furthermore, please replace the contents of .htaccess file in xml directory by either of the following instructions:

AddHandler application/x-httpd-php .xml OR AddHandler x-httpd-php .xml OR AddHandler application/x-httpd-php5 .xml OR AddHandler x-httpd-php5 .xml

vanthang81 commented 8 years ago

My email: vanthang81@gmail

vanthang81 commented 8 years ago

I already tried those alternative contents in .htaccess file in xml directory but without luck :(

vanthang81 commented 8 years ago

Attached is the error when I open from browser 2016-07-29 at 9 54 pm

shafihuzaib commented 8 years ago

check the source code..in the browser.. is it php code? If yes, then your xml files are not being parsed by PHP handler.. please checkout this article for various possible htaccess configurations..

vanthang81 commented 8 years ago

:( I tried all of them, not work at all. Please send me an email, I'll send you the link.

shafihuzaib commented 8 years ago

Email sent.. Please check & respond

shafihuzaib commented 8 years ago

For anyone else facing this error, please re-check & re-download. I've updated the whole code of the repository (master branch)

YogSottot commented 9 months ago

For those using nginx with php-fpm.
That is, there is no support for .htaccess

Add to php-fpm config security.limit_extensions = .php .phar .xml

Example of nginx location

location ~* /hfeeds/xml/ {
            fastcgi_pass unix:/run/php-fpm/rss.sock;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
  }