• The process of installation was ok, without troubles, database ok, tables ok, … but when I try to Login the page is reloaded without login. I guess there’s a cookies problem, isn’t it?
    I have Apache + MySQL + PHP on a Windows XP Pro
    The server root is c:\server\
    Local sites are: c\server\www\site1\
    WordPress root is: c:\server\www\site1\wordpress\
    To view local sites I use, for example:
    https://site1/wordpress/
    Hosts file is:
    127.0.0.1 site1
    and Apache config:
    <VirtualHost 127.0.0.1>
    ServerAdmin [email protected]
    DocumentRoot "c:/server/www/site1"
    ServerName site1
    ErrorLog logs/site1-error.log
    CustomLog logs/site1-access.log combined
    ScriptAlias /cgi-bin/ "c:/server/www/site1/cgi-bin/"
    <Directory "c:/server/www/site1">
    Options All Includes Indexes
    </Directory>
    </VirtualHost>

    Could you help me?
    Thanks in advance

Viewing 15 replies - 1 through 15 (of 16 total)
  • You may want to take a look at what the errors and notices are set to in your php.ini file and set it to spit out all of them. It will give you an idea of what exactly is going on, and even if you don’t understand it, someone here will probably be able to tell you what’s going on.

    Thread Starter ravenpix

    (@ravenpix)

    Well, I can’t find any solution searching trough the php.ini.
    display_errors is on … but after trying to Login I haven’t any error message or something like that, the browser (Mozilla Firefox 0.8) just reload the login page!
    I’m not sure about where’s the problem. I Know that sometimes there’s somo cookies problem with localhosts … but is this the case?

    There is sometimes a problem with cookies, especially with Apache on localhost. I don’t use Apache – I found it quite problematic with WinXP and switched to Abyss.
    Hopefully someone else will have an answer for you.

    Your cookie isn’t being set. I’ve had the same issue running Apache, Win2K, MySQL.
    I haven’t been able to figure out just what causes it, except that unless there is a . in the accress somewhere, the cookie won’t set.
    I hat to resort to using 127.0.0.0 as my addr and have WP in a sub dir before it would work right.
    TG

    No that isn’t right.
    After successful login you’re supposed to end up at:
    https://blahblahblah/wp-admin/post.php
    Are cookies enabled on your browser?

    After installation, not withstanding the fact it is your first install did you run upgrade.php?

    If you are using Safari, delete the cookies first and then it will work.

    I went another route. I registered with DynDNS, I have a site address, and my local setup is set with that domain. Much easier.
    You can also ‘fake’ a domain in the Hosts file to point to your local IP address for your box.
    I just had problems with raw localhost not working properly (at least on windows). The DynDNS thing makes your machine like any website, with the obvious ‘security issue’ that you need port 80 open. Of course, it also means I can check my local site out from any of my many machines, OSes, browsers, without being restricted by localhost or Hosts hackery. And when I’m not working/testing, I don’t have apache open, thus no real security issue. ??
    -d
    https://www.chait.net

    Thread Starter ravenpix

    (@ravenpix)

    Here I go again. Thanks for the suggestions.
    1. Yes. Cookies are allowed (Using Mozilla FireFox 0.8, but I tryied in IE 6 and had the same trouble).
    2. Today I dropped the database and started again using https://localhost/wordpress/ , but that’s not the point ’cause I have the same trouble that started this thread:
    I’m not redirected to https://localhost/wordpress/wp-admin/post.php
    I’m still not sure if it’s a cookies problem or a misconfiguration of PHP (about the URL after Login).

    Thread Starter ravenpix

    (@ravenpix)

    If help’s …
    When I input the right username and password the reloaded page has this URL:
    https://localhost/wordpress/wp-login.php?
    redirect_to=%2Fwordpress%2Fwp-admin%2F

    but if I input a wrong user or password in the Login area, I obtain this URL:
    https://localhost/wordpress/wp-login.php
    Any idea?

    This may not help you directly but it might assist other users. I am no server guru – I can assure you of that. For my local install I used EasyPHP which has mysql/apache/php all bundled. It installed beautifully. Joy of joy then in went Wp like a charm – on Win98 on my second machine.

    Thread Starter ravenpix

    (@ravenpix)

    Well, I used FoxServ (some people hate it and some love, I know it) and for me is working not so bad. Apache + MySQL + PHP + Perl
    Thing is, the WordPress Installation wasn’t the problem. The only trouble is generated when I try to login as I mentioned before.
    I know there’s lot of people that installed WP on a localhost without any trouble but it could be someone with the same problem … ??
    I wish to test WP on my localhost before take any decision but I must to solve this before!

    I’ll suggest again that you try using a different hostname than via localhost, whether IP based or fake (in the hosts file), or dyndns. It may be a limitation on localhost-usage. Try setting up the entry in the wp settings table to be your local IP address (if you have one — I’m behind a firewall, so have 192.168.x.y address format).
    d

    a-HA!
    from the https://us2.php.net/setcookie explanations:

    I know that others have had problems with WinXP and cookies not setting. Someone here has already mentioned that the domain field must have at least one dot (.) in it. The problem therein lies with most home users leaving your host name as localhost. This is fine and dandy for most applications but setcookie() seems to not like it so here is my solution…
    Right Click My Computer > Properties > Computer Name > Change > More
    Once there change the part where it say’s “Primary DNS Suffix of This Computer” to whatever you want, e.g. com, net,X,home,localdomain
    Restart the computer and start putting comp-name.DNS Suffix
    I hope this helps others who have struggled with this problem I know it bugged me for the longest time.

    There are other solutions that might be applied at some time, such as just specifying a blank domain ” worked for one person.
    -d

    Thread Starter ravenpix

    (@ravenpix)

    Just another question:
    The wordpress installation is now running under:
    https://wordpress.local/
    but the database setting is ‘DB_HOST’, ‘localhost’
    it could cause any problem or is that config right (for each site)?
    I’ve poor experience with databases.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Installation on a Localhost’ is closed to new replies.