MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: ItzJustinN on 2015-04-03, 18:21:14

Title: cannot do new install
Post by: ItzJustinN on 2015-04-03, 18:21:14
[root@sunderfall tmp]# yum update mratwork-* -y

Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
mratwork-epel/metalink                                                                    |  13 kB     00:00
 * base: centos.chi.host-engine.com
 * extras: ftpmirror.your.org
 * mratwork-epel: mirror.steadfast.net
 * mratwork-ius-stable: dl.iuscommunity.org
 * updates: cosmos.cites.illinois.edu
http://dl.atrpms.net/el5-i386/atrpms/stable/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mratwork-atrpms. Please verify its path and try again
Title: Re: cannot do new install
Post by: MRatWork on 2015-04-03, 18:42:05
Try 'yum clean all' until 3-4 times. If still work, possible this repo down and try next one hour.

If possible, try CentOS 6 instead 5.
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-03, 19:30:41
i also think its an issue with the REPO

semss i can install 6.6 now, before using 5.11 because of processor limitations
will try to upgrade OS.
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-03, 20:11:28
i guess the repo is down

same error on 6.6



[root@sunderfall /]# yum update mratwork-* -y
Loaded plugins: fastestmirror, priorities, security
Setting up Update Process
Determining fastest mirrors
mratwork-epel/metalink                                                                               |  13 kB     00:00
 * base: mirror.raystedman.net
 * extras: centos.mirror.lstn.net
 * mratwork-epel: mirror.dmacc.net
 * mratwork-ius-stable: dl.iuscommunity.org
 * updates: centos.mirrors.tds.net
base                                                                                                 | 3.7 kB     00:00
base/primary_db                                                                                      | 3.6 MB     00:01
extras                                                                                               | 3.4 kB     00:00
extras/primary_db                                                                                    |  29 kB     00:00
http://dl.atrpms.net/el6-i386/atrpms/stable/repodata/repomd.xml: [Errno 12] Timeout on http://dl.atrpms.net/el6-i386/atrpms/stable/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mratwork-atrpms. Please verify its path and try again
Title: Re: cannot do new install
Post by: MRatWork on 2015-04-03, 20:22:53
Or something with your server network because a couple minutes ago I didn't found any issue for update and new install.

Inform here your 'cat /etc/resolv.conf'.
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-03, 20:24:00
can you tell me the importance of this repo or what it is for?
have commented it out, and seems to be working fine for now..
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-03, 20:25:30
[root@sunderfall ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
Title: Re: cannot do new install
Post by: MRatWork on 2015-04-03, 20:26:37
Try set 'enable=0' for '[mratwork-atrpms]' inside after 'cd /; yum update mratwork*'.
Title: Re: cannot do new install
Post by: MRatWork on 2015-04-03, 20:28:46
Add:
Code: [Select]
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 208.67.222.222
nameserver 208.67.220.200
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-03, 21:11:39
yes i immediately updated name servers after seeing only the one entry.

i also set the rpm you mentioned to enabled=0


kloxo installed fine and working now.

only issue is that even with command yum install kloxo 7,, i get kloxo 6.5
its okay for me though, since i have backup of old panel and everything working now.

even lxguard working again on my server with 6.5


thanks for your help and ty again for a good control panel with free license.
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-04, 07:59:37
i upgraded the control panel back to 7
and when trying to start apache i get this error:

Starting httpd: Syntax error on line 117 of /opt/configs/apache/conf/defaults/init.conf:
<VirtualHost> directive missing closing '>'



but i am not able to find any error






### begin - web of initial - do not remove/modify this line


Define global::port 80
Define global::portssl 443
Define global::ip *

Define port ${global::port}
Define portssl ${global::portssl}
Define ip ${global::ip}

Listen ${ip}:${port}
Listen ${ip}:${portssl}

<IfVersion < 2.4>
   NameVirtualHost ${ip}:${port}
   NameVirtualHost ${ip}:${portssl}
</IfVersion>

<Ifmodule mod_userdir.c>
   UserDir enabled
   UserDir /home/*/public_html
   <Location "/~admin">
      <IfModule mod_suphp.c>
         SuPhp_UserGroup admin admin
      </IfModule>
   </Location>
   <Location "/~sunderfall">
      <IfModule mod_suphp.c>
         SuPhp_UserGroup sunderfall sunderfall
      </IfModule>
   </Location>
   <Location "/~nhoobish">
      <IfModule mod_suphp.c>
         SuPhp_UserGroup nhoobish nhoobish
      </IfModule>
   </Location>
</Ifmodule>


### 'default' config
<VirtualHost ${ip}:${port}>

   SetEnvIf X-Forwarded-Proto https HTTPS=1

   ServerName default

   ServerAlias default.*

   DocumentRoot "/home/kloxo/httpd/default"

   DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp

   <IfModule suexec.c>
      SuexecUserGroup apache apache
   </IfModule>

   <IfModule mod_suphp.c>
      SuPhp_UserGroup apache apache
   </IfModule>

   <IfModule mod_ruid2.c>
      RMode config
      RUidGid apache apache
      RMinUidGid apache apache
   </IfModule>

   <IfModule itk.c>
      AssignUserId apache apache
   </IfModule>

   <IfModule mod_fastcgi.c>
      Alias /default.0fake "/home/kloxo/httpd/default/default.0fake"
      #FastCGIExternalServer "/home/kloxo/httpd/default/default.0fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
      FastCGIExternalServer "/home/kloxo/httpd/default/default.0fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
      AddType application/x-httpd-fastphp .php
      Action application/x-httpd-fastphp /default.0fake
      <Files "default.0fake">
      RewriteCond %{REQUEST_URI} !default.0fake
      </Files>
   </IfModule>

   <IfModule mod_fcgid.c>
      <Directory "/home/kloxo/httpd/default/">
      Options +ExecCGI
      AddHandler fcgid-script .php
      FCGIWrapper /home/kloxo/client/php5.fcgi .php
      </Directory>
   </IfModule>

   <IfModule mod_proxy_fcgi.c>
      ProxyPass / fcgi://127.0.0.1:50000/
      ProxyPassReverse / fcgi://127.0.0.1:50000/
   </IfModule>

   <Location "/">
      Allow from all
      # Options +Indexes +FollowSymlinks
      Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
   </Location>

   <Directory "/home/kloxo/httpd/default/">
      AllowOverride All
      <IfVersion < 2.4>
         Order allow,deny
         Allow from all
      </IfVersion>
      <IfVersion >= 2.4>
         Require all granted
      </IfVersion>
   </Directory>

</VirtualHost>


### 'default' config
<VirtualHost ${ip}:${portssl}>

   SetEnvIf X-Forwarded-Proto https HTTPS=1

   ServerName default

   ServerAlias default.*

   DocumentRoot "/home/kloxo/httpd/default"

   DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp

   <IfModule mod_ssl.c>
      SSLEngine On
      SSLProtocol ALL -SSLv2 -SSLv3
      SSLHonorCipherOrder On
      SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
      SSLCertificateFile /home/kloxo/httpd/ssl/eth0___localhost.pem
      SSLCertificateKeyFile /home/kloxo/httpd/ssl/eth0___localhost.key
      SSLCACertificatefile /home/kloxo/httpd/ssl/eth0___localhost.ca
   </IfModule>

   <IfModule suexec.c>
      SuexecUserGroup apache apache
   </IfModule>

   <IfModule mod_suphp.c>
      SuPhp_UserGroup apache apache
   </IfModule>

   <IfModule mod_ruid2.c>
      RMode config
      RUidGid apache apache
      RMinUidGid apache apache
   </IfModule>

   <IfModule itk.c>
      AssignUserId apache apache
   </IfModule>

   <IfModule mod_fastcgi.c>
      Alias /default.1fake "/home/kloxo/httpd/default/default.1fake"
      #FastCGIExternalServer "/home/kloxo/httpd/default/default.1fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
      FastCGIExternalServer "/home/kloxo/httpd/default/default.1fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
      AddType application/x-httpd-fastphp .php
      Action application/x-httpd-fastphp /default.1fake
      <Files "default.1fake">
      RewriteCond %{REQUEST_URI} !default.1fake
      </Files>
   </IfModule>

   <IfModule mod_fcgid.c>
      <Directory "/home/kloxo/httpd/default/">
      Options +ExecCGI
      AddHandler fcgid-script .php
      FCGIWrapper /home/kloxo/client/php5.fcgi .php
      </Directory>
   </IfModule>

   <IfModule mod_proxy_fcgi.c>
      ProxyPass / fcgi://127.0.0.1:50000/
      ProxyPassReverse / fcgi://127.0.0.1:50000/
   </IfModule>

   <Location "/">
      Allow from all
      # Options +Indexes +FollowSymlinks
      Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
   </Location>

   <Directory "/home/kloxo/httpd/default/">
      AllowOverride All
      <IfVersion < 2.4>
         Order allow,deny
         Allow from all
      </IfVersion>
      <IfVersion >= 2.4>
         Require all granted
      </IfVersion>
   </Directory>

</VirtualHost>


### end - web of initial - do not remove/modify this line
Title: Re: cannot do new install
Post by: MRatWork on 2015-04-04, 08:22:30
Did you run again 'sh /script/upcp -y'.
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-04, 08:35:32
yes
Title: Re: cannot do new install
Post by: MRatWork on 2015-04-04, 08:49:29
1. update with 'yum clean all; yum update -y'
2. go to 'admin > servers > localhost > php configure >update > advanced php configure > update'
3. The same step for 'admin > php configure >update > advanced php configure > update' and  'admin > clients > (select client one-by-one) > php configure >update > advanced php configure > update'
4. go to 'admin > switch programs' and then select 'none' for all and click update. After that, select that what you want (recommend: nginx-proxy/hiawatha-proxy, none, nsd, bogofilter)
5. go to 'admin > webserver configure > php type' and select 'suphp' and 'update. After that, select what you want (recommend: php-fpm_event).

To make sure, execute 'sh /script/fix-all; sh /script/restart-all -y'. If error appear in restart-process, try reboot.
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-04, 18:26:35
hi, ys, everything is working now
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-05, 00:54:50
hi again, when i updated with the commands,  my lxguard again stop working. 
i have fail2ban working and i will keep it because it can watch other logs too.
but i think there still some bug with kloxo 7.0 and my server.
Title: Re: cannot do new install
Post by: MRatWork on 2015-04-05, 03:39:32
No, it's work in my servers after update (prevent ssh dan ftp). Try running 'sh /script/fixlxguard 36000' (number in second).
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-07, 16:12:11
hi, sorry for no response.

'sh /script/fixlxguard 36000   works!

what is the value 36000?

Title: Re: cannot do new install
Post by: MRatWork on 2015-04-07, 16:18:44
In latest version, just enough 'sh /script/fixlxguard' and then go to 'admin > lxguard > connections'.

Value of 36000 is time is second (equal to 10 hours).
Title: Re: cannot do new install
Post by: ItzJustinN on 2015-04-07, 23:36:36
lxguard keep stopping,
sh /script/fixlxguard 36000  update lxguard,
but not logging in real time  :-\
Title: Re: cannot do new install
Post by: MRatWork on 2015-04-08, 06:18:21
There something wrong related to rsyslog. Maybe related to logrotate.