HelpSpot Help Desk Software | HelpSpot Blog | HelpSpot Support

Problem with the Install.php/install.sh


#1

[admin@localhost html]$ sudo bash install.sh


| | | | | | / | _ __ ___ | |
| |
| |/ _ \ | ’
_
| ’
\ / _ | __|
| _ | __/ | |
) |) | |) | () | |_
|| ||_
|| ./___/| ./ ___/ _|
|
| |_|
Preparing Installation…
Installing lsb_release command
Checking for IonCube Loader…
IonCube installed already, moving on…
Downloading Latest HelpSpot…
Where should HelpSpot be installed? >/var/www/helpspot
We need some information to configure HelpSpot:

Database Host (e.g. localhost) >localhost

Database User >helpspot_user

Database Password >whaever

Database Name >helpspot_db

HelpSpot URL (e.g. http://example.com/helpspot - no trailing slash)
Use the full URL you will use in a browser >http://10.0.0.244/helpspot
sed: -e expression #3, char 31: unknown option to `s’
backto the bash

I keep getting: sed: -e expression #3, char 31: unknown option to `s’
and it stops the installer.

I have the files in /var/www/html I have been trying to manually edit the config.php file but I keep messing up the general field

/**

  • General
    */
    define(‘cHOST’,‘10.0.0.244’); // Base URL used within HelpSpot, WITHOUT tailing slash “/”

define(‘cBASEPATH’, dirname(FILE)); // Base file path to HelpSpot
define(‘cDATADIR’, cBASEPATH.’/data’); // Path to server-writable data directory
define(‘cDEBUG’, true); // Setting to true will output errors to the browser and log file
?>

I’m not sure what to change the dirname to, I tried variations of /var/www/html with and without single quotes. if I leave that field to its default and go to the install.php I turned debugging on and I got this:

ErrorException (E_UNKNOWN)
HELP
file_put_contents(/var/www/html/data/meta/services.json): failed to open stream: Permission denied

UNIQUE_ID WDXvq6YoqU-VXtBUASSlfwAAAAI
HTTP_HOST 10.0.0.244
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=0
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8
HTTP_COOKIE PHPSESSID=3t6g4p3vk0iamtrn8b90vontv3
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.6 (CentOS) PHP/5.4.16
SERVER_NAME 10.0.0.244
SERVER_ADDR 10.0.0.244
SERVER_PORT 80
REMOTE_ADDR 10.0.0.191
DOCUMENT_ROOT /var/www/html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/installer.php
REMOTE_PORT 63905
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /installer.php
SCRIPT_NAME /installer.php
PHP_SELF /installer.php
REQUEST_TIME_FLOAT 1479929771.455
REQUEST_TIME 1479929771

Any help would be appreciated

edit: SELINUX is permissive
File permissions look pretty normal


#2

Preparing Installation…
Installing lsb_release command
Checking for IonCube Loader…
IonCube installed already, moving on…
Downloading Latest HelpSpot…
Where should HelpSpot be installed? >/var/www/html
We need some information to configure HelpSpot:

Database Host (e.g. localhost) >localhost

Database User >helpspot_user

Database Password >whatever

Database Name >helpspot_db

HelpSpot URL (e.g. http://example.com/helpspot - no trailing slash)
Use the full URL you will use in a browser >http://help
PHP Fatal error:
The file /var/www/html/bootstrap/helpspot.php was encoded
with the PHP 5.6 ionCube Encoder and requires PHP 5.6 to be installed.
in Unknown on line 0

I think I fixed the first error,

Now I’m getting this error

I have the ioncube using 5.4 in the config file and my box has php 5.4 installed as well.


#3

This is my final reply

Error in exception handler: The stream or file “./data/logs/helpspot.log” could not be opened: failed to open stream: Permission denied in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:97

I have stopped trying to use the install.sh I have php5.6 and ioncube is set up correctly

I configured config.php manually and I get to the:
Cannot access database. If this is a new installation please go to the installer page.
click on the link and get the error above I don’t know what to do.


#4

I got it working.

I didn’t use install.sh

after I went to troubleshooting https://support.helpspot.com/index.php?pg=kb.page&id=476
I ran all of the commands for the error I was receiving.

sudo chown -R apache:apache /path/to/helpspot/data
sudo chmod -R ug+rw /path/to/helpspot/data

sudo chcon -Rv --type=httpd_sys_content_rw_t /path/to/helpspot/data

these commands should be part of the install instructions

also I needed to install PHP5.6 (which is not specified in the install instructions)
and set up ioncube to also use PHP5.6

After I did these couple of things then I was able to actually get into the web interface and actually install helpspot correctly.