Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

WordPress

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
lorenb
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Sat Aug 24, 2002 4:25 am
Location: Toronto, ON

WordPress

  • Quote

Post by lorenb » Fri Jul 16, 2004 11:10 pm

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

Code: Select all

<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: Select all

<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?
Top
hadfield
Retired Dev
Retired Dev
User avatar
Posts: 308
Joined: Tue Mar 18, 2003 8:06 pm
Location: Vancouver, BC, Canada

  • Quote

Post by hadfield » Sat Jul 17, 2004 7:36 am

<VirtualHost *:443>
Are you installing it using ssl? Did you use https (instead of http) to test the site?
Top
lorenb
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Sat Aug 24, 2002 4:25 am
Location: Toronto, ON

  • Quote

Post by lorenb » Sat Jul 17, 2004 11:25 am

hadfield wrote:
<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.
Top
lorenb
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Sat Aug 24, 2002 4:25 am
Location: Toronto, ON

  • Quote

Post by lorenb » Sat Jul 17, 2004 2:16 pm

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:
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?
Top
lorenb
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Sat Aug 24, 2002 4:25 am
Location: Toronto, ON

  • Quote

Post by lorenb » Sat Jul 17, 2004 3:48 pm

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

Code: Select all

epatch ${FILESDIR}/${PV}/login-patch.diff
I can login and everything works fine now.
Top
hadfield
Retired Dev
Retired Dev
User avatar
Posts: 308
Joined: Tue Mar 18, 2003 8:06 pm
Location: Vancouver, BC, Canada

  • Quote

Post by hadfield » Sat Jul 17, 2004 6:03 pm

You should submit a bug about this at http://bugs.gentoo.org. I believe the wordpress ebuild is relatively new.
Top
hadfield
Retired Dev
Retired Dev
User avatar
Posts: 308
Joined: Tue Mar 18, 2003 8:06 pm
Location: Vancouver, BC, Canada

  • Quote

Post by hadfield » Sun Jul 25, 2004 1:59 am

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

This bug http://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.
Top
[sinz]
n00b
n00b
Posts: 71
Joined: Tue Jun 08, 2004 9:28 pm

  • Quote

Post by [sinz] » Thu Oct 21, 2004 5:14 am

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 :?:
Top
CapnBuckle
n00b
n00b
User avatar
Posts: 3
Joined: Fri Oct 29, 2004 8:53 pm

Re: Can't you people use subject lines?

  • Quote

Post by CapnBuckle » Mon Nov 01, 2004 10:28 pm

:wink:

I posted about this in http://forums.gentoo.org/viewtopic.php? ... 68#1711368

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

Code: Select all

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.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic