Page 2 of 2

Re: Cant get to work

Posted: Sun Jun 06, 2021 7:08 pm
by captcurrent
did as you said

restart apache (which memory serves me you have to do to get php changes to take effect(

the same thing happens as shown ini the screen shot


I do appreciate all the effort

Re: Cant get to work

Posted: Sun Jun 06, 2021 9:07 pm
by captquirk
No echo message appears? Even with cookie cleared?
This means Sphider isn't getting out of auth.php. Thinking this through...
The logon screen is being displayed, so auth.php is initially being executed...
Clicking "Submit" executes auth.php again and SHOULD then exit and return to admin.php --- which isn't happening...

Are we getting hung up in the line 43 elseif??? I've never seen this before, but the original developer Ando Saabas must have that there for a reason.
In auth.php, on line 47 (currently blank), insert:
echo "And here we sit":

Clear the cookie and try again. Do you get the text?

If so, I have to think about this! But at least it would be progress...

Re: Cant get to work

Posted: Sun Jun 06, 2021 9:53 pm
by captcurrent
I think the response I got was not what you were expecting



Parse error: syntax error, unexpected ':', expecting ',' or ';' in /usr/local/www/kasdivi.com/sphider/admin/auth.php on line 47


I mist have screwed something up REALLY good

Re: Cant get to work

Posted: Sun Jun 06, 2021 10:06 pm
by captquirk
Actually, it was ME who screwed up! The line SHOULD be:
echo "And here we sit";
My fat fingers ended the statement with a colon instead of a semi-colon. My apologies!

Re: Cant get to work

Posted: Mon Jun 07, 2021 12:08 pm
by captcurrent
Well changing to semi solved the new error but still no log on success. No sig of the new echo command either

Re: Cant get to work

Posted: Mon Jun 07, 2021 7:23 pm
by captquirk
Forgive me for asking this question:
Do the logon user/password credentials match the "admin"/"admin_pw" defined in auth.php, lines 22 and 23?

If so, I have a couple more test echoes in mind...

Re: Cant get to work

Posted: Wed Jun 09, 2021 8:57 pm
by captcurrent
Ok. did it again made sure I cut and pasted the credentials and It worked to a point.. Must have been another attack of fat fimgers. Who can say since I cant see the password. Love that security. they can attached a pipe line but ...


ok that aside. I got logged on and try to index and got this response


And here we sitLogging option is set, but cannot open file for logging.

Thoughts insights?

Re: Cant get to work

Posted: Thu Jun 10, 2021 1:23 am
by captquirk
There are several directories within the admin directory. One of them is "log".
These directories must be writable by the web server. In Linux using Apache, the owner must be changed to www-data. Also permissions should be set to 775.
You are using BSD, but are also using Apache... I can't guarantee www-data as owner will work, but give that a try.
You should have something like this for ls -l on admin (in this case, "rich" can be anything... it's "www-data" that is critical):
drwxrwxr-x 2 www-data rich 4096 Feb 1 20:00 backup
-rwxrwxrwx 1 rich rich 34241 Jan 29 16:06 configset.php
-rwxr-xr-x 1 rich rich 15613 Jan 22 19:07 convert_db.php
-rwxr-xr-x 1 rich rich 5195 Jan 25 12:47 db_backup.php
-rwxr-xr-x 1 rich rich 736 May 10 2019 dbmain.js
-rwxr-xr-x 1 rich rich 7753 Jan 22 18:53 db_main.php
-rwxr-xr-x 1 rich rich 159 May 10 2019 ext.txt
-rwxr-xr-x 1 rich rich 369 May 10 2019 index.html
-rwxr-xr-x 1 rich rich 10234 Jan 25 12:47 install.php
drwxrwxr-x 2 www-data rich 102400 Jun 9 18:00 log
-rwxr-xr-x 1 rich rich 13025 Feb 1 20:17 messages.php
-rwxr-xr-x 1 rich rich 6680 Jan 22 18:58 rss_spider.php
drwxrwxr-x 2 www-data rich 4096 Jan 22 10:11 sitemaps
-rwxr-xr-x 1 rich rich 43272 Jan 22 19:04 spiderfuncs.php
-rwxr-xr-x 1 rich rich 60413 Feb 1 16:44 spider.php
drwxrwxr-x 2 www-data rich 4096 Feb 1 19:56 tmp
IF www-data is not valid, let me know and I will do some research to see what owner would be valid...

Re: Cant get to work

Posted: Thu Jun 10, 2021 1:19 pm
by captcurrent
Thanks again
for FreeBSD the user and groups is "www"

I changed permission and I am apparently indexing. Thanks for all your hard work. Nice to have this nice tool back

Re: Cant get to work

Posted: Fri Jan 14, 2022 1:34 pm
by storeship
I had the same problem it is to do with the conf.php file in settings that will not accept the $result = $stmt->get_result();
To repair in your PHP settings turn off mysqli and turn on nd_mysqli
That fixed it for me.