Visualizzazione risultati 1 fino 3 di 3

Discussione: Trasferimento sito da remoto a locale

  1. #1
    irpinia non è connesso Utente Blog
    Data registrazione
    06-05-2023
    Messaggi
    79

    Predefinito Trasferimento sito da remoto a locale

    Salve ho provato a traferire un mio sito da remoto a locale ho eseguito tutti i passaggi indicati dalla guida Joomla ma in locale mi succede una cosa strana e cioè cliccando su questo indirizzo che ovviamnente credo voi non vediate
    http://localhost:81/irpinia/
    mi riporta a questo indirizzo
    https://magazineirpinia.altervista.org/irpinia/
    che è l'indirizzo remoto del sito.
    Codice PHP:
    <?php
    class JConfig {
    public
    $offline = '0';
    public
    $offline_message = 'Sito fuori servizio per manutenzione.<br /> Riprovare più tardi.';
    public
    $display_offline_message = '1';
    public
    $offline_image = '';
    public
    $sitename = 'Montecalvo Irpino Magazine';
    public
    $editor = 'tinymce';
    public
    $captcha = '0';
    public
    $list_limit = '20';
    public
    $access = '1';
    public
    $debug = '0';
    public
    $debug_lang = '0';
    public
    $dbtype = 'mysql';
    public
    $host = 'localhost';
    public
    $user = 'Irpinia';
    public
    $password = 'Irpinia@1960';
    public
    $db = 'irpinia';
    public
    $dbprefix = 'jos9_';
    public
    $live_site = '';
    public
    $secret = 'SZessk9jAAB8lyVv';
    public
    $gzip = '0';
    public
    $error_reporting = 'default';
    public
    $helpurl = 'https://help.joomla.org/proxy?keyref=Help{major}{minor}:{keyref}&lang={langcode}';
    public
    $ftp_host = '';
    public
    $ftp_port = '';
    public
    $ftp_user = '';
    public
    $ftp_pass = '';
    public
    $ftp_root = '';
    public
    $ftp_enable = '0';
    public
    $offset = 'UTC';
    public
    $mailonline = '0';
    public
    $mailer = 'mail';
    public
    $mailfrom = 'acaccese@libero.it';
    public
    $fromname = 'magazineirpinia';
    public
    $sendmail = '/usr/sbin/sendmail';
    public
    $smtpauth = '0';
    public
    $smtpuser = '';
    public
    $smtppass = '';
    public
    $smtphost = 'localhost';
    public
    $smtpsecure = 'none';
    public
    $smtpport = '25';
    public
    $caching = '0';
    public
    $cache_handler = 'file';
    public
    $cachetime = '15';
    public
    $cache_platformprefix = '0';
    public
    $MetaDesc = 'Sito locale di notizie,cronaca, attualità,politica cultura e tradizione da Montecalvo Irpino in provincia di Avellino:';
    public
    $MetaKeys = '';
    public
    $MetaTitle = '1';
    public
    $MetaAuthor = '1';
    public
    $MetaVersion = '0';
    public
    $robots = '';
    public
    $sef = '1';
    public
    $sef_rewrite = '1';
    public
    $sef_suffix = '0';
    public
    $unicodeslugs = '0';
    public
    $feed_limit = '10';
    public
    $feed_email = 'none';
    public
    $log_path = 'C:\\xampp\\htdocs\\irpinia\\logs';
    public
    $tmp_path = 'C:\\xampp\\htdocs\\irpinia\\tmp';
    public
    $lifetime = '15';
    public
    $session_handler = 'database';
    public
    $shared_session = '0';
    public
    $memcache_persist = '1';
    public
    $memcache_compress = '0';
    public
    $memcache_server_host = 'localhost';
    public
    $memcache_server_port = '11211';
    public
    $memcached_persist = '1';
    public
    $memcached_compress = '0';
    public
    $memcached_server_host = 'localhost';
    public
    $memcached_server_port = '11211';
    public
    $redis_persist = '1';
    public
    $redis_server_host = 'localhost';
    public
    $redis_server_port = '6379';
    public
    $redis_server_auth = '';
    public
    $redis_server_db = '0';
    public
    $proxy_enable = '0';
    public
    $proxy_host = '';
    public
    $proxy_port = '';
    public
    $proxy_user = '';
    public
    $proxy_pass = '';
    public
    $massmailoff = '0';
    public
    $replyto = '';
    public
    $replytoname = '';
    public
    $MetaRights = '';
    public
    $sitename_pagetitles = '0';
    public
    $force_ssl = '2';
    public
    $session_memcache_server_host = 'localhost';
    public
    $session_memcache_server_port = '11211';
    public
    $session_memcached_server_host = 'localhost';
    public
    $session_memcached_server_port = '11211';
    public
    $frontediting = '1';
    public
    $cookie_domain = '';
    public
    $cookie_path = '';
    public
    $asset_id = '1';
    public
    $debug_lang_const = '1';
    public
    $behind_loadbalancer = '0';
    public
    $session_redis_persist = '1';
    public
    $session_redis_server_host = 'localhost';
    public
    $session_redis_server_port = '6379';
    public
    $session_redis_server_db = '0';
    }
    questa la configuration.php Dove è l'errore?
    Ultima modifica di alemoppo : 28-05-2023 alle ore 20.17.27 Motivo: +tag [php]

  2. #2
    irpinia non è connesso Utente Blog
    Data registrazione
    06-05-2023
    Messaggi
    79

    Predefinito

    Post anche file access
    Codice:
    ##
    # @package    Joomla
    # @copyright  Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.
    # @license    GNU General Public License version 2 or later; see LICENSE.txt
    ##
    
    ##
    # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
    #
    # The line 'Options +FollowSymLinks' may cause problems with some server configurations.
    # It is required for the use of mod_rewrite, but it may have already been set by your 
    # server administrator in a way that disallows changing it in this .htaccess file.
    # If using it causes your site to produce an error, comment it out (add # to the 
    # beginning of the line), reload your site in your browser and test your sef urls. If 
    # they work, then it has been set by your server administrator and you do not need to 
    # set it here.
    ##
    
    ## No directory listings
    <IfModule autoindex>
      IndexIgnore *
    </IfModule>
    
    ## Can be commented out if causes errors, see notes above.
    Options +FollowSymlinks
    Options -Indexes
    
    ## Mod_rewrite in use.
    
    RewriteEngine On
    
    ## Begin - Rewrite rules to block out some common exploits.
    # If you experience problems on your site then comment out the operations listed 
    # below by adding a # to the beginning of the line.
    # This attempts to block the most common type of exploit `attempts` on Joomla!
    #
    # Block any script trying to base64_encode data within the URL.
    RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
    # Block any script that includes a <script> tag in URL.
    RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
    # Block any script trying to set a PHP GLOBALS variable via URL.
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block any script trying to modify a _REQUEST variable via URL.
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Return 403 Forbidden header and show the content of the root home page
    RewriteRule .* index.php [F]
    #
    ## End - Rewrite rules to block out some common exploits.
    
    ## Begin - Custom redirects
    #
    # If you need to redirect some pages, or set a canonical non-www to
    # www redirect (or vice versa), place that code here. Ensure those
    # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
    #
    ## End - Custom redirects
    
    ##
    # Uncomment the following line if your webserver's URL
    # is not directly related to physical file paths.
    # Update Your Joomla! Directory (just / for root).
    ##
    
    # RewriteBase /
    
    ## Begin - Joomla! core SEF Section.
    #
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    #
    # If the requested path and file is not /index.php and the request
    # has not already been internally rewritten to the index.php script
    RewriteCond %{REQUEST_URI} !^/index\.php
    # and the requested path and file doesn't directly match a physical file
    RewriteCond %{REQUEST_FILENAME} !-f
    # and the requested path and file doesn't directly match a physical folder
    RewriteCond %{REQUEST_FILENAME} !-d
    # internally rewrite the request to the index.php script
    RewriteRule .* index.php [L]
    #
    ## End - Joomla! core SEF Section.
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteCond %{HTTPS} off
    RewriteRule .* https://magazineirpinia.altervista.org%{REQUEST_URI} [L,R=301]
    # # av:php5-engine
    AddHandler av-php8 .php
    Ultima modifica di alemoppo : 28-05-2023 alle ore 20.17.49

  3. #3
    irpinia non è connesso Utente Blog
    Data registrazione
    06-05-2023
    Messaggi
    79

    Predefinito

    Risolto

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •