Forums

installed ok, but pages off index.php not loading (22 posts)

  1. webby
    Member
    Posted 7 years ago #

    Hi everyone.

    I have just insstalled wordpresss with no problems, however the only page working is index.php.

    Here is where my site is set up: http://72.10.49.69/index.php

    If you click any othe the catergory links then it doesnt work. Any ideas? Is it because I am using an ip adress? I will change it in the fuuture just no until it goes live.

    Thanks

    Laura

  2. woohoo
    Member
    Posted 7 years ago #

    I installed today and have a similar problem. When I create pages, the home page updates with the links, but the page that it links to does not exist.

    I'm working on http://userviews.com

    Thanks!
    Jeff

  3. James
    Happiness Engineer
    Posted 7 years ago #

    Webby, I'm not sure what exactly is happening (I'd venture to blame the IP address), but basically your installation of WP is not adding index.php in front of the query strings. For example, your blog links to Category 1 here: http://72.10.49.69/?cat=1 but it should be: http://72.10.49.69/index.php?cat=1

  4. James
    Happiness Engineer
    Posted 7 years ago #

    Jeff, are you on a Linux server or a Windows server?

  5. woohoo
    Member
    Posted 7 years ago #

    I'm on Linux...

  6. Michael Adams (mdawaffe)
    Member
    Posted 7 years ago #

    webby: If you're on a Windows server, you'll need to setup permalinks like this. Otherwise, it looks like your .htaccess file does not exist or is not writeable by WordPress.

    The tell-tale sign: http://72.10.49.69/?p=5 does not work but http://72.10.49.69/index.php?p=5 does.

    woohoo: Your .htaccess needs to be writable. WordPress has to update it every time a Page is created. See the Note here

    EDIT: waves to macmanx

  7. woohoo
    Member
    Posted 7 years ago #

    Ah thanks for the pointer! I'll investigate!

  8. James
    Happiness Engineer
    Posted 7 years ago #

    Jeff, you may need to follow these steps: http://codex.wordpress.org/Using_Permalinks#Fixing_.28.htaccess.29_Generation_Issues

    ::waves back to mdawaffe::

  9. webby
    Member
    Posted 7 years ago #

    Yawn, I just woke up! Thanks for the replies I will check this out on my lunch hour. :)

    Super!

  10. webby
    Member
    Posted 7 years ago #

    hmm ok.. I am running:
    Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_perl/1.26 PHP/4.3.10 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b

    And I created the .htaccess file and made it writeable for the server. (CHMOD the htaccess file to 666)

    And then I took a look at the link posted there about .htaccess files because it wasn't working still. Soo.. I did the edit vars.php thingy and still no joy.. ? Do I need to contact the web server people?
    Did I set the permissions wrong?

    Thanks for your help. :)

  11. webby
    Member
    Posted 7 years ago #

    Does the .htaccess file need to contain anything? Oh man sorry if I am asking dumbass questions.

    I created the .htaccess file and uploaded it and made it writeable that was it....? Did I miss something?

  12. James
    Happiness Engineer
    Posted 7 years ago #

    WordPress should add the rules to the .htaccess for you.

  13. webby
    Member
    Posted 7 years ago #

    ohh.. I didn't see any .htaccess file.
    whoops.

  14. webby
    Member
    Posted 7 years ago #

    oh sorry I read that wrong

    I meant what if wordpress couldn't create the file? is there any way to find out what the .htaccess file should contain they I could just type it in and upload it. That must be my problem.

  15. James
    Happiness Engineer
    Posted 7 years ago #

    If it can't create the file, you'll have to make a few changes. Follow this tutorial: http://codex.wordpress.org/Using_Permalinks#Fixing_.28.htaccess.29_Generation_Issues

  16. webby
    Member
    Posted 7 years ago #

    Oh dear. thanks for your patience Macmanx. :)

    I hav tried that already and no joy. I contacted me web hosts and they said "we do allow overrides with .htaccess. In looking at this issue, it seems that the problem is configuration somewhere. Here is what I notice when click on the March archives link.
    The link is:

    http://72.10.49.69/?m=200503

    However,if I change that link to
    http://72.10.49.69/index.php?m=200503

    This leads me to believe that it may be a pathing issue somewhere. Is there any configuration page where you need to specify index.php? That looks like it would solve your problem."

    So I am totally stumped now..

    Jeff did you get yours working?

  17. webby
    Member
    Posted 7 years ago #

    Should I try a fresh install?

  18. GreenRedBrownell
    Member
    Posted 7 years ago #

    Pathing for your whole WordPress site is done in two rows of your data base. If you know how to open up your WP mySQL data base (if you are on a hosted server, there is usually a management console of some sort), then go browse the rows of the "wp-options' table. The two entries (option_name column) you want to look at are called "siteurl" and "home". See if there's anything in there that will help point you at the right URL. If you change these options, do so carefully, and remember the old contents, so you can get back to what it was again if it doesn't work.

    When I installed in a sub-folder of the root, I had to change my "home" value before all the internal WP links on the various pages would work (and so the default theme would show up). After install, the value of "home" was something like "www.mysite.com", and I had to change it to something like "www.mysite.com/baseballblog, which is where I had WP installed.

    Good luck.

  19. woohoo
    Member
    Posted 7 years ago #

    Big thank you to webby and macmanx. I followed the instructions at http://codex.wordpress.org/Using_Permalinks#Fixing_.28.htaccess.29 with good results - I'm now able to access new pages!

    I appreciate the assistance!
    Jeff

  20. woohoo
    Member
    Posted 7 years ago #

    Sorry for the oversight - thank you mdawaffe too!
    Jeff

  21. crionox
    Member
    Posted 7 years ago #

    Color me daft, but I'm still not having any luck with the same after following the above instructions (or following them as well as I could understand, which could be the problem...). I just got done creating an .htaccess file, setting permissions, and loading up. So I can now see it in the admin although I get this error when I try to edit:

    "Warning: fread(): Length parameter must be greater than 0. in /home/.adorabelle/crionox/davidrperry.com/wp-admin/templates.php on line 73"

    I am also interested in if there's something I could adjust on the vars.php file (saw that mentioned above), as it seems to have some relevant code that might be tweaked to adjust that path?

    Any other ideas? You can see the current site in progress at davidrperry.com

    David

  22. crionox
    Member
    Posted 7 years ago #

    Well, the plot thickens... I played around with the permalinks admin and threw in the standard tags, and it works fine. I can go in and look at the .htaccess and see all the activity for changes since that point, so it's able to write to the file just fine. But if I take off those tags and try to go back to the default format, it's still not adding the index.php before the ? to give me the full default permalink.

    David

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.