whm

Pointing my domain to my node.js instance

与世无争的帅哥 提交于 2019-12-22 00:52:37
问题 I own a server running whm / cpanel, and I have recently been experimenting with node.js. I have a little node test server running and i would like to point a domain at it. Up till now, I have been using whm to create accounts and deal with domains, but this is a different scenario, and I have little knowledge about how to make a domain point to something on my server when there are multiple other domains pointing to other different things on my server at the same time. Thanks 回答1: Ok, I have

How to mod-rewrite all requests to single file without causing an infinite loop

天涯浪子 提交于 2019-12-12 16:15:46
问题 How can I take all requests to www.myurl.com/{ANYTHING} and send them all to www.myurl.com/index.php I am finding I can send everything with: RewriteRule .* index.php [R=Permanent,L] This works great, except I am redirected to www.myurl.com/home/username/public_html because of my cpanel/apache installation. So instead I changed my code to RewriteBase / RewriteRule .* index.php [R=Permanent,L] But this causes the infinite loop again. 回答1: Try: RewriteCond %{REQUEST_URI} !^/index.php

Apache mod_security blocking country

五迷三道 提交于 2019-12-11 09:54:42
问题 I used this rule to block country in Mod_security : (I already configured @geoLookup with the maxmide lite database .dat) # Test IP address and block by country code SecRule REMOTE_ADDR "@geoLookup" "phase:1,chain,id:10,drop,log,msg:'Blocking China IP Address'" SecRule GEO:COUNTRY_CODE "@streq CN" But it doesn't work, no ip logged. I tried with a different country and it does not work. Any help? Thank you. 来源: https://stackoverflow.com/questions/33611280/apache-mod-security-blocking-country

Piping email to php script

跟風遠走 提交于 2019-12-11 08:53:11
问题 I've been searching for an answer for 2 days now and have found so much, but still can't get this to work. I have a WHM server with a cPanel account. I have created the following php script under public_html at /home/USERNAME/help-system/parse.php for testing: #!/usr/local/bin/php -q <?php mail('****@davidslack.co.uk', 'Test email', 'Test email to get an email into the script'); ?> I have also created a forwarder in cPanel that forwards to: |/home/USERNAME/help-system/parse.php The php script

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,

How do I add virtual hosts the right way while running WHM?

大憨熊 提交于 2019-12-10 17:26:55
问题 I'm running a dedicated server separating accounts for my clients with WHM and CentOS 5. One of my clients has asked me to install subversion, and have the repository stored beneath the webroot. repo's true folder will be in "/home/theirfolder/svn" repo will be accessed through a subdomain on "svn.theirdomain.com" I know that the regular way to do this is to set up a virtual host in Apache that handles the redirect. The problem is that WHM seems to overtake the whole virtual hosting process,

ImageMagick - PECL issue - Cannot locate header file MagickWand.h

与世无争的帅哥 提交于 2019-12-10 12:39:16
问题 We are getting this error while installing ImageMagick PECL: checking ImageMagick MagickWand API configuration program... found in /usr/local/bin/MagickWand-config checking if ImageMagick version is at least 6.2.4... found version 6.8.6 Q16 checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h ERROR: `/root/tmp/pear/imagick/configure --with-imagick' failed extension imagick.so installed in /usr/local/lib/php.ini /usr/local/bin/php does not have a

How does one go about creating a database through the cpanel/whm API?

ε祈祈猫儿з 提交于 2019-12-08 03:00:21
问题 I have the API creating an account on a dedicated server for a user fine, creating email addresses fine as well, however when I attempt to create an mysql database through the API, I get error message 'Access Denied', even though access is root. The code I am trying to use: $xmlapi = new xmlapi($host); $xmlapi->password_auth("".$root_user."","".$root_pass.""); $xmlapi->set_debug(1); $xmlapi->set_output('array'); $xmlapi->set_port('2083'); //create database $createdb = $xmlapi->api1_query(

Can a Cert be issued without a CSR and using old Private Key

和自甴很熟 提交于 2019-12-06 14:34:22
I'm confused about something in the SSL renewal process using WHM/cPanel for an existing Comodo Extended Validation cert. We have been issued a replacement certificate by Comodo without - I believe - every submitting a CSR for them. I say "I believe" because there are 3 people with access to WHM for this server, but I'm assured that no one has been fiddling in the last year. Does this sound possible? CAN a cert be supplied without a CSR if it's a replacement? I will attempt to get hold of Comodo but being a weekend, and seeing that the old cert runs out in a day I thought I'd consult the

How does one go about creating a database through the cpanel/whm API?

心不动则不痛 提交于 2019-12-06 12:32:57
I have the API creating an account on a dedicated server for a user fine, creating email addresses fine as well, however when I attempt to create an mysql database through the API, I get error message 'Access Denied', even though access is root. The code I am trying to use: $xmlapi = new xmlapi($host); $xmlapi->password_auth("".$root_user."","".$root_pass.""); $xmlapi->set_debug(1); $xmlapi->set_output('array'); $xmlapi->set_port('2083'); //create database $createdb = $xmlapi->api1_query($root_user, "Mysql", "adddb", array($dbname)); and the error data I am getting back: URL: https://delta1