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-03-29, 09:54:29

Author Topic: 404 Not found di KLOXO-MR  (Read 20214 times)

0 Members and 1 Guest are viewing this topic.

Offline Grafitianz

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
404 Not found di KLOXO-MR
« on: 2013-02-10, 19:45:10 »
Sebelumnya salam kenal untuk smuanya
Saya baru aja memakai kloxo-mr

Namun sedang mengalami kendala
Script yg sbelumnya blank ( pakai kloxo biasa),skarang jadi 404 di kloxo-mr dngan program untu web nya adalah Apache
ini contohnya http://cdn.automotivepartsz.info/medium/2/donat.jpg


Script ini mengenerate secara otomatis pakai curl
Jadi file donat.jpg itu tidak ada dalam server sebenarnya, dan itu di grab dari situs lain mnggunakan curl

dalam script ini terdiri dari 2 file yaitu file .htacess dan imgsmall.php

Untuk file .htaccess nya saya attach dibawah,brngkali  bisa diperiksa

Waktu dijalankan pakai cpanel ga ada masalah,ya brhubung cpanel berbayar makanya mau cba pakai yg free aja  :mrgreen:

mhon bantuannya
terima kasih
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: 404 Not found di KLOXO-MR
« Reply #1 on: 2013-02-10, 19:57:36 »
itu fresh install OS + kloxo-mr lalu restore backup
atau dari kloxo lama langsung update ke kloxo-mr
atau bagaimana ?
..................
sekedar merespon, yg dibawah berikut ini pasti bisa jawab  ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 404 Not found di KLOXO-MR
« Reply #2 on: 2013-02-10, 20:02:01 »
Baca dulu viewtopic.php?f=4&t=684

Tanpa info yang detail akan sulit dicarikan solusinya.

Sepintas melihat website anda, link http://cdn.automotivepartsz.info/images/lxcenter.png berjalan baik yang artinya sudah benar setting Kloxo-MR sudah merujuk ke path yang ada.

Terkait masalah anda, apa benar file tersebut ada di tempat semestinya.

File lxcenter.png mestinya berada di '/home/<user>/<domain.com>/images' (ganti user dan domain.com dengan yang sesuai) and semestinya file donat.jpg berada di '/home/<user>/<domain.com>/medium/2'

Tapi, coba saja jalankan 'sh /script/fixweb; service httpd restart; service php-fpm restart; service nginx restart' (tergantung pilihan apa di 'switch apps' dan 'php-branch' dan 'php-type' pada 'webserver config'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Grafitianz

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: 404 Not found di KLOXO-MR
« Reply #3 on: 2013-02-10, 20:22:36 »
Quote from: "zenkul"
itu fresh install OS + kloxo-mr lalu restore backup
atau dari kloxo lama langsung update ke kloxo-mr
atau bagaimana ?
..................
sekedar merespon, yg dibawah berikut ini pasti bisa jawab  ;)

New install mas


Quote from: "MRatWork"
Baca dulu viewtopic.php?f=4&t=684

Tanpa info yang detail akan sulit dicarikan solusinya.

Sepintas melihat website anda, link http://cdn.automotivepartsz.info/images/lxcenter.png berjalan baik yang artinya sudah benar setting Kloxo-MR sudah merujuk ke path yang ada.

Terkait masalah anda, apa benar file tersebut ada di tempat semestinya.

File lxcenter.png mestinya berada di '/home/<user>/<domain.com>/images' (ganti user dan domain.com dengan yang sesuai) and semestinya file donat.jpg berada di '/home/<user>/<domain.com>/medium/2'

Tapi, coba saja jalankan 'sh /script/fixweb; service httpd restart; service php-fpm restart; service nginx restart' (tergantung pilihan apa di 'switch apps' dan 'php-branch' dan 'php-type' pada 'webserver config'.

Maaf mas, tpi file donat.jpg memang tidak ada di server
File itu di grab dari situs lain menggunakan curl

Barusan saya cek,trnyata file .htacess nya isinya berubah dan sekarang sudah saya edit dengan menambahkan isi dari .htacess yang seharusnya ada pada script itu dibawah

Code: [Select]
###Start Kloxo PHP config Area

Isi dari .htacess nya pada bagian utama (.htacess script) nya adalh

Code: [Select]
Options +FollowSymLinks
RewriteEngine On

RewriteRule ^(.*)/(.*)/(.*).jpg /imgsmall.php?q=$3&offset=$2&size=$1

Nah masalahnya sekarang setelah saya coba buka http://cdn.automotivepartsz.info/medium/2/donat.jpg
Itu malah keridirect ke file imgsmall.php nya dalam format .txt jadi bisa kelihatan code-code php nya tidak dieksekusi dalam format php yg pd seharusnya

Krna kelihatan jadi semntara saya edit file imgsmall.php nya jadi "file php keliatan"
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: 404 Not found di KLOXO-MR
« Reply #4 on: 2013-02-10, 22:57:33 »
kalau misalnya ....donat di .httacces itu dihapus semua bagaimana, jadi tinggal :
Quote
###Start Kloxo PHP config Area
###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
<Ifmodule mod_php5.c>
....
 :roll: script text yg di sini biasanya dijamin aman
....
</Ifmodule>

###End Kloxo PHP config Area
ini yg default, dimulai dari ### start kloxo ... dan diakhiri ###end kloxo
dan kalau mau menambahkan untuk keperluan permalink dll harus di luar ###start kloxo ......###end kloxo
untuk permalink yg biasa saya gunakan :
Code: [Select]
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
...........
jadi coba cript/text pengganggu itu dihapus, .... ?  bagaimana ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

Offline Grafitianz

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: 404 Not found di KLOXO-MR
« Reply #5 on: 2013-02-10, 23:08:00 »
Quote from: "zenkul"
kalau misalnya ....donat di .httacces itu dihapus semua bagaimana, jadi tinggal :
Quote
###Start Kloxo PHP config Area
###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
### MR -- attention
### 1. Remove # in front of 'AddHandler x-httpd-php52' for activate secondary-php
### 2. Or Remove # in front of 'AddHandler x-httpd-php' for activate primary-php
###    if select suphp_worker/_event for primary-php

#AddHandler x-httpd-php52 .php
#AddHandler x-httpd-php .php

<Ifmodule mod_php5.c>
....
 :roll: script text yg di sini biasanya dijamin aman
....
</Ifmodule>

###End Kloxo PHP config Area
ini yg default, dimulai dari ### start kloxo ... dan diakhiri ###end kloxo
dan kalau mau menambahkan untuk keperluan permalink dll harus di luar ###start kloxo ......###end kloxo
untuk permalink yg biasa saya gunakan :
Code: [Select]
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
...........
jadi coba cript/text pengganggu itu dihapus, .... ?  bagaimana ?

udh sya coba pakai .htacess yg diatas dan menambahkan di luar masih ga work mas
Sebenernya untuk .htacessnya spertinya udah bner karena udh meredirect ke imgsmall.php

Tapi imgsmall.php nya ini ga tereksekusi
Jadi bisa di view semua kodenya kalau di buka lewat browser

Seharusnya kan dieksekusi karena formatnya php

Saya munculkan sebagian kode PHP nya...sebagai bukti bahwa file php nya ga tereksekusi
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: 404 Not found di KLOXO-MR
« Reply #6 on: 2013-02-10, 23:12:45 »
atau sebaiknya mas bro tunjukkan file komplit .httacces nya
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

Offline Grafitianz

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: 404 Not found di KLOXO-MR
« Reply #7 on: 2013-02-10, 23:16:46 »
Quote from: "zenkul"
atau sebaiknya mas bro tunjukkan file komplit .httacces nya

ini mas .htacess nya

Code: [Select]
Options +FollowSymLinks
RewriteEngine On

RewriteRule ^(.*)/(.*)/(.*).jpg /imgsmall.php?q=$3&offset=$2&size=$1

ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# 1 YEAR
<FilesMatch ".(ico|pdf|flv)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
# 1 WEEK
<FilesMatch ".(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
# 2 DAYS
<FilesMatch ".(xml|txt|css|js)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</FilesMatch>
# 1 HOUR
<FilesMatch ".(html|htm|php)$">
Header set Cache-Control "max-age=300, private, proxy-revalidate"
</FilesMatch>


###Start Kloxo PHP config Area
###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
### MR -- attention
### 1. Remove # in front of 'AddHandler x-httpd-php52' for activate secondary-php
### 2. Or Remove # in front of 'AddHandler x-httpd-php' for activate primary-php
### if select suphp_worker/_event for primary-php

#AddHandler x-httpd-php52 .php
#AddHandler x-httpd-php .php

<Ifmodule mod_php5.c>
php_value upload_max_filesize 7M
php_value max_execution_time 330
php_value max_input_time 360
php_value memory_limit 700M
php_value post_max_size 8M
php_flag register_globals off
php_flag display_errors off
php_flag file_uploads on
php_flag log_errors off
php_flag output_buffering off
php_flag register_argc_argv on
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag magic_quotes_sybase off
php_flag mysql.allow_persistent off
php_flag register_long_arrays on
php_flag allow_url_fopen on
php_flag cgi.force_redirect on
php_flag enable_dl on
</Ifmodule>

###End Kloxo PHP config Area

Kayany udh bner
Cuma masalahnya file imgsmall.php nya yang ga tereksekusi
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 404 Not found di KLOXO-MR
« Reply #8 on: 2013-02-10, 23:19:24 »
Kalau file php-nya jangan pakai '<?' tapi lengkap '<?php' apa hasilnya sama?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Grafitianz

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: 404 Not found di KLOXO-MR
« Reply #9 on: 2013-02-10, 23:28:45 »
Quote from: "MRatWork"
Kalau file php-nya jangan pakai '<?' tapi lengkap '<?php' apa hasilnya sama?

ttp ga bisa mas...

barusan saya coba
sekarang saya test ganti isi nya jadi

Code: [Select]
<?php
phpinfo
( );
?>

 

trnyata ga jalan juga
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: 404 Not found di KLOXO-MR
« Reply #10 on: 2013-02-10, 23:33:36 »
wah, mainan tingkat mahir nich  :roll:
kalau phpinfo.php nggak jalan itu bagaimana,
apakah webserver macet  ?  php macet ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: 404 Not found di KLOXO-MR
« Reply #11 on: 2013-02-10, 23:37:35 »
paling2 php yang tidak beres (kalau pakai php-fpm ya servicenya tidak running). jalankan saja 'sh /script/fixphp; service php-fpm restart'
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Grafitianz

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: 404 Not found di KLOXO-MR
« Reply #12 on: 2013-02-11, 10:21:22 »
Quote from: "zenkul"
wah, mainan tingkat mahir nich  :roll:
kalau phpinfo.php nggak jalan itu bagaimana,
apakah webserver macet  ?  php macet ?
Saya masih newbie kok mas   ;)
Iya spertinya macet


Quote from: "MRatWork"
paling2 php yang tidak beres (kalau pakai php-fpm ya servicenya tidak running). jalankan saja 'sh /script/fixphp; service php-fpm restart'

brusan sya coba..trus muncul sperti ini
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: 404 Not found di KLOXO-MR
« Reply #13 on: 2013-02-11, 10:32:55 »
iya tuh benar kata pak mr, php-fpm macet
di klik lagi php-fpm event,  kalau nggak konek: apa error-nya,  pindah-pindah dulu lalu kembalikan lagi. dan saya sarankan jangan klik php54. lihat warna service apa sudah biru (iptabale jangan diperhatikan). dan untuk meyakinkan php-fpm & webserver restart lagi dg perintah ssh
« Last Edit: 1970-01-01, 01:00:00 by Guest »
easy, secure and speed up web panel ===> Kloxo-MR

Offline Grafitianz

  • Junior Member
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: 404 Not found di KLOXO-MR
« Reply #14 on: 2013-02-11, 10:35:59 »
Quote from: "zenkul"
iya tuh benar kata pak mr, php-fpm macet
di klik lagi php-fpm event,  kalau nggak konek: apa error-nya,  pindah-pindah dulu lalu kembalikan lagi. dan saya sarankan jangan klik php54. lihat warna service apa sudah biru (iptabale jangan diperhatikan). dan untuk meyakinkan php-fpm & webserver restart lagi dg perintah ssh

gambar services


Klik php-fpm event nya letaknya dimana mas?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.034 seconds with 21 queries.

web stats analysis