cpanel

WHM backup and transfer

孤街浪徒 提交于 2019-12-11 07:44:10
问题 I have a web site on the cpanel(whm), I want to backup whole site and transfer it to another stand-alone server of my own, is that feasible? how to do it? 回答1: If the new server doesn't have cPanel I don't think there is a method of recreating automatically the account, so just try to run /scripts/pkgacct user(if you have root on cPanel server) or just use cPanel -> Backups -> Download or generate a full website backup. Copy archive to the new server and start to manually recreate account,

Applying .htaccess folder username/password with PHP

时间秒杀一切 提交于 2019-12-11 07:22:41
问题 I’m building a PHP/MySQL web application. Users log in and various session variables are set. There’s a folder on the webserver where users can upload files to (any kind – images, pdf, .doc etc). I’d like to protect this folder to prevent people who are not logged in typing in the url and getting to these files. Browsing of files in this folder is disallowed. I can apply a password using my cpanel, which works nicely. However it means that users have to log in to the application, then the

Set up a cron every hour

南笙酒味 提交于 2019-12-11 07:09:50
问题 I try to set up a cron on my cpanel. I want to execute that cron every hour ex.: 1:00,2:00 ,3:00....23:00,24:00 How can I do that?Can anyone help me? 回答1: Usually the structure is like this 0 * * * * anf if you are trying to acces a link 0 * * * * wget http://example.com/file.php 回答2: /5 means you run something every 5:th (hour minute or similar). Try /1. 回答3: You can also use: @hourly your_command Source 来源: https://stackoverflow.com/questions/26340358/set-up-a-cron-every-hour

Transferring large number of files from one server to another

陌路散爱 提交于 2019-12-11 06:29:11
问题 I am moving servers and our images directory has around 15,000 images (2GB in size) which needs to be moved on to new server. Images will have a different path on new server so can't just migrate whole CPANEL. Any easy way to resolve this issue? Thanks for help in advance. 回答1: use SFTP from one server to the other http://support.cs.utah.edu/index.php?option=com_content&view=article&id=33&Itemid=59 edit: In answer to yr question below: Don't need local download, sftp is direct server to

ModSecurity gives Generic SQL injection protection error

你说的曾经没有我的故事 提交于 2019-12-11 06:08:12
问题 I got this error on my Cpanel server. It doesn't happen on every update, just some SQL. [Sat Mar 11 03:48:18.409435 2017] [:error] [pid 31376:tid 140202228020992] [client 180.253.119.171] ModSecurity: Access denied with code 500 (phase 2). Pattern match "((alter|create|drop)[[:space:]]+(column|database|procedure|table)|delete[[:space:]]+from|update.+set.+=)" at ARGS:description. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "254"] [id "300015"] [rev "1"] [msg "Generic SQL injection

How to access the var folder and a MySQL database folder with .frm, .MYD and .MYI files of each table in CPanel?

╄→гoц情女王★ 提交于 2019-12-11 03:32:00
问题 I have a website on a dedicated server which a friend of mine is the administrator. My question is how to access the var folder where my database is located in for direct access to .frm, .MYD and .MYI files of each of my tables in Cpanel. 回答1: in linux (ubuntu) mysql files will be located at /var/lib/mysql/ you can access by putty. This directory is not permitted by the users. Use " sudo su " command, then try to access this directory. 来源: https://stackoverflow.com/questions/22667759/how-to

How to access list of email accounts with cPanel API?

家住魔仙堡 提交于 2019-12-11 03:22:41
问题 cPanel is a web server management application that we have installed on our servers. It has a XML/JSON-based PHP API that we want to use to access data such as a list of all email accounts. This system is huge, I could'nt find an answer to this anywhere. Does anyone know how to list email accounts with the cPanel API? Edit: The function I need is listpopswithdisk (docs here) which lists email accounts under a given domain, but no idea how to call this function. 回答1: I think anyone can get his

Copy Codeigniter project from Main domain to subdomain

半世苍凉 提交于 2019-12-11 02:36:29
问题 I want to create a copy of my currently running codeigniter website , say http://www.example.com and place the copy in a new subdomain "beta" , say http://beta.example.com for test purposes and site modifications, so that the live site doesnt gets unmanaged due to the modifications. So its about making a replica of website for test purposes and modifications under beta subdomain . How should I do it? This is the file-structure I am having in beta subdomain 回答1: First use your cpanel to add a

Sending email ruby on rails dev environment smtp cpanel

天涯浪子 提交于 2019-12-11 02:34:25
问题 I'm having trouble sending email using ruby on rails. When I'm using the gmail smtp, it's working fine but when I tried to use the email I created in cpanel, I can't seem to send any emails now. Does anyone know how to configure this? Thanks. here's my mailer_setup.rb under initializers folder ActionMailer::Base.delivery_method = :smtp # be sure to choose SMTP delivery ActionMailer::Base.smtp_settings = { :address => "mail.humouno.com", :port => 25, :domain => "humouno.com", :user_name =>

Unity 2017.3.0f3 post data not being sent to LAMP server

感情迁移 提交于 2019-12-10 23:14:56
问题 It looks like my cpanel/WHM server has probably (though I am not sure what is the cause) been set with some security settings, where PHP is not receiving form data posted from other domains / computers / devices... I've tested null $_REQUEST (and also $_POST - just in case) dump for post data where the origin comes to the server from another device. I have also tried CORS setting all in PHP header("access-control-allow-origin: *"); I have also set in .htaccess in both the parent directory and