Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - locvfx

Pages: 1 ... 4 5 [6] 7 8
76
Installation / Re: ipv6 errors while setting up
« on: March 10, 2017, 02:36:29 PM »
HERES HOW I MADE IT WORK

IN VHOST CONFIGRUATION FILE I ADDED A SEPARATE WEBSITE FOR IP6.  JUST COPY EACH WEBSITE IN VHOST, PASTE RIGHT BELOW AND THEN CHANGE THE IP4 ADDRESS TO THE IP6 ADDRESS.  DONT FORGET IP6 IS IN  BRACKETS  [   ]

You can combine like this: (replace your IP6 address)


Quote
Listen [2a01:4f8:140:54e4::3]:80
 
<VirtualHost xx.xx.xx.xx:80 [2a01:4f8:140:54e4::3]:80>
  ServerName mydomain.com
  ...
</VirtualHost>


77
CSF Firewall / Re: Suspicious process running under user nobody
« on: February 24, 2017, 08:19:08 AM »
edit your /etc/csf/csf.pignore
nano /etc/csf/csf.pignore

Add these lines
Quote
user:root
user:named
user:apache
user:postfix
user:dovecot
user:daemon
user:nobody
user:rpm
user:mysql
user:mail
user:exim
user:sshd

78
CentOS 6 Problems / Re: 500 internal server error after migration
« on: February 24, 2017, 07:47:48 AM »
hey i have do migrate for my data from another server cpanel ,

and i was see problem " Forbidden " i turned off the mod security i uninstall it , and i try to fix permission for the user i have migrated , and i got internal server error 500 , in the new site i have migrated , i need your help , thanks

Replace your USERNAME
Quote
cd /home
chown -R USERNAME:USERNAME USERNAME
chmod 755 USERNAME
find ./USERNAME -type d -exec chmod 755 {} \;
find ./USERNAME -type f -exec chmod 644 {} \;

79
SSL / Re: Letsencrypt new domain
« on: February 24, 2017, 07:40:10 AM »
Thank you @Masreal ! It works. :)

But I have one more problem. When I try open my website which has SSL by this way, This web site opening with HTTP. How can open web site with HTTPS automatically? I need to write manual HTTPS for now if I try open my web site.

Add this to your .htaccess file

Quote
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

http://www.inmotionhosting.com/support/website/ssl/how-to-force-https-using-the-htaccess-file

80
This is an example of the code block (replace USERNAME YOUR_DOMAIN, YOUR_SERVER_IP accordingly)

Quote
# vhost_start YOUR_DOMAIN.com
<VirtualHost YOUR_SERVER_IP:443>
 ServerName YOUR_DOMAIN.com
 ServerAlias www.YOUR_DOMAIN.com
 DocumentRoot /home/USERNAME/public_html
 SSLEngine on
 SSLCipherSuite ALL:!ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
 SSLProtocol All -SSLv2 -SSLv3

# SSLCertificateFile /etc/pki/tls/certs/YOUR_DOMAIN.com.cert
#SSLCertificateKeyFile /etc/pki/tls/private/YOUR_DOMAIN.com.key
# SSLCertificateChainFile /etc/pki/tls/certs/YOUR_DOMAIN.com.bundle

##Prevent Warning of Browser
SSLCertificateFile /etc/letsencrypt/live/www.YOUR_DOMAIN.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.YOUR_DOMAIN.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/www.YOUR_DOMAIN.com/chain.pem
 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
<IfModule mod_suexec.c>
    SuexecUserGroup USERNAME USERNAME
</IfModule>

<IfModule mod_suphp.c>
    suPHP_UserGroup USERNAME USERNAME
    suPHP_ConfigPath /home/USERNAME
</IfModule>

<Directory "/home/USERNAME/public_html">
    AllowOverride All
</Directory>
</VirtualHost>
# vhost_end YOUR_DOMAIN.com


As you can see , ##Prevent Warning of Browser. This is a quick fix to get risk of warning from browser
Make sure these files are exist:
/etc/letsencrypt/live/www.YOUR_DOMAIN.com/cert.pem
/etc/letsencrypt/live/www.YOUR_DOMAIN.com/privkey.pem
/etc/letsencrypt/live/www.YOUR_DOMAIN.com/chain.pem

81
SSL / Re: Error letsencrypt new domain on new server
« on: February 24, 2017, 07:24:07 AM »
Fix folder permission
chmod 755 /home/YOUR_USERNAME/public_html/.well-known

Remove .htaccess file if any exist
mv  /home/YOUR_USERNAME/public_html/.htaccess /home/YOUR_USERNAME/public_html/.htaccess1

Try to put a text file under .well-known/test.txt and test whether you can access it on browser.


82
PHP / Re: Error Denied Php Switcher
« on: February 22, 2017, 07:18:44 AM »
You have problem with Folder/files permission
Maybe try to
chmod  +x /usr/loca/src/php-rebuild.sh

83
Backup / Re: How is backup rsync configured ? i have 10 vps to backup only
« on: February 22, 2017, 07:04:06 AM »
1. write a script to backup your VPS locally (depends on what you need to backup, which database you need too), set cron if you need. You have 10 slaves need to be backup
2. on your Backup server, you setup SSH keypair to allow access to your 10 slaves and then do sftp to pull backup files
OR: on your backup server, wget with ftp user/passwrd to pull your backup files
3. Set cron on backup server to automate the task

84
How to / Re: Move to Another Server?
« on: February 22, 2017, 06:52:13 AM »
- Ask your provider to make a snapshot and extract on destination. Otherwise you need to do manually.
- If you are using public cloud, maybe you can detach SSD drive and attach to your new server, but you need to adjust IP address , depends on your new server

85
How to / Re: no access to vps with cwp or putty
« on: February 21, 2017, 10:22:12 AM »
Sorry you need to rebuild/reinstall your VPS
Ask your provider if you dont have access to it.

86
How to / Re: mod_cloudflare doesn't work with successful installtion!
« on: February 21, 2017, 10:16:27 AM »
Does not work with cwp7
I tried all solutions from the forum and from google results
With apache only selected returns the cloudflare IP
with apache + nginx returns the server IP
some with varnish or all 3
maybe someone know the solution

May I ask what's the reason you need to see visitor's ip
I suggest not to use cloudflare. It's annoying, dont trust their words (If you are using Free plan)
Have you try Mod GeoIP

Quote
yum -y install geoip-devel
cd /tmp
wget http://pecl.php.net/get/geoip-1.0.8.tgz
tar -zxvf  geoip-1.0.8.tgz
cd geoip-1.0.8
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install
3. After "make install" command execution done you will get a line stating the shared extension directory path. For Example : some text /usr/lib64/extensions/no-debug-non-zts-20131226
4. Copy that directory path only. Then go to your php.ini file editor.
5. Go to the bottom of the file and paste : extension_dir = the path you copied from the make install completion.
6. After the extension_dir line put : extension=geoip.so
7. Restart Apache and to verify the module, use this command : php -m




87
How to / Re: How to enable the intl extension on CWP ?
« on: February 21, 2017, 10:07:04 AM »
uncomment these lines,

;extension=php_intl.dll
;extension=php_ldap.dll
;extension=php_curl.dll

not only extension=php_intl.dll. and restart your httpd

88
How to / Re: How to add/use remote mysql ?
« on: February 21, 2017, 10:00:30 AM »
Hello, i need to add a database with remote mysql allowed for a ip. How to do it ? Thanks !

- Open port 3306 in your firewall (IN/OUT)

MYSQL:
Quote
Grant user permission on a Database
GRANT ALL PRIVILEGES ON mydb.* TO user@'localhost' IDENTIFIED BY 'password';

Grant remote access to specific IP All Database
GRANT ALL PRIVILEGES ON *.* TO 'USERNAME'@'1.2.3.4' IDENTIFIED BY 'PASSWORD' WITH GRANT OPTION;

Revoke permision:
REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'USERNAME'@'1.2.3.4';


Check permission
SELECT * from information_schema.user_privileges where grantee like "'USERNAME'%";

89
DNS / Re: Is that problem of Nameserver
« on: February 21, 2017, 09:51:11 AM »
Login your domain control panel, add two A records ns1 , ns2  point to your server's IP

90
DNS / Re: Possible DNS problem with my setup
« on: February 21, 2017, 09:48:01 AM »
Quote
So far the only port i have forwarded is 2030
This is correct, that's why you reach the CWP login page

- You need to forward port 80 in your router to reach apache
- You need to create an account and add your domain in your server(your PC) too
- Your PC's IP address will be changed everytime you reboot router (if you dont have a static IP), so you need an Dynamic DNS service (look for it on Google)
This is quite complicated , you need knowledge about router and network so I suggest you to install CWP on a VPS for less headache



Pages: 1 ... 4 5 [6] 7 8