cpanel

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

Host Primary Domain from a subfolder

无人久伴 提交于 2019-12-05 16:43:05
I am having a problem making a sub directory act as the public_html for my main domain, and getting a solution that works with that domains sub directories too. Background My hosting allows me to host multiple sites, which are all working great. I have set up a subfolder under my ~/public_html/ directory called /domains/ , where I create a folder for each separate website. The folder structure on my server looks something like this: public_html domains websiteone websitetwo websitethree ... This keeps my sites nice and tidy. The only issue was getting my "main domain" to fit into this system.

'Installation failed: Could not create directory.' I get this error everytime i try to download plugin in wp 4.8

主宰稳场 提交于 2019-12-05 16:13:46
I am getting error accessing my admin panel. The error is due to plugin. I fixed the issue by renaming the plugin folder from cpanel and changed it back. Since then,i couldn't download any plugins and get the error Installation failed: Could not create directory. You need to set permission on plugin folder/directory, now the user does not have permission to create folder/directory in plugin folder/directory. You need to set permission on wp-content and all inside folder/directory to 755. You can set permission via terminal sudo chmod -R 777 wp-content wp-content should me you folder path for

SMTP ERROR: Failed to connect to server: Connection refused (111) ERROR MESSAGE

巧了我就是萌 提交于 2019-12-05 08:08:50
I'm new to PHPMailer , and I just downloaded it with Composer and coded this as index.php : <?php require_once 'vendor/autoload.php'; use PHPMailer\PHPMailer\PHPMailer; $m = new PHPMailer; $m->isSMTP(); $m->SMTPAuth = true; $m->SMTPDebug = 2; $m->Host = 'smtp.mail.yahoo.com'; $m->Username = 'vagefipooya@yahoo.com'; $m->Password = 'MY PASSWORD'; $m->SMTPSecure = 'ssl'; $m->Port = 465; $m->IsHTML(true); $m->SetFrom('pouyavey@gmail.com'); $m->FromName = 'Pouya Vaghefi'; $m->addReplyTo('pouyavey@gmail.com','Pouya Vey'); $m->addAddress('pouyavey@gmail.com','Pouya Vey'); //$m->addCC('alex@phpacademy

robots.txt allow all except few sub-directories

点点圈 提交于 2019-12-05 07:52:28
I want my site to be indexed in search engines except few sub-directories. Following are my robots.txt settings: robots.txt in the root directory User-agent: * Allow: / Separate robots.txt in the sub-directory (to be excluded) User-agent: * Disallow: / Is it the correct way or the root directory rule will override the sub-directory rule? unor No, this is wrong. You can’t have a robots.txt in a sub-directory. Your robots.txt must be placed in the document root of your host. If you want to disallow crawling of URLs whose paths begin with /foo , use this record in your robots.txt ( http://example

php send mail form not working with emails on same domain [closed]

ぐ巨炮叔叔 提交于 2019-12-04 22:07:23
I am trying to add a contact form to a website which posts the form data to an email address. It works fine with any other email registrants like Gmail and Yahoo. but it doesn't work with emails with same domain name (e.g.: info@domain.com or support@domain.com). The same form was working fine with godaddy deluxe hosting but now that I have shifted to Godaddy CPanel linux hosting deluxe plan, it doesn't work. Please go through the following code I am using and let me know what has to be changed. Your suggestions are greatly appreciated. Thanks in advance. Code: <?php if(isset($_POST['email']))

How to handle POST request to PERL from html

喜你入骨 提交于 2019-12-04 21:19:43
I am writing a small cPanel plugin which basically submit an html form to a perl file over ajax request to the perl file. The type of the request is POST as I need to send some data to the script. My Question is how can I handle the POST data in perl? Now, I have found few implementations with the CGI library, however I do not have that available as default cPanel perl module. Furthermore I have found few examples with the LWP library, however I am failing to understand those. Can someone give me any suggestion on this. Thank you! use CGI qw( ); my $cgi = CGI->new(); my $json = $cgi->param(

cronjob in codeigniter using cpanel

前提是你 提交于 2019-12-04 21:18:12
问题 My website hosting server is hostmonster.com. My application uses codeigniter framework. I have a code which sends emails to my users and I want to make it automatic. I have used the cpanel of the hosting service and I tried to give the command as php -q www.mysite.com/admin admin sendDailyEmail my controller is admin and the method is sendDailyEmail and the controller is present inside the application/controllers/admin folder. I have also set a reminder email to me whenever the cronjob is

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

Find original main domain name based on add-on domain name

半城伤御伤魂 提交于 2019-12-04 19:42:34
This may not even be possible but I'm trying to figure out the URL of the main domain for an add-on domain. Lets say for example the site is at mymaindomain.com. If I go to http://mymaindomain.com/cpanel (or :2082 or :2083) I get nothing. That is because mymaindomain.com is an add on domain for the hosting account. Lets say the primary domain on the account is myprimarydomain.com and this was the domain originally set up with the hosting account. However, this domain is no longer valid and not being leased by the hosting client anymore. If I log in to cpanel using the old main domain by going