Rigel Kentaurus
Well-known member
For that size, you might want to try running it from command line instead with a regular server cron jobDiscussions: 106,881
Messages: 1,884,339
Members: 11,095
There is a Cli.php script provided with the package
For that size, you might want to try running it from command line instead with a regular server cron jobDiscussions: 106,881
Messages: 1,884,339
Members: 11,095
no, not really just aI'm not super versed in commands, do I just load up the dir run Cli.php or is there additional parameters I need to punch in? Appreciate your help!
php Cli.php
worked like a charm, thanks again!no, not really just ain the directory would doCode:php Cli.php
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
<IfModule mod_rewrite.c>
RewriteEngine On
# If you are having problems with the rewrite rules, remove the "#" from the
# line that begins "RewriteBase" below. You will also have to change the path
# of the rewrite to reflect the path to your XenForo installation.
#RewriteBase /xenforo
# This line may be needed to enable WebDAV editing with PHP as a CGI.
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml) - [NC,L]
RewriteRule (robots\.txt)$ robots.php [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
ServerSignature Off
RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC,OR]
RewriteCond %{THE_REQUEST} (\\r|\\n|%0A|%0D) [NC,OR]
RewriteCond %{HTTP_REFERER} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
RewriteCond %{HTTP_COOKIE} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
RewriteCond %{REQUEST_URI} ^/(,|;|:|<|>|”>|”<|/|\\\.\.\\).{0,9999} [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (libwww-perl|curl|wget|python|nikto|scan) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
#Block mySQL injects
RewriteCond %{QUERY_STRING} (;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark) [NC,OR]
RewriteCond %{QUERY_STRING} \.\./\.\. [OR]
RewriteCond %{QUERY_STRING} (localhost|loopback|127\.0\.0\.1) [NC,OR]
RewriteCond %{QUERY_STRING} \.[a-z0-9] [NC,OR]
RewriteCond %{QUERY_STRING} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC]
# Note: The final RewriteCond must NOT use the [OR] flag.
# Return 403 Forbidden error.
RewriteRule .* index.php [F]
AuthName "By Invitation Only"
AuthType Basic
AuthUserFile /home/tlx/.htpasswd
<Files "admin.php">
require valid-user
</Files>
Needs to be in the rootGoogle is telling me that the robots.txt file restricts the access to the sitemap... my robots.txt is empty and even if I write rules to allow the access to it, it doesnt help.
That's my htaccess file:
Code:# Mod_security can interfere with uploading of content such as attachments. If you # cannot attach files, remove the "#" from the lines below. #<IfModule mod_security.c> # SecFilterEngine Off # SecFilterScanPOST Off #</IfModule> ErrorDocument 401 default ErrorDocument 403 default ErrorDocument 404 default ErrorDocument 500 default <IfModule mod_rewrite.c> RewriteEngine On # If you are having problems with the rewrite rules, remove the "#" from the # line that begins "RewriteBase" below. You will also have to change the path # of the rewrite to reflect the path to your XenForo installation. #RewriteBase /xenforo # This line may be needed to enable WebDAV editing with PHP as a CGI. #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml) - [NC,L] RewriteRule (robots\.txt)$ robots.php [NC,L] RewriteRule ^.*$ index.php [NC,L] </IfModule> ServerSignature Off RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC,OR] RewriteCond %{THE_REQUEST} (\\r|\\n|%0A|%0D) [NC,OR] RewriteCond %{HTTP_REFERER} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR] RewriteCond %{HTTP_COOKIE} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR] RewriteCond %{REQUEST_URI} ^/(,|;|:|<|>|”>|”<|/|\\\.\.\\).{0,9999} [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^$ [OR] RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (libwww-perl|curl|wget|python|nikto|scan) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR] #Block mySQL injects RewriteCond %{QUERY_STRING} (;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark) [NC,OR] RewriteCond %{QUERY_STRING} \.\./\.\. [OR] RewriteCond %{QUERY_STRING} (localhost|loopback|127\.0\.0\.1) [NC,OR] RewriteCond %{QUERY_STRING} \.[a-z0-9] [NC,OR] RewriteCond %{QUERY_STRING} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC] # Note: The final RewriteCond must NOT use the [OR] flag. # Return 403 Forbidden error. RewriteRule .* index.php [F] AuthName "By Invitation Only" AuthType Basic AuthUserFile /home/tlx/.htpasswd <Files "admin.php"> require valid-user </Files>
Do I have to place the robots.txt file in the root folder or in the folder where XF is installed? and do I have to add anything in the robots.txt option in admincp?
Upgrade to the latest version. This has since been fixed.Hello i moved to another vds, and restore my xenforo database.
But when i try to run the Rebuild sitemap cron. Now it give me a lot of errors. (sitempa folder has 777 permissions)
Server Error
Undefined variable: sitemaps
- XenForo_Application::handlePhpError() in XfAddOns/Sitemap/Model/Sitemap.php at line 139
- XfAddOns_Sitemap_Model_Sitemap->runAllAvailableSiteMaps() in XfAddOns/Sitemap/CronEntry/RebuildSitemap.php at line 31
- XfAddOns_Sitemap_CronEntry_RebuildSitemap::run()
- call_user_func() in XenForo/Model/Cron.php at line 356
- XenForo_Model_Cron->runEntry() in XenForo/ControllerAdmin/Cron.php at line 204
- XenForo_ControllerAdmin_Cron->actionRun() in XenForo/FrontController.php at line 310
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
- XenForo_FrontController->run() in /var/aaa/html/foro.muonline.pe/admin.php at line 13
#0 /library/XfAddOns/Sitemap/CronEntry/RebuildSitemap.php(31): XfAddOns_Sitemap_Model_Sitemap->runAllAvailableSiteMaps()
#1 [internal function]: XfAddOns_Sitemap_CronEntry_RebuildSitemap::run(Array)
#2 /library/XenForo/Model/Cron.php(356): call_user_func(Array, Array)
#3 /library/XenForo/ControllerAdmin/Cron.php(204): XenForo_Model_Cron->runEntry(Array)
#4 /library/XenForo/FrontController.php(310): XenForo_ControllerAdmin_Cron->actionRun()
#5 /library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /admin.php(13): XenForo_FrontController->run()
#7 {main}
I am running the latest version and I am also getting the errors:
Code:#0 /library/XfAddOns/Sitemap/CronEntry/RebuildSitemap.php(31): XfAddOns_Sitemap_Model_Sitemap->runAllAvailableSiteMaps() #1 [internal function]: XfAddOns_Sitemap_CronEntry_RebuildSitemap::run(Array) #2 /library/XenForo/Model/Cron.php(356): call_user_func(Array, Array) #3 /library/XenForo/ControllerAdmin/Cron.php(204): XenForo_Model_Cron->runEntry(Array) #4 /library/XenForo/FrontController.php(310): XenForo_ControllerAdmin_Cron->actionRun() #5 /library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch)) #6 /admin.php(13): XenForo_FrontController->run() #7 {main}
Is there any other content besides that ? You might have the actual error above that
Exception: Sitemap has been generated - library/XfAddOns/Sitemap/Model/Sitemap.php:159
Generated By: Unknown Account, Today at 5:00 PM
Oh, that is not an error. Just a log message. See the "Sitemap has been generated"Hi there, here is what is above:
Code:Exception: Sitemap has been generated - library/XfAddOns/Sitemap/Model/Sitemap.php:159 Generated By: Unknown Account, Today at 5:00 PM
I did make sure the directory sitemap was properly CHMOD 777.

You would need to download the sitemapAh okay, I just wanted to make sure of that, because it was appearing in the server error logs.
Also is there a URL that I can view the sitemap without having to download the file?
Just sitemap.xml.gzWhich sitemap I should add to GWT? Only sitemap.xml.gz or all 6 sitemaps in sitemap folder?
Thanks,
There is an .htaccess sample on the zip file, you could try using one of thoseHi Rigel, how do I point: http://www.47r-squad.com/robots.txt to http://www.47r-squad.com/index.php?xfa-robots/index ?
Unfortunately I am not an .htaccess expert
We use essential cookies to make this site work, and optional cookies to enhance your experience.