Jump to content

Layered navigation - Cron Jobs dumps a lot of files in my root-folder?!


Recommended Posts

Hello,

By mistake I found myself at my ftp-root, absolute top of my webspace, seeing the perl, php, mail, and public_html-catalog. When scrolling down a bit I found files with names like this "blocklayered-price-indexer.php?token=5f7f10bb56&return_message=0.44" It was 165pcs of them!!

Im a bit confuse, because I saw a few others too, cron.php?secure_key, gsitemap-cron.php?token, and index.php?token (maybe all of the filenames, maybe not)

Is this normal or is something very wrong with my install or config?

Any ideas would be helpful :unsure:

Link to comment
Share on other sites

  • 4 weeks later...

Sorry for the delayed answer......................

When I had the files downloaded, I was able to take a closer look with an editor.

All files had this text inside "BAD TOKEN"

I think my webhost had made some mistake, when setting up my cron jobs.......................

Link to comment
Share on other sites

  • 4 years later...

This is because of your cron job setup and is absolutely no problem regarding your shops functionality, except when u run out of space because of it of course ;) 

You possibly have wget commands in your cronjobs:

"wget https://www.domain.tld/shop/url.php?attribute=attr1"

wget downloads the html content that gets back from the server. Either try using "wget -q https://blablabla.com" for quiet mode (I haven't tested it! Might still save the files on your server). Or you can try to use the php runtime on your server instead of wget (if at all possible).

Running upper wget command with php might look like:

"/usr/bin/php https://www.domain.tld/shop/url.php attribute=attr1"

"/usr/bin/php" must be replaced with your servers php runtime directory, ask your webhost if you don't know it. Watch the URL attributes! The "?" is being replaced by a " " (space)!

Edited by oliiix (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...