We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Instead of getting blank screen on manually triggering ow_cron/run.php via http "page not found" occurs...[Solved] | Forum

Klaus Buschmann
Klaus Buschmann May 9 '13
Hello community,


setting up the cron job is a highly discussed challenge. The needed syntax etc. corresponding to my isp is clear so far.


But: Accessing the run.php via browser (http://www.example.com/ow_cron/run.php) does not lead to a supposed blank screen for me but brings me to "page not found Sorry, this document doesn't exist."


So due to this, the whole cron scenario does not work. I'm getting an error in the admin backend, that: You still need to setup the cron job.


As i mentioned, the run.php itself is not being parsed. So, what could be the problem? The fresh install of oxwall 1.5.3 is working fine. Everything seems to work, except the run.php.


Or is it not possible (for testing/debugging) to manually trigger that run.php via Browser? I think it shoud work, because the manual asks to trigger it (e.g.) via lynx. And this is, what i'm a expecting to do (referenced to my isp):


* * * * * /usr/bin/lynx http://www.xyz.de/ow_cron/run.php


Do i have a wrong .htaccess?


AddType x-mapp-php5 .phpAddHandler x-mapp-php5 .php
Options +FollowSymLinksRewriteEngine OnRewriteBase /#RewriteCond %{REQUEST_FILENAME} !-f#RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_URI} !^/index.phpRewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]RewriteRule (.*) index.php


How can i achieve to (alt least for my test scenario) successful, manually call of the run.php?


Thanks for any advice.

Klaus





The Forum post is edited by ross Nov 19 '13
Abbey
Abbey May 10 '13
if you're getting page not found your path is wrong

the best way to set the right cron for your hosting is to contact your hosting and ask them the correct path as they can differ.
Mine is :
/usr/bin/php -q /home/cpanelusername/public_html/ow_cron/run.php

others may be /usr/local/bin/php /home/cpanelusername/public_html/ow_cron/run.php

or even /usr/local/bin/php -q /home/cpanelusername/public_html/ow_cron/run.php
Kяuncн Leader
Kяuncн May 10 '13

Quote from Abbey Jayne if you're getting page not found your path is wrong

the best way to set the right cron for your hosting is to contact your hosting and ask them the correct path as they can differ.
Mine is :
/usr/bin/php -q /home/cpanelusername/public_html/ow_cron/run.php

others may be /usr/local/bin/php /home/cpanelusername/public_html/ow_cron/run.php

or even /usr/local/bin/php -q /home/cpanelusername/public_html/ow_cron/run.php

I had mine very similar to those till they said no it's wrong, then set mine to
curl http://fetishi.net/ow_cron/run.php
The Forum post is edited by Kяuncн May 10 '13
Web Rádio
Web Rádio May 13 '13
não consegue fazer o cadastro dá erro no base+join_join


alguém pode me ajudar por favor?

Alia Team
Alia May 14 '13
Klaus, try using default .htaccess rules and then running run.php.

P.S. under which domain have you installed Oxwall?

Kяuncн Leader
Kяuncн May 14 '13
My .htaccess looks like this:

<IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    <IfModule mod_setenvif.c>
        # Netscape 4.x has some problems...
        BrowserMatch ^Mozilla/4 gzip-only-text/html
       
        # Netscape 4.06-4.08 have some more problems
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
       
        # MSIE masquerades as Netscape, but it is fine
        # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
       
        # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
        # the above regex won't work. You can use the following
        # workaround to get the desired effect:
        BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
       
        # Don't compress images
        SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
    </IfModule>
   
    <IfModule mod_headers.c>
        # Make sure proxies don't deliver the wrong content
        Header append Vary User-Agent env=!dont-vary
    </IfModule>
</IfModule>

should I change mine as well?
Klaus Buschmann
Klaus Buschmann May 16 '13
A friend of mine solved the problem. As i mentioned, it´s not up to the cronscript itself but to the inacessibility of the ...ow_cron/run.php


This belonged to the .htaccess, which was wrong.


He excluded the path to ow_cron/run.php in the .htaccess and now i can manually call it as well it is now callable through cron.


The added line for excluding:


RewriteCond %{REQUEST_FILENAME} !/ow_cron/run.php


Klaus



Klaus Buschmann
Klaus Buschmann May 16 '13
Quote from Aliia Klaus, try using default .htaccess rules and then running run.php.

P.S. under which domain have you installed Oxwall?

Hey Aliia,


thanks for your hint! This did the trick. Unfortunately i saw your post right now and not when you wrote it. But you were absolutely wright!


Thanks a lot!

Klaus



Alia Team
Alia May 21 '13
Welcome )
Kabir
Kabir Oct 31 '13
Hi Everyone,


I just did a fresh installtion at http://surveyboon.com and facing two main issues.


1. Primary Issue - Site only shows text and there are no pics showing not any formatting.

2. Secondary Issue - I'm not able to create a cron job


Any help would be appreciated.

The Forum post is edited by Kabir Oct 31 '13
ross Team
ross Nov 4 '13
Kabir, 


please set the permissions to 777 for ow_themes this might solve your primary issue. 

as to the cron - here's the manual how to configure it: http://docs.oxwall.org/install:cron

what exactly can't you configure in the cron jobs?

Jorel
Jorel Aug 25 '14
Hi! I would like to reopen this forum, I'm getting a blank page when I visit to run the cron page.  I contacted my hosting support and they said they do not have a cron jobs on their cpanel.  I never had a chance to set up my cron jobs during installation, is it normal to get a blankpage? I'm able to receive emails, register new members, etc.  But I need to set up cron to run every 1 minute.  


Thank you in advance.

ross Team
ross Aug 25 '14
As to the blank page - this is what you should get when you run cron manually. 

As to the cron jobs I can't suggest you anything but change the provider who has the option to run cron every minute

The Forum post is edited by ross Aug 25 '14
Jorel
Jorel Aug 26 '14
Thanks, Ross.  How about using other services like setcron.com, cronless.com, etc.?  Is cron really important? So far, when I use the mass mailing, chats, registering members, they worked just fine.  If I mass email I do receive them in less than 2 minutes, I'm also able to chat real time, but when someone comment, rates, post new photos, the index page isn't updating I have to refresh the page in order to see the latest feeds.  Thanks for your help.
ross Team
ross Aug 26 '14
as to the index page this is how it works, as to the cron you can use third-party cron jobs as well
Jorel
Jorel Aug 27 '14
Thanks, but is there anyway to have live posting of comments without refreshing the index page? I'm willing to purchase some plugins here anyways...
ross Team
ross Aug 27 '14
Please do the search on the forum "auto refresh of the index page" this topic has already been discussed somewhere.