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

Cronjob on a subdomain | Forum

Topic location: Forum home » Support » General Questions
Rob
Rob Feb 22 '19
What is the correct cron job setting for a subdomain.?


With regards,


Admiraliteit Imedia

AppXprt
AppXprt Feb 22 '19
Here is what I use:

* * * * * wget -q -O /dev/null https://sub.vixiv.net/ow_cron/run.php

The Forum post is edited by AppXprt Feb 22 '19
Rob
Rob Feb 22 '19
Normal.: /usr/local/bin/php -q /home/********/domains/admiraliteit-imedia.nl/private_html/ow_cron/run.php >/dev/null 2>&1

With subdomain.: /usr/local/bin/php -q /home/********/domains/subdomain.admiraliteit-imedia.nl/private_html/ow_cron/run.php >/dev/null 2>&1


De normal cronjob works fine, but for the subdomain not.

AppXprt
AppXprt Feb 22 '19
Verify that the subdomain path is correct:


ls -al /home/********/domains/subdomain.admiraliteit-imedia.nl/private_html/ow_cron/run.php


(Replace your **** and subdomain with your actual path info)


Copy and Paste after ls -al to prevent typo's


ls -al /home/subuser/domains/sub.admiraliteit-imedia.nl/private_html/ow_cron/run.php


Also you're sure it's private_html and not public_html you're trying to access?

The Forum post is edited by AppXprt Feb 22 '19
Rob
Rob Feb 22 '19

Different rules tried Zach, but nothing succeeds.


Now it is no longer possible to upload a theme while it did in the beginning.

I have now submitted it to my hosting provider.

There must be something wrong.


With regards,


Rob

Admiraliteit Imedia

Rob
Rob Feb 22 '19

I can remember that a few changes need to be made to the .htaccess file of the main domain.

I do not know what needs to be changed.


With regards,


Rob

Admiraliteit Imedia

AppXprt
AppXprt Feb 22 '19
Try grabbing the default .htaccess and using that
Rob
Rob Feb 22 '19

These are the same Zach, I think DirectAdmin automatically do that when a Oxwall being installed on the subdomain.

I have already succeeded in uploading a theme, so I'm already a little step further.


Now the cron job perfectly set, I hope my hosting provider has a solution for that.

AppXprt
AppXprt Feb 22 '19
Try this:

* * * * * wget -q -O /dev/null https://sub.domain.tld/ow_cron/run.php

dave Leader
dave Feb 22 '19
+1 but you no longer need to use the -O attribute anymore. 
AppXprt
AppXprt Feb 22 '19
Sweet thanks for the info, I'll update mine!
Rob
Rob Feb 23 '19

Dear Zach and Dave,We have tried this.:
/usr/local/bin/php -q /home/******/domains/sub.domain.nl/private_html/ow_cron/run.php >/dev/null 2>&1


And then the message "You need to set the cronjob" was out of the reports.

The ****** is our login name for the server.

dave Leader
dave Feb 23 '19
Try just 


php -q /home/username/public_html/oxwall_subdomain/ow_cron/run.php 


what operating system are you using on the server?  (centOS, Ubuntu, ?)


is your subdomain a subfolder or a valid (add on) subdomain?


this here tells me that your server may not be able to find php on its own    /usr/local/bin/php     how is your php set up (cgi or via apache)



Rob
Rob Feb 23 '19

You've lost me again Dave, I was already happy that the report was gone.

We are not at home in the technical part, we are already happy with the help we get here and from our hosting provider.


With regards,


Rob

Admiraliteit Imedia

dave Leader
dave Feb 23 '19
oh ok sorry i must have misunderstood.   Glad you got it sorted. :)
Rob
Rob Feb 23 '19

Thanks a lot for helping Dave and Zach.!

Perfect support .....

Rafat Law
Rafat Law Aug 15 '23
Rafat Law Associates: Your trusted source for the family lawyer in Islamabad. With a proven track record in handling diverse family matters, they offer expert legal support with professionalism and compassion.