Gossamer Forum
Home : Products : Gossamer Links : Discussions :

page not found after setup.cgi?! - help

Quote Reply
page not found after setup.cgi?! - help
Hi, I have just installed the latest (stable) release of LinksSQL 2 and have also enabled it to run under mod_perl.

Everything was going fine (i.e. server restarted, fixed DBI etc) BUT when I fill in my details on the "setup.cgi" page and click "next" it just comes up with a standard IE error page saying "The page cannot be displayed".

I read in the mod_perl readme file, that when asked if I had persistent connections to answer 'yes' - but I was never asked this?!

What should I do? I have already looked in ConfigData.pm but this doesn't mention persistent connections either.

I don't get why the first 2 pages of setup.cgi (i.e. the welcome page and then the SQL Information page) load fine but then the next page doesn't?!

Pugdog? Elliot? Alex? help please :-)

JeffB

Quote Reply
Re: page not found after setup.cgi?! - help In reply to
The readme is out of date - persistent connections are auto-detected.

Have you checked your error log?

Also what does $ENV{GATEWAY_INTERFACE} tell you?

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: page not found after setup.cgi?! - help In reply to
Nothing in the Apache error log.

GATEWAY_INTERFACE => CGI-Perl/1.1

Does this help?


Quote Reply
Re: page not found after setup.cgi?! - help In reply to
That gateway interface is correct so mod_perl seems to be running ok, I'm not sure what would cause this.

You uploaded the .dat file in binary mode?

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: page not found after setup.cgi?! - help In reply to
Yes the .dat file was uploaded in Binary, otherwise it wouldn't have unpacked the setup.cgi scripts etc. I can't work out what the problem is either. Even if you enter no details in the "MySQL Information" form and press "Next >>" you still get a standard Internet Explorer "Page can not be displayed".

Do you thing it has anything to do with my server set up? I am NOT running the scripts out of the cgi-bin, instead I have enabled another directory to run cgi scripts. Maybe I need to change a server setting in Webmin?

Please help!

Quote Reply
Re: page not found after setup.cgi?! - help In reply to
Hmm I'm not sure - if it was a problem with executing cgi, then as you said, it wouldn't have unarchived the files.

Maybe it is to do with mysql? (Not likely though)

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: page not found after setup.cgi?! - help In reply to
hmm. If I change the SQL Server type to something but MySQL then it reloads the form with an error saying "Database driver... ...not installed" - this is different to the IE error page.

It must be something to do with MySQL but anyone got any ideas. I have the database and permissions all set up. And even so, if you submit the form empty you get the same result!

Let me know.


Quote Reply
Re: page not found after setup.cgi?! - help In reply to
Anyone else got any ideas? I have tried everything and it's 1.38 am in the morning here in the UK! Please help soon before I lose all my hair :-)

Jeffb

Quote Reply
Re: page not found after setup.cgi?! - help In reply to
2.36am in the morning and I've fixed the bug!

It was all due to GT's misleading readme files. Basically where GT says at Point 2 of readme.mod_perl:

"For example, if your scripts were at: http://gossamer-threads.com/perl/links-sql/search.cgi
You would put: '/perl/links-sql' as location."


In fact, if you have more than one site on your server then you will need to put the full path to the location of Links. I can't believe I have been up half the night thanks to GT not updating their readme files and making them lacking on possible troubleshooting.

Anyway. I managed to fix it myself in the end. Hope GT will take note of this complaint.

JeffB

Quote Reply
Re: page not found after setup.cgi?! - help In reply to
This may be an error, but if you are working within the

<VirtualHost>
</VirtualHost>

Block, then paths are relative to the virtual root, if you've
got your aliases set right.

If you use the full unix path, then the server would report a
404 error.

This might be an issue in your local configuration. I have found
many, many problems with the way different ISP's set up virtual
servers. I really prefer dedicated machines, with no funny layering
of access.

I do agree the readme, changes, and other files need updating, but
I'm not sure this is a true bug, or if it's a problem with your
particular set up.

All my set ups, and I have 99 servers running on my box, use the
server (virtual HTTP root) as the base, and not the unix path.
But I have them all alised properly as well. That might be the
problem?

This is really something ALex must address.


PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: page not found after setup.cgi?! - help In reply to
Pugdog,

It's good to hear from you. Just woke up feeling rather tired but happy Links is now working!

Basically I added the lines provided in Readme.mod_perl within the following httpd.conf block:


if mod_perl then...
[location /perl]
...
[/location]
[location /path/to/linkssql] * in fact full path is needed :)
...
[/location]


Enclosing it in the "if mod_perl is working block" made sense to me but I can also see the logic of putting it in each of the <virtual host> blocks as well.

Hope this explains the situation and thanks for your views.

Jeffb

Quote Reply
Re: page not found after setup.cgi?! - help In reply to
>> It was all due to GT's misleading readme files.

Well, actually the path is correct as I can verify as this is setup on my virtual domain as stated in the readme.

Alex does say that "Links SQL will work under mod_perl for the best performance. It's not trivial to install or set up."

A statement born from the fact that paths setup in Apache can vary greatly from host to host.

Glad to here you have this working though!

- Eraser.


Quote Reply
Re: page not found after setup.cgi?! - help In reply to
Hi,

Sorry about the late reply. The Location directive requires a URL, not a PATH. See: http://httpd.apache.org/...d/core.html#location for more information about it.

If you want a path, you should use Directory command, not Location.

I'm not sure why that fixed it, and would need server info to check out the Apache config file to tell you for sure.

Again, mod_perl is not trivial to setup. There is a wealth of information on how to do it at:

http://perl.apache.org/guide/

I'll be sure to update the README to remove references to the persistent_env option that was removed.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] page not found after setup.cgi?! - help In reply to
Hi,
I know this is a very old thread but having finally sorted out my mod_perl problem after a *long* time of trying, I thought someone out there might one day find it helpful.

I started off some time ago by following this thread and changed my location directive to a path and was amazed - everything worked. Then I realised that I was no longer running the files under mod_perl - which was why they started working. Finally tonight I have fixed it by reconfiguring PHP to run without the built-in mysql driver. Can't believe that this was the problem but everything seems fine now. This does seem to be a fix that's recommended on several mod_perl sites - hope it helps someone else! Smile

Laura.
The UK High Street