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 - quachat

Pages: [1]
1
CentOS 6 Problems / Re: Error 503 Service Unavailable
« on: April 07, 2015, 08:23:08 AM »
I get message error when i login to CWP.admin by root

Warning: shell_exec(): Unable to execute 'cat /proc/loadavg' in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 1

Notice: Undefined offset: 1 in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 16

Notice: Undefined offset: 2 in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php(1) : eval()'d code(1) : eval()'d code on line 16


Please help me to fix this error. Thanks a lot


2
CentOS 6 Problems / Error 503 Service Unavailable
« on: April 07, 2015, 04:46:35 AM »
Hi,

Today, i get message error on my website :

Error 503 Service Unavailable

Service Unavailable

Guru Meditation:

XID: 1440927847

Varnish cache server

And i see some errors on CWP (root) : http://gyazo.com/7b10a7a352538cd5c1ffa5c3f517ef16

Please help me to fix this issue .

Thanks



3
Many thanks. It's work now.

4
Apache / How to change file location to /home/USERNAME/public_html/
« on: April 06, 2015, 12:51:05 PM »
Hi,

I search on this forum and google , but it's not help me to fix this issue. Please help me.

How to change file location of website to : /home/USERNAME/public_html/

my website is only show index.html in location : /usr/local/apache/htdocs/ with index.html file

Contents of File: /usr/local/apache/conf.d/vhosts.conf
# vhost_start mywebsite.com
<VirtualHost 128.199.xxx.xxx:82>
ServerName mywebsite.com
ServerAlias www.mywebsite.com
ServerAdmin maxiinvest@gmail.com
DocumentRoot "/home/USERNAME/public_html"
ScriptAlias /cgi-bin/ "/home/USERNAME/public_html/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/USERNAME/mywebsite.com/*.conf

<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 mywebsite.com

5
Apache / Re: website didn't get correct location
« on: April 06, 2015, 11:38:47 AM »
Anyone can help me, please.

6
Apache / website didn't get correct location
« on: April 06, 2015, 08:02:23 AM »
Hi,

I follow guide to setup CWP , Varnish, create user account, set Fix permission..... restart Apache many times.

I upload my website by FTP account to public_html , but i still get http test page.

so, i rename index.html file to index_1.html, and i get the content below on my website:

Index of /

index_1.html
phpMyAdmin/
roundcube/
webftp_simple/

Website is not get correct location in public_html , BUT, now i can get any images on link  :

www.mydomain.com:82/images/picture.jpg ==> it's show the picture
www.mydomain.com/images/picture.jpg ==> it's show message "Not Found . The requested URL /images/picture.jpg was not found on this server.


I check Apache, Varnish : it still works

This is the information in Edit Apache vHosts :

# vhost_start mydomain.com
<VirtualHost 123.123.123.123:82>
ServerName mydomain.com
ServerAlias www.mydomain.com
ServerAdmin myemail@gmail.com
DocumentRoot "/home/cwpvps/public_html"
ScriptAlias /cgi-bin/ "/home/cwpvps/public_html/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/cwpvps/mydomain.com/*.conf

<IfModule mod_suexec.c>
        SuexecUserGroup cwpvps cwpvps
</IfModule>

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

<Directory "/home/cwpvps/public_html">
        AllowOverride All
</Directory>

</VirtualHost>
# vhost_end mydomain.com


Please help me to fix this issue.

Many thanks

Pages: [1]