whm

How can I add npm (node.js package manager) to the PATH?

老子叫甜甜 提交于 2019-12-05 18:43:28
问题 I installed node.js like this: cd /usr/local/bin/ git clone --depth 1 http://github.com/joyent/node.git cd node git checkout origin/v0.4 # optional. Note that master is unstable. export JOBS=2 # optional, sets number of parallel commands. mkdir ~/local ./configure --prefix=$HOME/local/node make make install echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile source ~/.profile Then I executed this curl http://npmjs.org/install.sh | sh to install npm. After I logged out and logged back

This site can’t be reached Amazon Ec2

给你一囗甜甜゛ 提交于 2019-12-04 20:53:09
问题 I have created an instance on Amazon EC2 then installed whm and cpnel. I am able to access cpanel just by using my domain name ex. domainname.com/2083 but when i go to my domain mane ex. domainname.com it gives This site can’t be reached... I am a bit confused if site wasn't pointed properly then it should not go to Cpanel either but since its able to access cpanel then why its not displaying the website. I have already rechecked name servers and host name. 回答1: You should login to your AWS

Pointing my domain to my node.js instance

南楼画角 提交于 2019-12-04 18:49:14
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 Tom Gruner Ok, I have never tried this, but you could use a rewrite rule in a .htaccess file and rewrite everything to

intl and icu configuration

蹲街弑〆低调 提交于 2019-12-04 05:19:50
问题 I've been working on a local development machine running Ubuntu 12 developing a Symfony2.3.5 application. All works well, until I uploaded the code and came across this: Could not load the resource bundle "/home/project/public_html/vendor/symfony/icu/Symfony/Component/Icu/Resources/data/region/en.res". The server is currently running the following: CENTOS 5.9 x86_64 standard WHM 11.38.2 (build 7) In WHM I've installed intl via the EasyApache installer, yet I'm still getting this error. This

This site can’t be reached Amazon Ec2

烂漫一生 提交于 2019-12-03 14:24:35
I have created an instance on Amazon EC2 then installed whm and cpnel. I am able to access cpanel just by using my domain name ex. domainname.com/2083 but when i go to my domain mane ex. domainname.com it gives This site can’t be reached... I am a bit confused if site wasn't pointed properly then it should not go to Cpanel either but since its able to access cpanel then why its not displaying the website. I have already rechecked name servers and host name. You should login to your AWS EC console then go to the Security Groups and create a custom allow rule for the HTTP traffic (port 80) and

intl and icu configuration

心不动则不痛 提交于 2019-12-02 05:41:45
I've been working on a local development machine running Ubuntu 12 developing a Symfony2.3.5 application. All works well, until I uploaded the code and came across this: Could not load the resource bundle "/home/project/public_html/vendor/symfony/icu/Symfony/Component/Icu/Resources/data/region/en.res". The server is currently running the following: CENTOS 5.9 x86_64 standard WHM 11.38.2 (build 7) In WHM I've installed intl via the EasyApache installer, yet I'm still getting this error. This installed ICU 3.6 . My development version is 4.8.1, so about 10 years newer. Is the ICU version the

Install fileinfo php extension

瘦欲@ 提交于 2019-12-01 05:17:05
As the fileinfo is moved from PECL to PHP. What is the best way to install it through WHM or putty.? I tried following command: pecl install fileinfo and received following error: WARNING: "pear/Fileinfo" is deprecated in favor of "channel://php-src/ext/fileinfo/in php sources "WARNING: channel "pear.php.net" has updated its protocols, use "pecl channel-update pear.php.net" to update downloading Fileinfo-1.0.4.tgz ... Starting to download Fileinfo-1.0.4.tgz (5,835 bytes) .....done: 5,835 bytes 3 source files, building running: phpize Cannot find config.m4. Make sure that you run '/usr/local

Install fileinfo php extension

此生再无相见时 提交于 2019-12-01 02:41:06
问题 As the fileinfo is moved from PECL to PHP. What is the best way to install it through WHM or putty.? I tried following command: pecl install fileinfo and received following error: WARNING: "pear/Fileinfo" is deprecated in favor of "channel://php-src/ext/fileinfo/in php sources "WARNING: channel "pear.php.net" has updated its protocols, use "pecl channel-update pear.php.net" to update downloading Fileinfo-1.0.4.tgz ... Starting to download Fileinfo-1.0.4.tgz (5,835 bytes) .....done: 5,835

Create database programatically from PHP on WHM/cPanel server

走远了吗. 提交于 2019-12-01 00:30:24
I was wondering whether it is possible to create a new database and user, from PHP, on an WHM/cPanel server. titel Ok, this is the thing. 'mysql_create_db' function does not work properly on cPanel servers. There is a solution to this though, by using the proprietary cPanel function like so http://USER:PASS@HOST:2082/frontend/SKIN/sql/adddb.html?db=DB There is also a ready-made script that can be used here http://www.zubrag.com/scripts/cpanel-database-creator.php For CPanel: function create_db($cPanelUser,$cPanelPass,$dbName) { $buildRequest = "/frontend/x3/sql/addb.html?db=".$dbName;

Create database programatically from PHP on WHM/cPanel server

一曲冷凌霜 提交于 2019-11-30 19:52:52
问题 I was wondering whether it is possible to create a new database and user, from PHP, on an WHM/cPanel server. 回答1: Ok, this is the thing. 'mysql_create_db' function does not work properly on cPanel servers. There is a solution to this though, by using the proprietary cPanel function like so http://USER:PASS@HOST:2082/frontend/SKIN/sql/adddb.html?db=DB There is also a ready-made script that can be used here http://www.zubrag.com/scripts/cpanel-database-creator.php 回答2: For CPanel: function