View previous topic :: View next topic |
Author |
Message |
lorenb Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/13102210993f79afd4a8a30.png)
Joined: 24 Aug 2002 Posts: 207 Location: Toronto, ON
|
Posted: Fri Jul 16, 2004 11:10 pm Post subject: WordPress |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
hadfield Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Link.jpg)
Joined: 18 Mar 2003 Posts: 308 Location: Vancouver, BC, Canada
|
Posted: Sat Jul 17, 2004 7:36 am Post subject: |
|
|
Quote: | <VirtualHost *:443> |
Are you installing it using ssl? Did you use https (instead of http) to test the site? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lorenb Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/13102210993f79afd4a8a30.png)
Joined: 24 Aug 2002 Posts: 207 Location: Toronto, ON
|
Posted: Sat Jul 17, 2004 11:25 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lorenb Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/13102210993f79afd4a8a30.png)
Joined: 24 Aug 2002 Posts: 207 Location: Toronto, ON
|
Posted: Sat Jul 17, 2004 2:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lorenb Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/13102210993f79afd4a8a30.png)
Joined: 24 Aug 2002 Posts: 207 Location: Toronto, ON
|
Posted: Sat Jul 17, 2004 3:48 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
hadfield Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Link.jpg)
Joined: 18 Mar 2003 Posts: 308 Location: Vancouver, BC, Canada
|
Posted: Sat Jul 17, 2004 6:03 pm Post subject: |
|
|
You should submit a bug about this at https://bugs.gentoo.org. I believe the wordpress ebuild is relatively new. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hadfield Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Link.jpg)
Joined: 18 Mar 2003 Posts: 308 Location: Vancouver, BC, Canada
|
Posted: Sun Jul 25, 2004 1:59 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
[sinz] n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Jun 2004 Posts: 71
|
Posted: Thu Oct 21, 2004 5:14 am Post subject: |
|
|
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 ![Question :?:](images/smiles/icon_question.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
CapnBuckle n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/7529412204186ad2f77da7.jpg)
Joined: 29 Oct 2004 Posts: 3
|
Posted: Mon Nov 01, 2004 10:28 pm Post subject: Re: Can't you people use subject lines? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|