• Resolved laurentlanglais

    (@laurentlanglais)


    Ok after much hassle I’ve uploaded my local wordpress online…put it in the root directory no more in wordpress dir…imported the db with good paths for online site, and put the right db and password in ht.access. All I get is the index of/ instead of the page ?? appache etc. are handled by the host, so don’t come from this…
    Here is the url https://www.spacessential.com/

    Alos If I try to login to the admin https://www.spacessential.com/wp-admin here is what I get…

    Warning: main(/homez.152/spacesse/www/wp-includes/load.php) [function.main]: failed to open stream: No such file or directory in /homez.152/spacesse/www/wp-settings.php on line 19

    Fatal error: main() [function.require]: Failed opening required ‘/homez.152/spacesse/www/wp-includes/load.php’ (include_path=’.:/usr/local/lib/php’) in /homez.152/spacesse/www/wp-settings.php on line 19

    Very frustrating please need help!

Viewing 15 replies - 1 through 15 (of 21 total)
  • actually at a quick glance several files are missing – the index.php for one – there are more
    try uploading the files again

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Hi Samuel
    The index is defintely here, as well as ht.acess, but they are both outside the folder at the root, where I thought they should go? Will try to re-upload everything otherwise and let you know. Thx.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    They go in the folder where you installed WordPress. That’s why the index.php file is there in the zip ??

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Well thanks. They are now in the same folder, but here is what I get now…
    Unable to open WampServer’s config file, please change path in index.php file

    ?? Any idea?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    WAMP is, I thought, for locally hosted sites. What’s the content of the index.php? Is if from a fresh download of WP, or from what you had on your local install?

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Ok guys you have to assume that I know nothing about those things, because this is true lol
    So if I let the index file, I’be got this:
    Unable to open WampServer’s config file, please change path in index.php file

    If I suppress it, we’re back to displaying index of/ instead of the site.
    Indeed once the site in hosted online there should be no need of Wamp, and no reference to it. So should I get rid of this index file and create another one instead, and what to put in it?

    The current index file is like this:

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
        <IfModule mod_setenvif.c>
            BrowserMatch ^Mozilla/4 gzip-only-text/html
            BrowserMatch ^Mozilla/4\.0[678] no-gzip
            BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
            BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
        </IfModule>
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
        AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
    </IfModule>
    <FilesMatch "\.(css|js)$">
        FileETag None
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.1.3"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$">
        FileETag None
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.1.3"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$">
        FileETag None
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.1.3"
        </IfModule>
    </FilesMatch>
    # END W3TC Browser Cache
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Very stressful…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    That’s … not the index.php that’s your .htaccess. Or rather, IF that is in your index.php then it’s seriously effed up.

    Go here: https://www.ads-software.com/download/

    Download WordPress.

    Open the zip.

    Look at THAT index.php

    THAT is what it should look like.

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Huge thanks to you Ipstenu. Told you I knew nothing lol
    I’ve replaced it by the index.php from a downloaded version fo wordpress, and it works – at least I can access the front page!
    https://www.spacessential.com
    However now when I try to navigate on the different page here is what I get

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    So of course something is not rightly set for the permalinks or something along those line I guess. I have already modified the wp-config to make it work online so must come from somewhere else…

    If you have an idea to resolve this TOO then you’ll be Santa Claus.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Did you save that other stuff (what was in your index.php) into a file called .htaccess?

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Well I just tried this, transfered it, and then even the frontpage stopped working ?? So I’ve suppressed this new htacess. I’m depressed now ??

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    So I’ve suppressed this new htacess.

    Okay, make a new .htaccess with JUST this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Then go into WordPress and re-save your permalinks.

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Thanks for such assistance mister….pb defo comes from htacess but not solve. If I create this new htacess with this content and upload it, then backend bug and can’t access it anymore, so can’t save permalinks! If U suppress it backend works but not the navigation on the site…~I’m better at French cooking I’m telling you! Think we’re getting closer however…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    then backend bug and can’t access it anymore

    You need to be a bit more specific here. What backend bug? if you’re talking about the error 500 then do this:

    1) Delete the .htaccess
    2) Set permalinks to the default UGLY ones (?p=1)

    If that works, then you tell your host ‘Hey, I can’t use .htaccess! Is mod rewrite working?’

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Mister Ipstenu, you’re a genius. Htaccess suppressed, regular permalinks, everything works WOW. Now I’m gonna dare to ask you one more advice (got plenty mroe questions but will start new specifics threads, better).

    My site is built as a static site, not a blog. So it’s all made of pages, put in custom menus and submenus, not post/categories. Which custom permalink structure would you then recommend for better SEO efficiency? (I’d like something type parents page/page title , something simple and clean).

    Thanks for all your fantastic help. I’ve got more faith in humanity today lol

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Mister Ipstenu, you’re a genius. Htaccess suppressed, regular permalinks, everything works WOW.

    It’s Ms. Ipstenu ?? No worries. I would grab your host, though, and tell them that .htaccess isn’t working. They should be able to fix that so you can have pretty URLs again!

    Which custom permalink structure would you then recommend for better SEO efficiency?

    I have two simple rules for permalinks ??

    1) Shorter is Better
    2) DON’T use %postname%

    I use /%year%/%postname%/ personally, but if you can’t, I’d go with /%post_id%/%postname%/

    Also, don’t make your whole site out of pages. You will slow things down. From https://ottopress.com/2010/category-in-permalinks-considered-harmful/ “Your site’s speed is linearly dependent on the number of Pages you have.”

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Transferred site onine…Only displaying index of/’ is closed to new replies.