PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : کـــمـــکـــ فـــوریـــ | پیغام خطا در نصب اسکریپت



soheyl_ir89
June 23rd, 2012, 11:50
سلام دوستان
اسکریپتی رو دارم نصب می کنم
در مرحله آخر و بعد از تایید نام و رمز و مشخصات دیتابیس،
این error رو می ده :

Error: The configuration file '/.htaccess' is not writable. Change its permissions, then try again.

چی کار کنم؟

با سپاس

psfa
June 23rd, 2012, 11:51
permissions رو باید عوض کنید :d
تو نصب دست زده بودینش 777 اینا کردین؟

payam_shzbax
June 23rd, 2012, 11:57
معلومه که :39:توی پوشه روت فایل .htaccess رو پیدا کن 777 کن پرم رو

soheyl_ir89
June 23rd, 2012, 12:02
این محتوای فایل htaccess :



<?php
require_once('access.php');
require_once('../includes/functions.php');


$array = parse_url(SITE_URL);
$rewritebase = $array['path'];
if ($_SERVER["SERVER_PORT"]!="80") $rewritebase=str_replace(":".$_SERVER["SERVER_PORT"],"",$rewritebase);
if ($rewritebase=="") $rewritebase="/";

$offer=u(T_("Offer"));
if ($offer=="") $offer="offer";

$need=u(T_("Need"));
if ($need=="") $need="need";

$cat=u(T_("Category"));
if ($cat=="") $cat="category";

$typ=u(T_("Type"));
if ($typ=="") $typ="type";

$new=u(T_("Publish a new Ad"));
if ($new=="") $new="new";

$con=u(T_("Contact"));
if ($con=="") $con="contact";

$pol=u(T_("Privacy Policy"));
if ($pol=="") $pol="policy";

$sm=u(T_("Sitemap"));
if ($sm=="") $sm="sitemap";

$sch=u(T_("Advanced Search"));
if ($sch=="") $sch="search";

$gm=u(T_("Map"));
if ($gm=="") $gm="map";

$ads=u(T_("Classifieds"));
if ($ads=="") $ads="ads";

$alogin=u(T_("Login"));
if ($alogin=="") $alogin="login";

$alogout=u(T_("Logout"));
if ($alogout=="") $alogout="logout";

$aforgotpwd=u(T_("Forgot My Password"));
if ($aforgotpwd=="") $aforgotpwd="forgot-password";

$aconfig=u(T_("Settings"));
if ($aconfig=="") $aconfig="settings";

$account=u(T_("My Account"));
if ($account=="") $account="my-account";

$terms=u(T_("Terms"));
if ($terms=="") $account="terms";

$new=u(T_("Publish a new Ad"));
if ($new=="") $new="publish-a-new-ad-for-free";

$aregister =u(T_("Register new account"));
if ($aregister=="") $aregister="register";

$htaccess_content = "ErrorDocument 404 ".$rewritebase."content/404.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase $rewritebase
RewriteRule ^([0-9]+)$ index.php?page=$1 [L]
RewriteRule ^install/$ install/index.php [L]
RewriteRule ^admin/$ admin/index.php [L]
RewriteRule ^rss/$ content/feed-rss.php [L]
RewriteRule ^manage/$ content/item-manage.php [L]
RewriteRule ^$new.htm content/item-new.php [L]
RewriteRule ^$con.htm content/contact.php [L]
RewriteRule ^$terms.htm content/terms.php [L]
RewriteRule ^$pol.htm content/privacy.php [L]
RewriteRule ^$sm.htm content/site-map.php [L]
RewriteRule ^$sch.htm content/search.php [L]
RewriteRule ^$gm.htm content/map.php [L]
RewriteRule ^$aregister.htm content/account/register.php [L]
RewriteRule ^$alogin.htm content/account/login.php [L]
RewriteRule ^$alogout.htm content/account/logout.php [L]
RewriteRule ^$aforgotpwd.htm content/account/recoverpassword.php [L]
RewriteRule ^$aconfig.htm content/account/settings.php [L]
RewriteRule ^$account/$ content/account/index.php [L]
RewriteRule ^$offer/(.+)/(.+)/$ index.php?category=$1&type=0&location=$2 [L]
RewriteRule ^$offer/(.+)$ index.php?category=$1&type=0 [L]
RewriteRule ^$need/(.+)/(.+)/$ index.php?category=$1&type=1&location=$2 [L]
RewriteRule ^$need/(.+)$ index.php?category=$1&type=1 [L]
RewriteRule ^$ads/(.+)/([0-9]+)$ index.php?location=$1&page=$2 [L]
RewriteRule ^$ads/(.+)/$ index.php?location=$1 [L]
RewriteRule ^(.+)/(.+)/(.+)/$ index.php?category=$2&location=$3 [L]
RewriteRule ^(.+)/(.+)/$ index.php?category=$2 [L]
RewriteRule ^$cat/(.+) $1/ [R=301,L]
RewriteRule ^(.+)/(.+)/(.+)/([0-9]+)$ index.php?category=$2&location=$3&page=$4 [L]
RewriteRule ^(.+)/$ index.php?category=$1 [L]
RewriteRule ^(.+)/(.+)/([0-9]+)$ index.php?category=$2&page=$3 [L]
RewriteRule ^(.+)/([0-9]+)$ index.php?category=$1&page=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/(.+)/(.+)/(.+)$ /$3/$4-$1.htm [R=301,L]
RewriteRule ^(.+)/(.+)/(.+)-([0-9]+).htm$ item.php?category=$2&item=$4 [L]
RewriteRule ^(.+)/(.+)-([0-9]+).htm$ item.php?category=$1&item=$3 [L]
</IfModule>";

//saving htaccess
if(is_writable('../.htaccess')){
$file = fopen('../.htaccess' , "w+");
if (fwrite($file, $htaccess_content)=== FALSE) {
$msg=T_("Cannot write to the configuration file")." '.htaccess'";
$succeed=false;
}else $succeed=true;
fclose($file);
}
else {
$msg=T_("The configuration file")." '/.htaccess' ".T_("is not writable").". ".T_("Change its permissions and try again");
$succeed=false;
}
if ($succeed) jsRedirect(SITE_URL."/admin/settings.php?msg=".T_("Updated"));
else echo $msg;
die();
?>

چی کار کنم؟

psfa
June 23rd, 2012, 12:13
تو filemanager روی این فایل که کلیک کردی از منوی بالا یه گزینه هست به نام permissions اون رو بزن بعد تیک همه رو فعال کن

Arna
June 23rd, 2012, 12:14
دوست عزیز فقط سطح دست رسی رو تغییر بدید

soheyl_ir89
June 23rd, 2012, 12:15
دوست عزیز فقط سطح دست رسی رو تغییر بدید

ممنون
اما چه جوری؟
تا به حال انجام ندادم

psfa
June 23rd, 2012, 12:19
ممنون
اما چه جوری؟
تا به حال انجام ندادم
چیزی که من گفتم سخت بود که متوجه نشدین؟:39:

soheyl_ir89
June 23rd, 2012, 12:22
تو filemanager روی این فایل که کلیک کردی از منوی بالا یه گزینه هست به نام permissions اون رو بزن بعد تیک همه رو فعال کن

با cpanel کار می کنم
و موردی که گفتی رو ندیدم!

RoobinaServer
June 23rd, 2012, 12:34
با cpanel کار می کنم
و موردی که گفتی رو ندیدم!

کـــمـــکـــ فـــوریـــفکر کردم آمریکا سقوط کرد :39:


وارد فایل منیجیر بشید

یه فایل را نگاه کنید از سمت چپ کم کم نگاهتون را به سمت راست ببرید ببینید هیچ عددی میبینید ؟ مثلا 644 ، 777 ، 775 یا ....


منظور تمام دوستان که گفتن همان عدد هست ار پیداش کنید 50% کار حله بعد طبق راهنمایی دوستان پیش برید

psfa
June 23rd, 2012, 12:34
تو فایل منیجر سی پنل باید انجام بدن دیگه
http://piefoundry.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-23-at-14.57.16-copy.png
http://blog.tutorialref.com/wp-content/uploads/2010/09/cpanel-right-click-change-permissions.png

ekrami
June 23rd, 2012, 12:49
اسكريپت چي هست؟

soheyl_ir89
June 23rd, 2012, 12:49
ممنون از راهنمایی دوستان
روی فایل htaccess.php کلیک راست کردم
change premissions رو زدم و مطابق شکلی که psfa زحمتشو کشید،
تیک ها رو زدم و رو 755 زدم.
اما بازم همون error اومد!

soheyl_ir89
June 23rd, 2012, 12:55
سازنده اسکریپت برام API KEY رو ایمیل کرده.
اینو باید چی کار کنم؟
اول همون htacssess رو راهنمایی کنید تا به اینم برسیم.
ممنون دوستان

soheyl_ir89
June 23rd, 2012, 14:10
چی کار کنم دوستان؟
هنوز همون error می آد!

psfa
June 23rd, 2012, 14:45
777 کنید بعد تست کنید

soheyl_ir89
June 23rd, 2012, 17:29
777 کنید بعد تست کنید

بازم نشد دوست عزیز
چی کار کنم دوستان؟

soheyl_ir89
June 23rd, 2012, 21:37
چه دلیلی می تونه داشته باشه اخطار زیر:

Error: The configuration file '/.htaccess' is not writable. Change its permissions, then try again.

soheyl_ir89
June 27th, 2012, 13:05
اسكريپت چي هست؟

اسکریپت Open Classifieds - Install (http://themes.mrsoheyl.ir/classifieds/install/) هست

چه دلیلی می تونه داشته باشه اخطار زیر:

Error: The configuration file '/.htaccess' is not writable. Change its permissions, then try again.

ekrami
June 27th, 2012, 15:52
اسکریپت Open Classifieds - Install (http://themes.mrsoheyl.ir/classifieds/install/) هست

چه دلیلی می تونه داشته باشه اخطار زیر:

Error: The configuration file '/.htaccess' is not writable. Change its permissions, then try again.

با چه زبوني بايد بگه بهت :D
Change its permissions, then try again

soheyl_ir89
June 27th, 2012, 16:32
با چه زبوني بايد بگه بهت :D
Change its permissions, then try again

با چه زبونی بگم:))
روی 755 و 777 امتحان کردم.
دیگه چی کار کنم؟

soheyl_ir89
June 28th, 2012, 15:07
دیگه چه راهیو امتحان کنم؟

soheyl_ir89
July 4th, 2012, 19:43
اسکریپت Open Classifieds - Install (http://themes.mrsoheyl.ir/classifieds/install/) رو کسی نصب کرده؟

presmissions باید رو چند باشه؟
برای htacssess

Mihan-VPS
July 4th, 2012, 19:59
سطح دسترسی فایل htaccess رو باید بیشتر کنی تا اسکریپتت بتونه بخونه از هاست

Mihan-VPS
July 4th, 2012, 20:01
اسکریپت Open Classifieds - Install (http://themes.mrsoheyl.ir/classifieds/install/) رو کسی نصب کرده؟

presmissions باید رو چند باشه؟
برای htacssess
777 دوست عزیز