Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by TCH-Andy

  1. We chatted, created a new account in outlook, checked it worked, then copied all the old emails over. All working nicely now I hope
  2. If you want a simpler alternative for paint try "GNU paint", although I like Bruce use GIMP. For notepad++ try "Geany" which is an IDE, probably the closest to notepad++, or you can add the various plugins to Gedit.
  3. Yes, although 240 mins ( 4 hours) rather than 240 seconds - I think that was probably just a typo on your part though Correct, so it then passes the list of files to the command following the pipe Correct, it's a directory listing (ls) in long listing format (-l) Basically it adds the arguments passed to it to the end of the command, or swaps (x) the order of the command and arguments if you prefer to think of it that way. So in this case it adds each file found (one at a time) to the command for the long listing ( ls -l). Spaces or other characters (such as brackets in the file name) will be needed to be treated carefully though, otherwise they will appear as separate arguments in the ls command The -r tells the xarg command to only run if it is passed data. i.e. if there were no files found ( hence nothing passed to it) it would not run. Don't be sorry, learning new skills, or improving skills is always good
  4. There isn't I'm afraid, as it's defined by the owner of the process that can't be changed. The only way I can think to get round it is to get the piped script to dump the data to a file, then to call the URL of a web page php to execute and send the email. That way it is a web page ( hence "nobody") sending the email.
  5. It will be different from a piped script compared with a direct php because of the owner of the running process. When it is run from a web page it will be run as "nobody". When it is run from your piped script it will be running as your cpanel ID.
  6. Yes, that's pretty much correct I would add the path into the require_once so that it becomes require_once("/home/cpuser/Something.php"); where cpuser is your cpanel username ( and assuming you have uploaded Something.php into your root directory.
  7. Hi Siverz, welcome to the forums. This is an old thread, but the code still works effectively. The easiest place to add it would be at the beginning of your template, then it's automatically added to all pages.
  8. I was fortunate enough to manage to get one of the first copies of the new album just released by Natalie Brown - "Random Thoughts". I may be biased (well, she is a family member here ) but I think it's great - well done Nat Advertising isn't allowed on our forums here - otherwise I'd provide a link but you can find out a little more on a spotlight we did about Natalie back in 2003 - http://www.totalchoicehosting.com/spotlight2.html She's been a member of the family here for a while Anyway, I just wanted to say well done Nat, I love your voice
  9. ukrtel has the ranges; - - - - - - - - - - so for some like 92.112 it is the whole range ( from to ) whereas for others like 195.5 they only have the first half of that 16 block. The easiest to block these ranges is probably to use the CIDR (you can convert on ip2cidr.com ) deny from deny from deny from deny from deny from deny from deny from deny from deny from deny from deny from deny from
  10. What is the forum ( IPB? vBulletin? something else ? ) and what is the chat program you are trying to install.
  11. Welcome to the forums itzybitzyskitzy The ability to create new php variables is not locked in cpanel. Is he trying to use some sort of restricted variable name or function ?
  12. HI Brian, I assume that this is the .htaccess in your public_html folder. There is no redirect in there. What are you trying to redirect to where ? ( if you don't want to say on a public forum, then please PM me )
  13. Welcome to the forums Brian What do you have in your main .htaccess file and in any .htaccess in the subfolder ? The issue in the above case was because there was a conflict between the two different .htaccess files.
  14. welcome to the forums pcb-beachbumb 1. DO I first need to create a database with the same name on my TCH site? Yes, you should create a database and and a user in cpanel, adding the user to the database. 2. DO I just use normal FTP to upload my DATA & Database tables, if so where do I put them? You upload the database using PHPmyAdmin in cpanel. If the file is large ( over 4MB ) then I would suggest uploading the sql file to your account, then opening a ticket telling us where teh file is and the name of the database you would like it uploading in, asking us to upload it for you. 3. The remote MYSQL access in cpanel, is that to be used with my local mysql administrator panel to control the database on TCH? if so what would my settings be? Yes, if you create the database in canel, then you could access it remotely ( and even upload the data that way). The settings would be then be the domain name, the database name, the name of teh user you have assigned to teh database, and teh password you have assigned to it. You will also need to add the IP address in cpanel of where you want to access from ( or % for anywhere ).
  15. This folder is in the reseller account ( or, if you have swapped accounts between the reseller and resold accounts it might have been left over) and is the page that would be displayed if any of the accounts under that reseller were suspended.
  16. I'm fine thanks Nat, OJB had it covered and posted just before me, hence I deleted my reply. I'm glad you have it all sorted
  17. Welcome to your first post on the forums All looks OK, I'd suggest opening a ticket so that your server & account can be checked to see if we can replicate the issue ( I checked several servers / accounts and couldn't replicate, so we'd need your account details to check fully - hence suggesting a ticket).
  18. Glad it worked Sorry, should have said that email@whatever.com was the email address you wanted to send it to
  19. If it's just a text log file, and not too big, you can simply do the following in a cron job (which you can set to say once per day) >/bin/mail -s "latest log file" email@whatever.com < /home/username/mylogfile.log where "latest log file" is the email subject and /home/username/mylogfile.log is the location of the log file. If you want a little bit more finesse about it, so that for example it sends the email, then archives the log, so that each day you only get the days log. I'd write a small php script to send the email, and then call that from the cron job.
  20. On the lines before the rewrite for the www redirect you have >RewriteRule ^(.*)$ index.php [F,L] where the L here means 'last' - i.e. Stop the rewriting process here and don't apply any more rewriting rules. Try removing that ,L ( I didn't check the rest of the code - but that seems the most obvious reason)
  21. Do a quick google on CIDR of have a look at http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing ..... Basically if you add /16 on the end of an IP address such as it means and the following 256x256 IP's - hence from to
  22. Basically it will be the same. It depends what you are wanting to do - the layeredtech IP block is - if you want to block the lot.
  23. I just noticed this thread, and thought I'd respond. It is slowing things down because of the domain names in the lookup. These force the server to do two DNS lookups. It will do a reverse DNS lookup on the IP address to find the associated hostname, and then do a forward lookup on the hostname to assure that it matches the original IP address. If the forward and reverse DNS are consistent and the hostname matches access will be blocked. If you use an IP address ( or IP range ) rather than the domain name, you should find it much quicker as you are not waiting for the DNS lookups.
  24. There are details in the backup FAQ thread.
  • Create New...