WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Install Trouble on 000webhost (Yeah, I know) (14 posts)

  1. charliegavin
    Member
    Posted 5 years ago #

    Hey guys. I'm getting extremely frustrated, so help on this would be greatly appreciated.

    I'm currently trying to install Worpress 2.7 on the somewhat infamous 000webhost site (I use paid hosting at Hosting24, but this is for my portfolio site and I frankly don't want to pay more money than I have to). Now, I've hand installed WordPress countless times and multiple times on this service (but not on this specific account). I'm trying to install my blog at http://charliegavin.net/artblog/ . As you can see, it simple leads to the "index of /artblog". Individual admin panel files work when I click on them, and I can reach posts thru their individual URLs but the main url for the blog still leads to a directory. I've reinstalled WordPress multiple times today and I still get the same problem. I do know, however, that all the MySQl stuff is going through (and my chmod permissions for all my files are 777 - not sure if that makes a difference, but, I'll include that anyway).

    Can anybody please help me out? Thanks a ton.

  2. whooami
    Member
    Posted 5 years ago #

    whats in your index.php? what do your server logs say?

    http://charliegavin.net/artblog/feed/

    its installed.

    for starters,

    files should NOT be chmod 777

    files should be chmod 644

    directories should be chmod 755

    fix that immediately (before you forget) --its a security risk leaving them as you have them.

    also, create an .htaccess file, and put this in it:

    DirectoryIndex index.php

  3. charliegavin
    Member
    Posted 5 years ago #

    I usually set things to 777 when I set them up and then change the CHMOD later. Maybe that's bad, i guess.

    I'll try editing the .htaccess - thanks for the suggestion.

  4. whooami
    Member
    Posted 5 years ago #

    I usually set things to 777

    why? Its completely unnecessary.

    By default, nix servers assign permissions to uploads. Literally every shared host has this set up so that files are 644 and dirs are 755. thats done to simplify things for you, and to, more importantly, to secure things for them.

  5. charliegavin
    Member
    Posted 5 years ago #

    Weird old habit that started when I misunderstood something in WordPress.

    Are you suggesting I put and .htaccess in my /artblog subdomain? Because I need http://charliegavin.net to point to something else.

  6. whooami
    Member
    Posted 5 years ago #

    yeah, where your wp-config.php is

    and im still waiting to know whats in your index.php that's sitting in the same directory. Its redirecting, so Im wondering if its empty or something.

    and what about the server logs? :)

  7. charliegavin
    Member
    Posted 5 years ago #

    These are the contents:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>

    And about server logs... I'm not sure what they are. I'm sure that just made me look like an idiot.

  8. whooami
    Member
    Posted 5 years ago #

    yah thats what is sposed to be in that file.

    server logs -- ask the host. that you dont know where they are just means you have to ask :) they may not even make theme available.

    though it appears they offer cpanel, in which case your error log and access log can bother be accessed from there.

  9. charliegavin
    Member
    Posted 5 years ago #

    I found an activity log. Would that be like the same thing?

  10. whooami
    Member
    Posted 5 years ago #

    thats your access log. youre looking for an error log.

  11. charliegavin
    Member
    Posted 5 years ago #

    Also, I tried to insert that snipped in the .htaccess in that subdomain, but it told me:

    Could not change perms on /public_html/artblog/.htaccess: Operation not permitted in /home/manager/public_html/includes/filesystem.inc.php on line 723

  12. charliegavin
    Member
    Posted 5 years ago #

    Solved!

  13. whooami
    Member
    Posted 5 years ago #

    ok, and what was the problem? what was the solution?

  14. charliegavin
    Member
    Posted 5 years ago #

    I had installed it in two subdomains (wasn't working in either). In the other subdomain, there was no .htaccess file. I made one with the snippet you provided.

    Thanks for the help!

Topic Closed

This topic has been closed to new replies.

About this Topic