Google+

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rezolvat problema cu tema dupa ce am pus din nou baza de date
#1
de curand am schimbat forumul meu pe un alt server si am uploadat din nou baza de date si ftp-ul. este vorba despre http://www.clubcraiova.com
am creat baza de date noua, am uploadat in ea baza mea de date de o aveam in pc, am creat user pe care l-am adaugat la baza de date, i-am selectat toate privilegiile, am uploadat ftp-ul si am modificat config.php dar acum merge siteul , dar inschimb nu mai apare tema, apare totul aiurea pe acolo. si am incercat sa intru in admin cp de pe site si imi da aceasta eroare: "Forbidden

You don't have permission to access /admin/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

ma poate ajuta cineva cu problema asta?
#2
(06-23-2011, 07:15 PM)luigi216 Wrote: de curand am schimbat forumul meu pe un alt server si am uploadat din nou baza de date si ftp-ul. este vorba despre http://www.clubcraiova.com
am creat baza de date noua, am uploadat in ea baza mea de date de o aveam in pc, am creat user pe care l-am adaugat la baza de date, i-am selectat toate privilegiile, am uploadat ftp-ul si am modificat config.php dar acum merge siteul , dar inschimb nu mai apare tema, apare totul aiurea pe acolo. si am incercat sa intru in admin cp de pe site si imi da aceasta eroare: "Forbidden

You don't have permission to access /admin/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

ma poate ajuta cineva cu problema asta?
Salut. Ca sa se afiseze cum trebuie tema de pe forumul tau, ar trebui ca accesul la fisierul css (http://www.clubcraiova.com/cache/themes/...global.css) sa fie public. Adica sa nu fie restrictionat. In asa fel se explica si faptul ca nu poti accesa panoul de control al administratorului.
Problema se trage din fisierul .htacces. Ai un fisier .htacces care restricitoneaza accesul in orice subdirector de pe server.
Poti pune aici continutul fisieurl .htaccess sau te descurci singur?
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#3
uite asta scrie in fisierul .htacces:


Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
# MediaTemple, it is known to cause random Internal Server
# errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
# the setting enabled in the Admin CP and you have this file
# named .htaccess
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]

RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]

RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]

RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]

<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>
DirectoryIndex portal.php index.php index.html

#ErrorDocument 400 http://www.clubcraiova.com/
#ErrorDocument 401 http://www.clubcraiova.com/
#ErrorDocument 403 http://www.clubcraiova.com/
#ErrorDocument 404 http://www.clubcraiova.com/
#ErrorDocument 500 http://www.clubcraiova.com/
#ErrorDocument 509 http://www.clubcraiova.com/


<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 95.24.170.157
deny from 94.190.30.135
deny from 91.207.8.114
deny from 94.19.191.183
deny from 109.195.28.67
deny from 81.90.69.94
deny from 193.238.75.214
deny from 188.235.136.166
deny from 94.190.61.196
deny from 188.115.190.30
deny from 94.142.134.178
deny from 85.17.170.109
deny from 89.178.177.2
deny from 92.85.66.96
deny from 46.0.0.0/8
deny from 178.0.0.0/8
deny from 212.83.82.234
deny from 109.230.246.175
deny from 178.239.58.138
deny from 109.195.27.83
deny from 188.235.136.216
deny from 91.201.66.175
deny from 94.23.24.128
deny from 93.80.250.162
deny from 193.105.210.172
deny from 93.80.76.212
deny from 188.143.232.55
deny from 89.178.211.75
deny from 89.178.0.0/16
deny from 93.0.0.0/8
deny from 95.0.0.0/8
deny from 188.235.158.8
deny from 188.0.0.0/8
deny from 178.73.194.244
deny from 91.194.91.87
deny from 178.120.91.34
deny from 119.0.0.0/8
deny from 93.118.240.234


deci ce ar trebui sa fac ca sa ridic restrictionarea aia?

#4
Hmmm... pare a fi in regula...
Atunci poate e de la permisiunile directoarelor... Pentru directorul 'jscripts' ce permisiuni ai setate? Teoretic pentru un director ar trebui sa fie 750 (care nu poate fi scris de oricine).
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#5
(06-26-2011, 11:05 PM)Mihu Wrote: Hmmm... pare a fi in regula...
Atunci poate e de la permisiunile directoarelor... Pentru directorul 'jscripts' ce permisiuni ai setate? Teoretic pentru un director ar trebui sa fie 750 (care nu poate fi scris de oricine).


am 700 la permisiunea de la jscript dar pusei 750 cum ai zis tu si tot aceeasi problema. dar am pus asta numai la acest director nu la toate. ce ar putea fii?
#6
(06-27-2011, 06:02 PM)luigi216 Wrote:
(06-26-2011, 11:05 PM)Mihu Wrote: Hmmm... pare a fi in regula...
Atunci poate e de la permisiunile directoarelor... Pentru directorul 'jscripts' ce permisiuni ai setate? Teoretic pentru un director ar trebui sa fie 750 (care nu poate fi scris de oricine).


am 700 la permisiunea de la jscript dar pusei 750 cum ai zis tu si tot aceeasi problema. dar am pus asta numai la acest director nu la toate. ce ar putea fii?
Deci fiecare director MyBB trebuie sa aibe permisiuni care sa inceapa cu 7, pentru a putea fi accesibil... Nu prea vad ce ar putea fi... Ai cumva posibilitatea sa arati un log de la apache?
De asemenea se poate ca hostul ca aiba modulul "mod_security" activat pentru acest domeniu. Portiunea urmatoare de cod, din htaccess, incearca sa il treaca pe off daca e on :

PHP Code:
1
2
3
4
5
6
7
8
9
#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
# MediaTemple, it is known to cause random Internal Server
# errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

Ar fi bine daca ai deschide un ticket celor de la host si i-ai intreba.

Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#7
Bre, daca tot vrei sa faci treaba si vezi ca nu merge instaleaza totul din nou..

Cum se face transfer corect ?

1. Dai export la baza de date de din phpmyadmin
2. Mergi in Cpanel > File Manager > Forumul tau > Arhivezi totul in .ZIP > Descarci arhiva.
3. Pe noul host, faci o baza de date noua, o golesti, nu instalezi pe el mybb.
4. Mergi pe hostul nou la File Manager > Forumul tau > urci Arhiva .ZIP > O dezarhivezi.
5. Mergi in Phpmyadmin la baza de date facuta, urci baza veche dupa care mergi in config.php si setezi noua baza de date.

Cam atat ar fi totul daca vrei sa-l faci ok.
Keep walking !   http://www.mybb.ro
#8
(06-28-2011, 06:51 AM)Radu Wrote: Bre, daca tot vrei sa faci treaba si vezi ca nu merge instaleaza totul din nou..

Cum se face transfer corect ?

1. Dai export la baza de date de din phpmyadmin
2. Mergi in Cpanel > File Manager > Forumul tau > Arhivezi totul in .ZIP > Descarci arhiva.
3. Pe noul host, faci o baza de date noua, o golesti, nu instalezi pe el mybb.
4. Mergi pe hostul nou la File Manager > Forumul tau > urci Arhiva .ZIP > O dezarhivezi.
5. Mergi in Phpmyadmin la baza de date facuta, urci baza veche dupa care mergi in config.php si setezi noua baza de date.

Cam atat ar fi totul daca vrei sa-l faci ok.


problema este ca tocmai asta am facut. inainte imi mergea perfect si dupa ce am facut tot ce ai zis u mai sus nu imi mai apare tema si apare scrisu aruncat aiurea acolo
(06-27-2011, 09:18 PM)Mihu Wrote:
(06-27-2011, 06:02 PM)luigi216 Wrote:
(06-26-2011, 11:05 PM)Mihu Wrote: Hmmm... pare a fi in regula...
Atunci poate e de la permisiunile directoarelor... Pentru directorul 'jscripts' ce permisiuni ai setate? Teoretic pentru un director ar trebui sa fie 750 (care nu poate fi scris de oricine).


am 700 la permisiunea de la jscript dar pusei 750 cum ai zis tu si tot aceeasi problema. dar am pus asta numai la acest director nu la toate. ce ar putea fii?
Deci fiecare director MyBB trebuie sa aibe permisiuni care sa inceapa cu 7, pentru a putea fi accesibil... Nu prea vad ce ar putea fi... Ai cumva posibilitatea sa arati un log de la apache?
De asemenea se poate ca hostul ca aiba modulul "mod_security" activat pentru acest domeniu. Portiunea urmatoare de cod, din htaccess, incearca sa il treaca pe off daca e on :

PHP Code:
1
2
3
4
5
6
7
8
9
#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
# MediaTemple, it is known to cause random Internal Server
# errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

Ar fi bine daca ai deschide un ticket celor de la host si i-ai intreba.




este pe off. am cu 7 la permisiuni da . in legatura cu hostul, chiar cu baiatul de la host am facut toatya chestia asta, de am instalat totu din nou si el a zis ca este de la mybb si sa contactez mybb ca nu stie sa ma ajute
#9
eu cand va zic ca mybb e buguit, nu ma credeti, mai ales versiunea asta 1.6.3
#10
(06-28-2011, 08:31 PM)punzzer Wrote: eu cand va zic ca mybb e buguit, nu ma credeti, mai ales versiunea asta 1.6.3
Nu cred... Gândeşte-te că şi MyBB România este tot pe MyBB 1.6.3. Îţi recomand să postezi şi pe saitul oficial un topic cu problema.

Poţi să îmi dai admin şi acces ftp la mybb? Voi încerca eu mai multe variante pentru fişierul htacces?
Trimite datele prin PM dacă eşti de acord.
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.


Forum Jump:


Users browsing this thread: 1 Guest(s)