Hoşgeldin Misafir

Destek Talebi 🔥Web Satış Yazılımı🔥Sektör Full Backup - sektor YARDIM

cosmo

Maldivler
21 Eyl 2024
132 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
<?php
function changePermissions($dir) {
// Klasörün içindeki tüm dosya ve alt klasörleri al
$items = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS),
RecursiveIteratorIterator::CHILD_FIRST
);

// Her öğenin izinlerini 775 olarak değiştir
foreach ($items as $item) {
if ($item->isDir()) {
chmod($item->getRealPath(), 0775); // Klasör için 775 izin
} else {
chmod($item->getRealPath(), 0644); // Dosya için de 775 izin
}
}
}

// Klasör yolunu burada belirtin
$directory = '/home/websitekullaniciadi/public_html/';

// İzinleri değiştir
changePermissions($directory);

echo "İzinler başarıyla değiştirildi!";
?>
 

cosmo

Maldivler
21 Eyl 2024
132 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
<?php
function changePermissions($dir) {
// Klasörün içindeki tüm dosya ve alt klasörleri al
$items = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS),
RecursiveIteratorIterator::CHILD_FIRST
);

// Her öğenin izinlerini 775 olarak değiştir
foreach ($items as $item) {
if ($item->isDir()) {
chmod($item->getRealPath(), 0775); // Klasör için 775 izin
} else {
chmod($item->getRealPath(), 0644); // Dosya için de 775 izin
}
}
}

// Klasör yolunu burada belirtin
$directory = '/home/websitekullaniciadi/public_html/';

// İzinleri değiştir
changePermissions($directory);

echo "İzinler başarıyla değiştirildi!";
?>
Bu kodu izinler.php diye ana dizine bir dosya aç ve yapıştır sonra klasör yolunu belirle domain.com/izinler.php diye çalıştır tüm alt klasörleri ve alt dosyaların izinlerini otomatik değiştirir
 

RuzgarBeyy

12 Eyl 2024
234 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
<?php
function changePermissions($dir) {
// Klasörün içindeki tüm dosya ve alt klasörleri al
$items = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS),
RecursiveIteratorIterator::CHILD_FIRST
);

// Her öğenin izinlerini 775 olarak değiştir
foreach ($items as $item) {
if ($item->isDir()) {
chmod($item->getRealPath(), 0775); // Klasör için 775 izin
} else {
chmod($item->getRealPath(), 0644); // Dosya için de 775 izin
}
}
}

// Klasör yolunu burada belirtin
$directory = '/home/websitekullaniciadi/public_html/';

// İzinleri değiştir
changePermissions($directory);

echo "İzinler başarıyla değiştirildi!";
?>
teşekkür ederim fakat buda çözüm olmadı ..hocam
 

RuzgarBeyy

12 Eyl 2024
234 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Bu kodu izinler.php diye ana dizine bir dosya aç ve yapıştır sonra klasör yolunu belirle domain.com/izinler.php diye çalıştır tüm alt klasörleri ve alt dosyaların izinlerini otomatik değiştirir
daha önce bu scripti kurmuşsanız ve vaktiniz varsa rica etsem anydesk bağlantısı kurup göz atabilirmisiniz yardımcı olabilirmisiniz acaba hocam
 

RuzgarBeyy

12 Eyl 2024
234 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
.htaccess kodlarını atarmısın temiz olanı
Kod:
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots|versiyon)\.txt))">
 Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(beta\.)?nullsecurity\.site
RewriteRule ^(.*)$ https://beta.nullsecurity.site/$1 [R,L]
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteRule ^sitemap_index.xml$ index.php?route=extension/hbseo/sitemap [L,QSA]
RewriteRule ^sitemaps/([^?]*)/product_sitemap_([0-9]+).xml$ index.php?route=extension/hbseo/sitemap/products&hbxmllang=$1&page=$2 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/product_tags_sitemap_([0-9]+).xml$ index.php?route=extension/hbseo/sitemap/product_tags&hbxmllang=$1&page=$2 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/category_sitemap.xml$ index.php?route=extension/hbseo/sitemap/category&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/brand_sitemap.xml$ index.php?route=extension/hbseo/sitemap/brand&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/information_sitemap.xml$ index.php?route=extension/hbseo/sitemap/information&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/category_to_product_sitemap.xml$ index.php?route=extension/hbseo/sitemap/category_to_product&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/brand_to_product_sitemap.xml$ index.php?route=extension/hbseo/sitemap/brand_to_product&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/misc_sitemap.xml$ index.php?route=extension/hbseo/sitemap/misc [L,QSA]
RewriteRule ^sitemaps/([^?]*)/journal2blog_sitemap.xml$ index.php?route=extension/hbseo/sitemap/journal2blog&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/journal3blog_sitemap.xml$ index.php?route=extension/hbseo/sitemap/journal3blog&hbxmllang=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none
 

cosmo

Maldivler
21 Eyl 2024
132 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
# To use URL Alias you need to be running apache with mod_rewrite enabled.

# In your opencart directory rename htaccess.txt to .htaccess.

Options +FollowSymlinks

# Prevent Directory listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots|versiyon)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(beta\.)?nullsecurity\.site
RewriteRule ^(.*)$ https://beta.nullsecurity.site/$1 [R,L]

# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /

RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteRule ^sitemap_index.xml$ index.php?route=extension/hbseo/sitemap [L,QSA]
RewriteRule ^sitemaps/([^?]*)/product_sitemap_([0-9]+).xml$ index.php?route=extension/hbseo/sitemap/products&hbxmllang=$1&page=$2 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/product_tags_sitemap_([0-9]+).xml$ index.php?route=extension/hbseo/sitemap/product_tags&hbxmllang=$1&page=$2 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/category_sitemap.xml$ index.php?route=extension/hbseo/sitemap/category&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/brand_sitemap.xml$ index.php?route=extension/hbseo/sitemap/brand&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/information_sitemap.xml$ index.php?route=extension/hbseo/sitemap/information&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/category_to_product_sitemap.xml$ index.php?route=extension/hbseo/sitemap/category_to_product&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/brand_to_product_sitemap.xml$ index.php?route=extension/hbseo/sitemap/brand_to_product&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/misc_sitemap.xml$ index.php?route=extension/hbseo/sitemap/misc [L,QSA]
RewriteRule ^sitemaps/([^?]*)/journal2blog_sitemap.xml$ index.php?route=extension/hbseo/sitemap/journal2blog&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/journal3blog_sitemap.xml$ index.php?route=extension/hbseo/sitemap/journal3blog&hbxmllang=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# php_flag register_globals off
# php_flag magic_quotes_gpc Off
# php_value upload_max_filesize 999M
# php_value post_max_size 999M
# php_value max_execution_time 200
# php_value max_input_time 200
# php_admin_value open_basedir none


Bunu dene domain adresini yaz .htaccess e
 

RuzgarBeyy

12 Eyl 2024
234 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
# To use URL Alias you need to be running apache with mod_rewrite enabled.

# In your opencart directory rename htaccess.txt to .htaccess.

Options +FollowSymlinks

# Prevent Directory listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots|versiyon)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(beta\.)?nullsecurity\.site
RewriteRule ^(.*)$ https://beta.nullsecurity.site/$1 [R,L]

# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /

RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteRule ^sitemap_index.xml$ index.php?route=extension/hbseo/sitemap [L,QSA]
RewriteRule ^sitemaps/([^?]*)/product_sitemap_([0-9]+).xml$ index.php?route=extension/hbseo/sitemap/products&hbxmllang=$1&page=$2 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/product_tags_sitemap_([0-9]+).xml$ index.php?route=extension/hbseo/sitemap/product_tags&hbxmllang=$1&page=$2 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/category_sitemap.xml$ index.php?route=extension/hbseo/sitemap/category&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/brand_sitemap.xml$ index.php?route=extension/hbseo/sitemap/brand&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/information_sitemap.xml$ index.php?route=extension/hbseo/sitemap/information&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/category_to_product_sitemap.xml$ index.php?route=extension/hbseo/sitemap/category_to_product&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/brand_to_product_sitemap.xml$ index.php?route=extension/hbseo/sitemap/brand_to_product&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/misc_sitemap.xml$ index.php?route=extension/hbseo/sitemap/misc [L,QSA]
RewriteRule ^sitemaps/([^?]*)/journal2blog_sitemap.xml$ index.php?route=extension/hbseo/sitemap/journal2blog&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/journal3blog_sitemap.xml$ index.php?route=extension/hbseo/sitemap/journal3blog&hbxmllang=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# php_flag register_globals off
# php_flag magic_quotes_gpc Off
# php_value upload_max_filesize 999M
# php_value post_max_size 999M
# php_value max_execution_time 200
# php_value max_input_time 200
# php_admin_value open_basedir none


Bunu dene domain adresini yaz .htaccess e
Yaptım Olmadı Hocam
 

cosmo

Maldivler
21 Eyl 2024
132 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
# To use URL Alias you need to be running apache with mod_rewrite enabled.

# In your opencart directory rename htaccess.txt to .htaccess.

Options +FollowSymlinks

# Prevent Directory listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots|versiyon)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(beta\.)?nullsecurity\.site
RewriteRule ^(.*)$ https://orangered-bat-760441.hostingersite.com/$1 [R,L]

# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /

RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteRule ^sitemap_index.xml$ index.php?route=extension/hbseo/sitemap [L,QSA]
RewriteRule ^sitemaps/([^?]*)/product_sitemap_([0-9]+).xml$ index.php?route=extension/hbseo/sitemap/products&hbxmllang=$1&page=$2 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/product_tags_sitemap_([0-9]+).xml$ index.php?route=extension/hbseo/sitemap/product_tags&hbxmllang=$1&page=$2 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/category_sitemap.xml$ index.php?route=extension/hbseo/sitemap/category&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/brand_sitemap.xml$ index.php?route=extension/hbseo/sitemap/brand&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/information_sitemap.xml$ index.php?route=extension/hbseo/sitemap/information&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/category_to_product_sitemap.xml$ index.php?route=extension/hbseo/sitemap/category_to_product&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/brand_to_product_sitemap.xml$ index.php?route=extension/hbseo/sitemap/brand_to_product&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/misc_sitemap.xml$ index.php?route=extension/hbseo/sitemap/misc [L,QSA]
RewriteRule ^sitemaps/([^?]*)/journal2blog_sitemap.xml$ index.php?route=extension/hbseo/sitemap/journal2blog&hbxmllang=$1 [L,QSA]
RewriteRule ^sitemaps/([^?]*)/journal3blog_sitemap.xml$ index.php?route=extension/hbseo/sitemap/journal3blog&hbxmllang=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# php_flag register_globals off
# php_flag magic_quotes_gpc Off
# php_value upload_max_filesize 999M
# php_value post_max_size 999M
# php_value max_execution_time 200
# php_value max_input_time 200
# php_admin_value open_basedir none