Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
WordPress
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lorenb
Apprentice
Apprentice


Joined: 24 Aug 2002
Posts: 207
Location: Toronto, ON

PostPosted: Fri Jul 16, 2004 11:10 pm    Post subject: WordPress Reply with quote

I'm trying to setup WordPress but I'm not having much luck. I created a virtualhost in apache:

Code:

<VirtualHost *:443>

        DocumentRoot /var/www/localhost/htdocs/wordpress
        ServerName wordpress.example.org

        <Directory />

                php_flag register_globals off
                Options Indexes FollowSymLinks

                <IfModule mod_dir.c>
                        DirectoryIndex index.php
                </IfModule>

        </Directory>
</VirtualHost>


I then used wp-config-sample.php to create wp-config.php. I tested the MySQL credentials and they worked fine.

So I then tried to go to:

http://wordpress.example.org/wp-admin/wp-install.php

All I get back from that is:

Code:

<html><body></body></html>


I've got a similar config for SquirrelMail and that works fine. Now sure what the problem is.

Any WordPress users out there that might know what I'm doing wrong?
Back to top
View user's profile Send private message
hadfield
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 308
Location: Vancouver, BC, Canada

PostPosted: Sat Jul 17, 2004 7:36 am    Post subject: Reply with quote

Quote:
<VirtualHost *:443>

Are you installing it using ssl? Did you use https (instead of http) to test the site?
Back to top
View user's profile Send private message
lorenb
Apprentice
Apprentice


Joined: 24 Aug 2002
Posts: 207
Location: Toronto, ON

PostPosted: Sat Jul 17, 2004 11:25 am    Post subject: Reply with quote

hadfield wrote:
Quote:
<VirtualHost *:443>

Are you installing it using ssl? Did you use https (instead of http) to test the site?


Yeah that was just a cut/paste error. I ended up changing it to *:80. Either way though (http/https), the output is always blank HTML.

If my SquirrelMail didn't work, I'd know for sure it was an apache or PHP issue. I don't know, it's really weird.
Back to top
View user's profile Send private message
lorenb
Apprentice
Apprentice


Joined: 24 Aug 2002
Posts: 207
Location: Toronto, ON

PostPosted: Sat Jul 17, 2004 2:16 pm    Post subject: Reply with quote

I found the problem I was having and that was that PHP didn't have MySQL support compiled into it so WordPress failed silently. I was able to then complete the install with no errors. However when I can't login as 'admin'. When I try I get the message from Firefox:

Quote:

Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked.


I'm not blocking cookies so I know it's not that. Anyone got any ideas?
Back to top
View user's profile Send private message
lorenb
Apprentice
Apprentice


Joined: 24 Aug 2002
Posts: 207
Location: Toronto, ON

PostPosted: Sat Jul 17, 2004 3:48 pm    Post subject: Reply with quote

Found the problem, it seemed to be a patch applied to the WordPress source. I just commented out this line in src_unpack:

Code:

epatch ${FILESDIR}/${PV}/login-patch.diff


I can login and everything works fine now.
Back to top
View user's profile Send private message
hadfield
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 308
Location: Vancouver, BC, Canada

PostPosted: Sat Jul 17, 2004 6:03 pm    Post subject: Reply with quote

You should submit a bug about this at https://bugs.gentoo.org. I believe the wordpress ebuild is relatively new.
Back to top
View user's profile Send private message
hadfield
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 308
Location: Vancouver, BC, Canada

PostPosted: Sun Jul 25, 2004 1:59 am    Post subject: Reply with quote

Ok, so I've just installed wordpress and ran into this same problem.

This bug https://bugs.gentoo.org/show_bug.cgi?id=53563 says that you need to install wordpress with webapp-config because it needs a patch that webapp config will apply to it.

I didn't use webapp-config to install it though. So I'm not sure if my fix will break anything else. But if you want modify line 257 in wp-login.php

from: } else {
to: } elseif (False) {

This just basically blocks the code that executes the redirection. I'll post again if I find that it breaks anything.
Back to top
View user's profile Send private message
[sinz]
n00b
n00b


Joined: 08 Jun 2004
Posts: 71

PostPosted: Thu Oct 21, 2004 5:14 am    Post subject: Reply with quote

I'm trying to use wordpress 1.2.1, used webapp-config to install it but am having the same results. It seems that in 1.2.1 the wp-login.php isn't the same as previous versions as my lines don't match anything close to yours. Has anyone else found a fix for this yet :?:
Back to top
View user's profile Send private message
CapnBuckle
n00b
n00b


Joined: 29 Oct 2004
Posts: 3

PostPosted: Mon Nov 01, 2004 10:28 pm    Post subject: Re: Can't you people use subject lines? Reply with quote

:wink:

I posted about this in https://forums.gentoo.org/viewtopic.php?p=1711368#1711368

This is the change I found necessary for the redirect problem:

Code:
diff -P -r -u -x '*~' ebuild/htdocs/wp-admin/auth.php tarball/htdocs/wp-admin/auth.php
--- ebuild/htdocs/wp-admin/auth.php      2004-10-10 23:45:52.000000000 -0500
+++ tarball/htdocs/wp-admin/auth.php    2004-05-18 21:05:40.000000000 -0500
@@ -25,7 +25,7 @@
                return false;

        } else {
-               if ($login->user_login == $user_login && $login->user_pass == $user_pass_md5) {
+               if ($login->user_login == $user_login && md5($login->user_pass) == $user_pass_md5) {
                        return true;
                } else {
                        return false;


This is actually how it is in the tarball from wordpress.org. Apparently, the souce used in the ebuild needs to be updated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum