Help! 500 server error!

kingstog

Joined: 2007-10-08
Posts: 13
Posted: Sun, 2007-12-02 03:03

Can anyone help, I have been running wpg2 on Mamp running on OSX 10.4
I updated to the lates WPG2 plugin today and immediately got this error.


Quote:
500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator,

and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.0.59 (Unix) PHP/5.2.3 DAV/2 Server at localhost Port 8888

I tried reinstalling everything even Mamp but I can't get it to work. Has anyone any idea what's happened?

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Sun, 2007-12-02 17:57

Sorry, I don't have access to a Mac to test on. But just some basic troubleshooting...

Did you have the old WPG2 running successfully on the same box? What happens when you deactivate WPG2, do WordPress and Gallery2 return to normal? Does your Apache error log show any more information?

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
kingstog

Joined: 2007-10-08
Posts: 13
Posted: Sun, 2007-12-02 20:36

Thanks for the response Kirk.
I had everything working fine with the old plugin. Tried putting the old plugin back but this didn't help, then erased wordpress, mamp and everything related and tried a fresh install, still couldn't get past the error page. Can't get mamp to work on my system at all now with anything installed! Installed xampp instead and that's working well with the new plugin.
Can't run mamp anymore, can't understand it. At least I have it working again with xampp.

This is what I'm getting in the apache error log.

Quote:
[Sun Dec 02 20:29:55 2007] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 02 20:29:55 2007] [notice] Digest: done
[Sun Dec 02 20:29:55 2007] [notice] Apache/2.0.59 (Unix) PHP/5.1.6 DAV/2 configured -- resuming normal operations
[Sun Dec 02 20:29:55 2007] [alert] [client ::1] /.htaccess: RewriteBase takes one argument, the base URL of the per-directory context

And the sql error log.

Quote:
071202 20:29:49 mysqld started
071202 20:29:50 [Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case insensitive. This means that you can corrupt a MyISAM table by accessing it with different cases. You should consider changing lower_case_table_names to 1 or 2
071202 20:29:50 [Warning] One can only use the --user switch if running as root

071202 20:29:52 InnoDB: Started; log sequence number 0 43655
071202 20:29:53 [Note] /Applications/MAMP/Library/libexec/mysqld: ready for connections.
Version: '5.0.19' socket: '/Applications/MAMP/tmp/mysql/mysql.sock' port: 8889 Source distribution

I'm happy to use Xampp but am curious as to what happened and wonder has anyone else had the same problem or is it specific to my macbook?

 
kingstog

Joined: 2007-10-08
Posts: 13
Posted: Sat, 2007-12-15 21:33

Just a note in case anyone else has this problem. I found the solution on the MAMP forums. A rogue .htaccess file got written to my hard drive root. Once it was deleted everything went back to normal.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2007-12-16 01:17

Thanks for posting that.. I don't think I would have ever guessed that was the issue..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
digitaldonky
digitaldonky's picture

Joined: 2005-10-18
Posts: 59
Posted: Wed, 2008-12-17 22:02

Ups... what happened there ...

I experiencend the same issue. I'd well running test with:

Wordpress 2.7
Gallery2 2.3 core 1.3.0
WPG2 2.3.0.7

Everything was OK. WP-rewrites where running.
When I activate the mod_rewrite module in G2 MAMP fails.
Unfortunately and repeatable.

In /.htaccess I found the access-rules created by gallery.

Maybe It is related with the Imagemagick hack, I'd use for MAMP.

Quote:
Once ImageMagick is installed, head to:

/Applications/MAMP/Library/bin/envvars

Here we want to comment out the two lines:

#DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
#export DYLD_LIBRARY_PATH

and add the line:

export PATH="$PATH:/opt/local/bin"

As far as I understood this hack, it enables MAMP my shell $PATH. But this wasn't it.

Anyone an Idea how I can enable g2-url-rewrite without killing MAMP?

... little time passing ...

OK. The solution is: You must not enable mod rewrite plugin in gallery2 using the embeded-wpg2-page. When using the interface with /gallery2 path directly It worked well.

... puh :)

Actually MAMP should not acces systemroot as far as I understood webservers, but it's MAMP.