Sphider-2.0.0a-PDO - parse error when indexing
Posted: Tue Feb 20, 2018 1:58 pm
Hi
Please excuse my preamble before I pose my question; but I'm keen to stress how much I want to get this working!
I've been a long time (happy) user of the original Sphider and it ran fine on my previous shared hosting package (which was using an older version of PHP}. I recently moved to VPS which uses a current PHP version. The original Sphider (as you're fully aware - hence your fabulous work to upgrade it) won't install because of deprecated/removed MySQL.
I bought Sphider-plus (as encouraged by its author) but was put off my the complex adjustments needed on the server - which I also thought may compromise security.
Having discounted Sphider-plus, I looked for alternatives. Google Custom Search does a great job, but I don't want competitor products advertised. SiteLevel seems to provide a weak alternative; but I can't get it to NOT index every page of the site (including the navigation menu) whatever I try (including robots.txt and noindex solutions). Every search then returns every single page. Not good!
While searching for yet another alternative, I was overjoyed yesterday to stumble across your site and was excited to see your updates/modifications to the project. I'm not that conversant with WHM and am not sure exactly what software is running on my VPS. I installed Sphider 2.0.0 but it didn't work, so I assume my configuartion doesn't support MySQLi WITH MySQLnd. I then installed Sphider 2.0.0a-PDO and it installed fine, so I presume the prerequisites have been met.
After updating the settings, I ran 'Start Indexing' and get:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/foo/public_html/sphider-2.0.0a-PDO/admin/spider.php on line 235
I'm no wizard on PHP. I've attached a snippet from my spider.php file just in case there's a syntax error there.
Also attached is a screen dump of my settings; perhaps I've configured something wrong?
I SO want this to work - any advice would be greatly appreciated.
Thank you in advance.
Webbo
Please excuse my preamble before I pose my question; but I'm keen to stress how much I want to get this working!
I've been a long time (happy) user of the original Sphider and it ran fine on my previous shared hosting package (which was using an older version of PHP}. I recently moved to VPS which uses a current PHP version. The original Sphider (as you're fully aware - hence your fabulous work to upgrade it) won't install because of deprecated/removed MySQL.
I bought Sphider-plus (as encouraged by its author) but was put off my the complex adjustments needed on the server - which I also thought may compromise security.
Having discounted Sphider-plus, I looked for alternatives. Google Custom Search does a great job, but I don't want competitor products advertised. SiteLevel seems to provide a weak alternative; but I can't get it to NOT index every page of the site (including the navigation menu) whatever I try (including robots.txt and noindex solutions). Every search then returns every single page. Not good!
While searching for yet another alternative, I was overjoyed yesterday to stumble across your site and was excited to see your updates/modifications to the project. I'm not that conversant with WHM and am not sure exactly what software is running on my VPS. I installed Sphider 2.0.0 but it didn't work, so I assume my configuartion doesn't support MySQLi WITH MySQLnd. I then installed Sphider 2.0.0a-PDO and it installed fine, so I presume the prerequisites have been met.
After updating the settings, I ran 'Start Indexing' and get:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/foo/public_html/sphider-2.0.0a-PDO/admin/spider.php on line 235
I'm no wizard on PHP. I've attached a snippet from my spider.php file just in case there's a syntax error there.
Also attached is a screen dump of my settings; perhaps I've configured something wrong?
I SO want this to work - any advice would be greatly appreciated.
Thank you in advance.
Webbo