The post How to Rebuild Plesk Apache Config Files first appeared on Web Hosting Stuff.
]]>If you want to rebuild apache configuration files on the pleask server then, follow the condition.
[root@hostripples~]# /usr/local/psa/admin/bin/websrvmng -av
This will rebuild all your httpd.include files.
That’s it!
The post How to Rebuild Plesk Apache Config Files first appeared on Web Hosting Stuff.
]]>The post How to Configuring Self-Signed SSL / HTTPS Access first appeared on Web Hosting Stuff.
]]>1) To install OpenSSL on your VPS:
apt-get -y install openssl
2) To generate a self-signed certificate that ZPanel will use to secure your connection by using following commands:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -out /etc/pki/tls/certs/zpanel.crt -keyout /etc/pki/tls/certs/zpanel.key
3) To be configured to use the new certificate by using following commands:
nano /etc/httpd/conf.d/ssl.conf
4) Now, Find the SSLCertificateFile and SSLCertificateKeyFile entries and change them to :
SSLCertificateFile /etc/pki/tls/certs/zpanel.crt
SSLCertificateKeyFile /etc/pki/tls/certs/zpanel.key
5) Save changes and Exit from the file.
We need to redirect all HTTP based ZPanel login attempts to the secure HTTPS URL.
1) Login to ZPanel
2) Navigate the menu system as follows:
Zpanel -> Admin -> Module Admin -> Apache Admin
3) In Global Zpanel section, insert the following:
Redirect Permanent / https://[VPS FQDN]/
4) Now restart the Apache server on your VPS.
service apache2 restart
.
.
.
.
.
.
The installation is now complete!
You can now access your Ubuntu ZPanel installation via secure SSL (HTTPS) connections!
The post How to Configuring Self-Signed SSL / HTTPS Access first appeared on Web Hosting Stuff.
]]>The post To Configuring NodeJS, Grunt, and Bower for CageFS first appeared on Web Hosting Stuff.
]]>
To Install NodeJS, Grunt, and Bower on CloudLinux
1) Login to your root server
2) Create a directory and move into it using following scripts
mkdir ~/nodejs-install; cd ~/nodejs-install
3) To Copy the install files to using following scripts
( These install file is currently maintained for the rpms )
git clone https://github.com/nodesource/distributions.git
4) Move to rpm install folder
5) Run the setup to using following scripts
cd distributions/rpm; sh setup
6) Install nodejs to using following scripts
yum install nodejs
7) Install grunt and bower to using following scripts
npm install -g grunt-cli; npm install -g bower
If you are not using CageFS with CloudLinux you are done. Your nodejs, grunt, and bower commands should all work in the shell. Then you are using CageFS
How to Configuring NodeJS, Grunt, and Bower for CageFS
1) Configure cagefs for nodejs to using following scripts
touch /etc/cagefs/conf.d/nodejs.cfg
2) In grunt.cfg file use the any editor & copy the following scripts
[grunt]
comment=Grunt tools
paths=/usr/bin/grunt, /usr/local/bin/grunt, /usr/lib/node_modules/grunt-cli
3) Configure cagefs for bower to using following scripts
touch /etc/cagefs/conf.d/bower.cfg
4) In bower.cfg file use the any editor & copy the following scripts
[bower]
comment=Bower web tools
paths=/usr/bin/bower, /usr/local/bin/bower, /usr/lib/node_modules/bower
5) Then re-initialize cagefs to using following scripts
cagefsctl –force-update
.
.
.
.
Congrast Your nodejs, grunt, and bower commands should be available on cPanel accounts.
Test
To test an installation is working (and that the setup scripts are working!) use:
curl -sL https://deb.nodesource.com/test | bash –
The post To Configuring NodeJS, Grunt, and Bower for CageFS first appeared on Web Hosting Stuff.
]]>