Blady Posted December 17, 2012 Report Share Posted December 17, 2012 Uzlika man viens gudrinieks saitu, bet sākās brīnumi, cilvēks ierakstot pilno adresi, vietni redz, gribēju to nosubmitot meklēšanas dzinējā skripts atgriež 500 erorru, viens programmētājs teica, ka tas varētu bbūt tādēļ ka php ir cgi režīmā šobrīd, un pareizi būtu jāizveido.htaccess failu. Izdzēsu rindiņas kuras sākās ar php_flag problēma palika. A ko tālāk darīt nezinu. Neesmu programmētājs, tāpēc arī problēmas apraksts tāds, kāds tas ir. Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted December 17, 2012 Report Share Posted December 17, 2012 Labāk liec šo pie darba piedāvājumiem jo nez vai kāds šeit tagad uzminēs kur varētu būt problēma bez pieejas kastei. Quote Link to comment Share on other sites More sharing options...
Blady Posted December 17, 2012 Author Report Share Posted December 17, 2012 varbūt vienkāršāk pašu .htaccess iekopēt? Quote Link to comment Share on other sites More sharing options...
Blady Posted December 17, 2012 Author Report Share Posted December 17, 2012 te arī pats htaccess Options -IndexesAddDefaultCharset utf-8php_flag magic_quotes_gpc offphp_flag allow_call_time_pass_reference onphp_flag short_open_tag onRewriteEngine On#Options +FollowSymLinksRewriteBase /RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]RewriteRule ^(.*) http://%1/$1 [L,R=301]#<SOCIAL_SHOPPING PLUGIN>RewriteRule ^([a-z0-9]+)/action([0-9]*).html$ /index.php?show=action&action_id=$2&hash=$1#</SOCIAL_SHOPPING PLUGIN>RewriteRule ^api/(.*) extension/api/frapi/public/index.php$1RewriteRule ^check|result(.*)$ extension/public_api/connect.php$1RewriteRule ^coupons/(.*)-(.*)$ extension/public_api/connect.php?code=$1&pin=$2RewriteRule ^([0-9]+)\.html$ index.php?show=referal&id=$1RewriteRule ^activate/([a-zA-Z0-9]+)$ /index.php?act=activate&md=$1RewriteRule ^my/$ /index.php?show=my&subshow=startpageRewriteRule ^my/err$ /index.php?show=my&err=1RewriteRule ^my/activatemail/$ /index.php?show=my&subshow=activatemailRewriteRule ^my/users/(.*)/$ /index.php?show=my&subshow=users&username=$1RewriteRule ^my/activate/success/$ /info.php?act=activate&type=1RewriteRule ^my/activate/fail/$ /info.php?act=activate&type=2RewriteRule ^my/wishlist$ /index.php?show=my&subshow=wishlistRewriteRule ^my/inviter$ /index.php?show=my&subshow=inviterRewriteRule ^my/partnership$ /index.php?show=my&subshow=partnershipRewriteRule ^my/affiliate$ /index.php?show=my&subshow=affiliateRewriteRule ^my/invitefriends.html$ /index.php?show=my&subshow=inviteRewriteRule ^users/(.*)/$ /index.php?show=user&username=$1RewriteRule ^my/invite/$ /index.php?show=my&subshow=inviteRewriteRule ^i([0-9]+)/$ /index.php?act=invite&fromuser=$1RewriteRule ^refuse/([a-zA-Z0-9]+)/$ /index.php?show=refuse&refuseid=$1RewriteRule ^my/edit-info/$ /index.php?show=my&subshow=edit-infoRewriteRule ^my/change-password/$ /index.php?show=my&subshow=change-passwordRewriteRule ^my/confirm-mobile/$ /index.php?show=my&subshow=confirm-mobileRewriteRule ^my/edit-notifications/$ /index.php?show=my&subshow=edit-notificationsRewriteRule ^my/coupons$ /index.php?show=my&subshow=coupons&month=$1&page=$2RewriteRule ^my/changepassword/$ /index.php?show=my&subshow=changepasswordRewriteRule ^my/balance/$ /index.php?show=my&subshow=balanceRewriteRule ^payment/success.html$ /index.php?show=my&subshow=paysuccessRewriteRule ^payment/fail.html$ /index.php?show=my&subshow=payfailRewriteRule ^my/balance/pay/$ /index.php?show=my&subshow=balance&getpay=payactRewriteRule ^my/buycoupons.html$ /index.php?show=my&subshow=buycouponsRewriteRule ^my/buycouponssuccess.html$ /index.php?show=my&subshow=buycouponssuccessRewriteRule ^regist/$ /index.php?show=registRewriteRule ^registok/$ /index.php?show=regist&page=okRewriteRule ^contacts/$ /index.php?show=contactsRewriteRule ^contract/$ /index.php?show=contractRewriteRule ^login/$ /index.php?act=loginRewriteRule ^signin/$ /index.php?show=signin#RewriteRule ^signin/([a-z]+)/$ /index.php?show=signin&provider=$1RewriteRule ^logout/$ /index.php?act=logoutRewriteRule ^regcomplete.html$ /index.php?show=regcompleteRewriteRule ^activation-fail.html$ /index.php?show=activationfailRewriteRule ^activation-is-completed.html$ /index.php?show=activationcompleteRewriteRule ^action([0-9]*).html$ /index.php?show=action&action_id=$1RewriteRule ^searchbycity/([0-9]*).html$ /index.php?show=searchbycity&city_id=$1RewriteRule ^inc/js/my_translate.js$ /inc/js/my_translate.phpRewriteRule ^([a-z]+)/([0-9]+)/actions.html$ /index.php?show=allactions&time=$1&category=$2RewriteRule ^article/([\w\.]+)/*$ /index.php?show=article&alias=$1RewriteRule ^map/*$ /index.php?show=article&alias=mapRewriteRule .*\.svn|\.hg /error404RewriteRule ^error([0-9]+)[/]?$ /inc/errors/$1.htmlRewriteRule ^merchant[/]? /extension/merchant/index_one.phpRewriteRule ^webmaster[/]? /extension/affiliate/webmaster/index.phpRewriteRule ^landing/([0-9a-z]+)/$ /index.php?show=landingpage&landing_url=$1RewriteRule ^landingpage/$ /index.php?show=landingpageRewriteRule ^actions_list.xml$ kuponator_list.xmlRewriteRule ^(.*)_list.xml$ cron/$1_list.phpRewriteRule ^favicon.ico upload/logo/favicon.png tas kas tur boldā tas tika likvidēts. Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted December 17, 2012 Report Share Posted December 17, 2012 Tu pats lapu redzi? Kas tas par "mekleeshanas dzineeja skriptu"? Quote Link to comment Share on other sites More sharing options...
Blady Posted December 17, 2012 Author Report Share Posted December 17, 2012 Pats lapu redzu, ievadot url jebkādā veidā ar vai bez www, bet roboti neredz, piemēram yandex.ru vai arī http://www.webpagetest.org šis arī saka ka ir 500 erorrs. Atsevišķos reģionos ierakstot www.mans-saits.com cilvēks resursu redz, bet ierakstot brauzerī vienkārši mans-saits.com resursu neredz. Quote Link to comment Share on other sites More sharing options...
Blady Posted December 17, 2012 Author Report Share Posted December 17, 2012 varbūt problēma ir pāradresācijā, vienu vārdu sakot kaut kā dīvaini uzvedās tas skripts. Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted December 17, 2012 Report Share Posted December 17, 2012 Pieeja error_log'am (error.log) ir? Quote Link to comment Share on other sites More sharing options...
Blady Posted December 17, 2012 Author Report Share Posted December 17, 2012 nebija ieslēgts, tagad ieslēdzu, izdzīšu testu. Quote Link to comment Share on other sites More sharing options...
Blady Posted December 17, 2012 Author Report Share Posted December 17, 2012 izdzinu testu, erorr loga fails neizveidojās, access log fails gan, kurš izskatījas šādi vietnes nosaukumu tikai te ar mmmm nocenzorēju un IP: www.mmmmmmmm.ru 99.253. - - [17/Dec/2012:13:33:54 +0400] "GET / HTTP/1.0" 301 232 "-" "Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Firefox/17.0 PTST/87"mmmmmmmm.ru 99.253. - - [17/Dec/2012:13:33:54 +0400] "GET / HTTP/1.0" 500 86460 "-" "Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Firefox/17.0 PTST/87"mmmmm.ru 99.253. - - [17/Dec/2012:13:33:55 +0400] "GET /inc/js/my_translate.js HTTP/1.0" 200 2168 "http://mmmmmmmmm.ru/" "Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Firefox/17.0 PTST/87"mmmmmm.ru 213.180. - - [17/Dec/2012:13:33:56 +0400] "GET / HTTP/1.0" 500 86460 "-" "Mozilla/5.0 (compatible; YandexMetrika/2.0; +http://yandex.com/bots)"mmmmmm.ru 99.253. - - [17/Dec/2012:13:34:25 +0400] "GET / HTTP/1.0" 500 86460 "-" "Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Firefox/17.0 PTST/87"mmmmmmm.ru 99.253. - - [17/Dec/2012:13:34:26 +0400] "GET /inc/js/my_translate.js HTTP/1.0" 200 2168 "http://mmmmmmm.ru/" "Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Firefox/17.0 PTST/87" Quote Link to comment Share on other sites More sharing options...
Blady Posted December 17, 2012 Author Report Share Posted December 17, 2012 a varbūt problēma ir tieši te? RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]RewriteRule ^(.*) http://%1/$1 [L,R=301] Quote Link to comment Share on other sites More sharing options...
Blady Posted December 17, 2012 Author Report Share Posted December 17, 2012 te lūk ko mums atgriež lapas tests: Quote Link to comment Share on other sites More sharing options...
blackhalt Posted December 17, 2012 Report Share Posted December 17, 2012 Lapas adrese jāslēpj, jo caura? Quote Link to comment Share on other sites More sharing options...
Blady Posted December 17, 2012 Author Report Share Posted December 17, 2012 :) nav skaidrs cik caura:) tāpēc jau jāslēpj:) kamēr te ņēmāmies, skaidrs ir tikai viens, tā nav htaccess problēma tur viss ir čiki piki, jāpēta tagad pats skripts caur ko viņš šitādu gļuku atgriež atpakaļ, nevar tā tak būt, ka vienā variantā lapa strādā, otrā nestrādā, no LV var atvērt jebkā, bet neviens robots atvērt lapu pats nevar, saka: 500 un viss. Quote Link to comment Share on other sites More sharing options...
F3llony Posted December 17, 2012 Report Share Posted December 17, 2012 php.ini ieraksti error_reporting = E_ALL & ~E_NOTICE display_errors = Off display_startup_errors = Off log_errors = On log_errors_max_len = 0 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On track_errors = Off error_log = syslog Tad tail -f /var/log/syslog un skaties kas notiek skriptā, kurš producē 500, eg. izsauc index.php un seko syslogam. Pēc tam nepiemirsti novākt error logu no syslog lai nehogo reģistru. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.