Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 03:56:50

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

Pages: 1 ... 8 9 [10] 11 12
136
Indonesia Users / Re: httpd tidak mau jalan
« on: 2017-03-19, 15:32:56 »
pak, ini httpd saya tidak mau jalan lagi. Status saya pakai nginxproxy. Sudah lakukan

sh /script/cleanup; sh /script/fixweb; sh /script/restart-web

hasilnya

Code: [Select]
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 131 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf.d/fastcgi.conf: Cannot load modules/mod_fastcgi.so into server: /etc/httpd/modules/mod_fastcgi.so: cannot open shared object file: No such file or directory
                                                           [FAILED]

kemudian juga saya reboot. Tapi masih ga mau, apa ada solusi pak?

137
RAM saya 2 GB pak.

138
saya tidak ada enable feature tersebut pak MR. Saya coba enable dan disable masih tetap tidak bisa juga. Ada solusi lain pak MR? meski script php saya hapus semua, bukannya blank, masih tetap error. Sepertinya file lama masuk cache dalam server.

139
sudah bisa pak MR, ternyata kendalanya hanya karena phpnya cache dalam server. Padahal sudah update php tapi server masih nangkap yang file lama. Ini kira-kira kenapa ya?

140
sudah saya lihat pak MR.

Berikut ini listnya

Code: [Select]
- admin curl http://1ori.com/cronbobby1993.php localhost simple --all-- --all-- --all-- --all-- --all--

141
maksudnya username bagaimana pak MR? mohon maaf pak saya kurang konek. ;D

142
bisa pak MR, saya sudah coba di browser dan ssh bisa jalan. Untuk di ssh saya menggunakan command yang sama sesuai dengan yang di cron job. Tapi kalau di cron job tidak mau jalan.

143
Ini pak MR

Code: [Select]
<?php 
header
("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
date_default_timezone_set('Asia/Jakarta');
$waktuserver date('Y-m-d H:i:s');
$file "cookie.txt";
require_once(
'config.php');
require_once(
'simple_html_dom.php');
$sql "SELECT * FROM databasegame ORDER BY cron ASC LIMIT 0,1";
$process $conn->query($sql) or die("Error: ".mysqli_error($conn));
if(
mysqli_num_rows($process) > 0){
while($row=$process->fetch_assoc()){
$id $row['id'];
}
}
$hargaoriginal 0;
$hargadiscount 0;
$dctime "";
$waktu "";
$sql "SELECT * FROM databasegame WHERE id='$id' and appid!='' and jasa='1' and platform='steam' ORDER BY cron ASC LIMIT 0,1";
$process $conn->query($sql) or die("Error: ".mysqli_error($conn));
if(
mysqli_num_rows($process) > 0){
while($row=mysqli_fetch_assoc($process)){
$nama $row['nama'];
$platform $row['platform'];
$id $row['id'];
$appid $row['appid'];
}
$nama explode(" ",$nama);
$nama implode("+",$nama);
$url "http://store.steampowered.com/search/?snr=1_7_7_151_12&term=$nama&cc=id";
$ch curl_init();
$fp fopen(dirname(__FILE__).'/errorlog.txt''w');
curl_setopt($chCURLOPT_VERBOSE1);
curl_setopt($chCURLOPT_STDERR$fp);
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1');
curl_setopt($ch,CURLOPT_MAXREDIRS,10);
curl_setopt($ch,CURLOPT_AUTOREFERER,true);
curl_setopt($ch,CURLOPT_COOKIE,true);
curl_setopt($ch,CURLOPT_COOKIESESSION,true);
curl_setopt($ch,CURLOPT_COOKIEJAR,$file);
curl_setopt($ch,CURLOPT_COOKIEFILE,$file);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$data curl_exec($ch);

$html = new simple_html_dom();
$html->load($data,true,false);

foreach(
$html->find('a[data-ds-appid="'.$appid.'"] div[class="responsive_search_name_combined"] div[class="col search_price_discount_combined responsive_secondrow"] div[class="col search_price  responsive_secondrow"]') as $block){
$hargaoriginal $block->plaintext;
}

foreach(
$html->find('a[data-ds-appid="'.$appid.'"] div[class="responsive_search_name_combined"] div[class="col search_price_discount_combined responsive_secondrow"] div[class="col search_price discounted responsive_secondrow"]') as $block){
$harga $block->plaintext;
$harga explode('Rp ',$harga);
$hargaoriginal $harga[1];
$hargadiscount $harga[2];
}

//fungsi convert harga
$arrayconvert explode(' ',$hargaoriginal);
$hargaoriginal implode('',$arrayconvert);
$arrayconvert explode('Rp',$hargaoriginal);
$hargaoriginal implode('',$arrayconvert);
$arrayconvert explode(' ',$hargadiscount);
$hargadiscount implode('',$arrayconvert);
$arrayconvert explode('Rp',$hargadiscount);
$hargadiscount implode('',$arrayconvert);

$hargaoriginal intval($hargaoriginal);
$hargadiscount intval($hargadiscount);
//fungsi fix data
if($hargaoriginal==NULL){
$hargaoriginal 0;
}
if(
$hargadiscount==NULL){
$hargadiscount 0;
}
if(
$dctime==NULL){
$dctime '';
}
if(
$waktu==NULL){
$waktu '';
}

$sql "SELECT * FROM hargagame WHERE idgame='$id' and jenis='jasa' and platform='$platform'";
$process $conn->query($sql) or die("Error :".mysqli_error($conn));
if(
mysqli_num_rows($process) > 0){
while($row=$process->fetch_assoc()){
$sql_sub "UPDATE hargagame SET hrgoriginal='$hargaoriginal', hrgdiscount='$hargadiscount', dctime='$dctime' WHERE idgame='$id' and jenis='jasa' and platform='$platform'";
$process_sub $conn->query($sql_sub) or die("Error1 :".mysqli_error($conn));
}
}
if(
mysqli_num_rows($process) == 0){
$sql_sub "INSERT INTO hargagame (idgame,jenis,platform,hrgoriginal,hrgdiscount,dctime) VALUES ('$id','jasa','$platform','$hargaoriginal','$hargadiscount','$dctime')";
$process_sub $conn->query($sql_sub) or die("Error2 :".mysqli_error($conn));
}

curl_close($ch);
}
require_once(
'cdkeys.php');
require_once(
'hrkgame.php');

$sql "UPDATE databasegame SET hrgoriginal = '$hargaoriginal', hrgdiscount = '$hargadiscount', dctime = '$dctime', cron= '$waktuserver' WHERE id='$id'";
$process $conn->query($sql) or die("Error: ".mysqli_error($conn));
echo 
'sukses';
?>

144
Ini pak MR

Code: [Select]
[root@server ~]# cat /etc/httpd/conf.d/~lxcenter.conf

Timeout 150
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
    StartServers 2
    MinSpareServers 69901
    MaxSpareServers 139802
    ServerLimit 139802
    <IfVersion >= 2.4>
        MaxRequestWorkers 139802
        MaxConnectionsPerChild 4000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 139802
        MaxRequestsPerChild 4000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule itk.c>
    StartServers 2
    MinSpareServers 69901
    MaxSpareServers 139802
    ServerLimit 139802
    <IfVersion >= 2.4>
        MaxRequestWorkers 139802
        MaxConnectionsPerChild 4000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 139802
        MaxRequestsPerChild 4000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule worker.c>
    StartServers 2
    MinSpareThreads 59915
    MaxSpareThreads 119830
    ThreadsPerChild 25
    ServerLimit 119830
    <IfVersion >= 2.4>
        MaxRequestWorkers 2995750
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 2995750
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule event.c>
    StartServers 2
    MinSpareThreads 59915
    MaxSpareThreads 119830
    ThreadsPerChild 25
    ServerLimit 119830
    MaxRequestsPerChild 0
    <IfVersion >= 2.4>
        MaxRequestWorkers 2995750
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 2995750
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Include /opt/configs/apache/conf/defaults/*.conf
Include /opt/configs/apache/conf/domains/*.conf

### selected: high ###

[root@server ~]#

145
kalau pakai nginx bisa pak MR. tapi karena saya mau pakai .htaccess, jadi pakai nginxproxy. Sayangnya malah cron yang tidak bisa bekerja.

146
sudah pak MR, saat ini sudah bisa jalan situsnya tapi saat coba restart httpd malah muncul error seperti ini

Code: [Select]
[root@server ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: AH00497: WARNING: ServerLimit of 119830 exceeds compile-time limit of 20000 servers, decreasing to 20000.
AH00515: WARNING: MaxRequestWorkers of 2995750 would require 119830 servers and would exceed ServerLimit of 20000, decreasing to 500000. To increase, please see the ServerLimit directive.
                                                           [  OK  ]

147
ini pak

curl http://1ori.com/cronbobby1993.php   localhost   simple   --all--   --all--   --all--   --all--   --all--

148
Siang, saya mau menanyakan situs saya yang sering kena Error 500. Berikut sh /script/sysinfo

Code: [Select]
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017031601
   - Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
   - PHP: php56s-5.6.30-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: server.1ori.com
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.centos6.x86_64
        - Multiple:
          * php52m-5.2.17-102.mr.el6
          * php53m-5.3.29-1.ius.centos6
          * php54m-5.4.45-1.ius.centos6
          * php55m-5.5.38-1.ius.centos6
          * php56m-5.6.30-1.ius.centos6
          * php70m-7.0.16-1.ius.centos6
          * php71m-7.1.2-1.ius.centos6
      - Used: php54m-fpm
      - Multiple: disable
   3. Web Used: nginxproxy
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.11.10-1.el6.ngx.x86_64
     - Apache: httpd24u-2.4.25-3.ius.centos6.x86_64
       - PHP Type: suphp_event
       - Secondary PHP: on
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: awstats
D. Memory:
             total       used       free     shared    buffers     cached
Mem:       8388607       3913    8384694        379          0       2823
-/+ buffers/cache:       1089    8387518
Swap:            0          0          0
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs       20G  3.3G   17G  17% /


*** Process Time: 00:00:00:15.15141 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Kira-kira kenapa ya? udah coba

sh /script/fixweb
sh /script/restart-web -y

tapi hasilnya malah gini.

Code: [Select]
Stopping php54m-fpm (PHP Used):                            [  OK  ]
Starting php54m-fpm (PHP Used):                            [  OK  ]
-------------------------------------------------------------------

Stopping php52m-fpm (Multiple Php):                        [  OK  ]
Starting php52m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping php53m-fpm (Multiple Php):                        [  OK  ]
Starting php53m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping php54m-fpm (Multiple Php):                        [  OK  ]
Starting php54m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping php55m-fpm (Multiple Php):                        [  OK  ]
Starting php55m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping php56m-fpm (Multiple Php):                        [  OK  ]
Starting php56m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping php70m-fpm (Multiple Php):                        [  OK  ]
Starting php70m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping php71m-fpm (Multiple Php):                        [  OK  ]
Starting php71m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [  OK  ]
Starting httpd: AH00497: WARNING: ServerLimit of 119830 exceeds compile-time limit of 20000 servers, decreasing to 20000.
AH00515: WARNING: MaxRequestWorkers of 2995750 would require 119830 servers and would exceed ServerLimit of 20000, decreasing to 500000. To increase, please see the ServerLimit directive.
                                                           [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'

Mohon bantuannya para sesepuh. Thank you.

149
Indonesia Users / Cron Job malah Error Saat Pakai Nginxproxy
« on: 2017-03-18, 05:01:10 »
Selamat pagi, saya ada kendala dengan cron job yang malah error. Padahal saat sebelumnye menggunakan nginx tidak pernah ada masalah. Berikut ini cron job yang ingin dijalankan.

http://1ori.com/cronbobby1993.php

Mengalami error seperti ini

Code: [Select]
Error 500 - Internal Server Error

A generic error message, given when no more specific message is suitable

Mohon bantuannya para sesepuh. Thanks

---------- UPDATE -----------

Cron file sudah bisa jalan, Error 500 karena cron file diakses dalam jedah yang singkat. Masalah barunya, settingan cron job tidak mau jalan dengan command berikut.

curl http://1ori.com/cronbobby1993

Coba tes di ssh jalan.

Code: [Select]
[root@server ~]# curl http://1ori.com/cronbobby1993
sukses[root@server ~]#

Mohon bantuannya. Thanks

150
Indonesia Users / Re: httpd tidak mau jalan
« on: 2017-03-18, 03:43:47 »
Sudah bisa pak MR  ;)

Pages: 1 ... 8 9 [10] 11 12

MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.042 seconds with 17 queries.

web stats analysis