Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Help with install
  • Vote Up0Vote Down jungyjungy
    Posts: 1Sendy user

    Hi,

    I have been trying for the passed week to install sendy on my Centos 7 VPS, hosted by IOZOOM.

    First problem, was that it could not access the database, despite all credentials being correct.

    I decided to do a fresh install of the OS and LAMP Stack.
    I edited the config file as per usual.

    This time in the config file I did not create a Mariadb user.
    I just used the Mariadb root and created a DB called "sendydb"

    I am getting a http 500 error.
    I have checked the Apache error logs and have got this error:

     [Sun May 28 15:02:19.232897 2017] [:error] [pid 23427] [client 114.76.115.253:57900] PHP Parse error:  syntax error, unexpected '$dbName' (T_VARIABLE) in /var/www/html/includes/config.php on line 13
    

    I thought maybe it was the DB name, so I created a new one and I am still getting the same error.

    Any help on this issue would be great.
    I am so frustrated!!

  • 8 Comments
  • Vote Up0Vote Down BenBen
    Posts: 3,507Sendy support

    Hi,

    PHP Parse error: syntax error, unexpected '$dbName' (T_VARIABLE) in /var/www/html/includes/config.php on line 13

    I've never seen this error for config.php. I suggest re-uploading Sendy to make sure all necessary files are uploaded:

    1. Download a copy of Sendy from http://sendy.co/get-updated with your license key (use the form at the top left of the page to download Sendy).

    2. Then re-upload all of Sendy's files to your server (except /includes/config.php and /uploads/ folder) replacing the old ones.

    Make sure all necessary files are uploaded.

    Thanks.

    Best regards,
    Ben

  • Vote Up0Vote Down jungyjungy
    Posts: 1Sendy user

    Hi Ben,

    Thanks. I will give it a go and let you know how it goes.

    What kind of permissions should the files have?
    Is owner root and group root ok?
    Or should the group Be assigned to apache?
    Is 640 for permission acceptable or do the files need 750?

    Kind regards
    Nathan

  • Vote Up0Vote Down BenBen
    Posts: 3,507Sendy support

    Hi,

    What kind of permissions should the files have?

    644 is ok. For /uploads/ folder, it should be 777 so it's writable and files can be uploaded to it.

    Thanks.

    Best regards,
    Ben

  • Vote Up0Vote Down jungyjungy
    Posts: 1Sendy user

    Hi Ben,

    I just finished re-installing Sendy.

    I downloaded the latest version.
    Deleted everything in HTML folder.
    Setup the config file.
    Uploaded everything to the server.

    Just tried to access the domain and got the same error:

     PHP Parse error:  syntax error, unexpected '$dbName' (T_VARIABLE) in /var/www/html/includes/config.php on line 13
    

    What should I do?

    Kind Regards,
    Nathan

  • Vote Up0Vote Down BenBen
    Posts: 3,507Sendy support

    Hi,

    Please send me the following details so I can take a look:

    • Sendy installation URL, email and password
    • FTP or SFTP credentials

    Best regards,
    Ben

  • Vote Up0Vote Down jungyjungy
    Posts: 1Sendy user

    Hi Ben,

    Sendy URL: http://xxx.xxxxxx.xxx
    SFTP: xxxx@xxx.xxxxxx.xxx
    PW: xxxxxxxxxxxxxxxxxx

    That is the root login details for SSH as well. Port: 2255 for ssh & sftp

    Thanks Ben

  • Vote Up0Vote Down BenBen
    Posts: 3,507Sendy support

    Hi,

    I found the issue. The apostrophes in /includes/config.php script was changed to non-standard apostrophes causing the PHP execution to fail. I've changed them to ' instead of and it's working now.

    I've also changed Allowoverride None to Allowoverride All in your Apache's httpd.conf for mod_rewrite to work.

    Best regards,
    Ben

  • Vote Up0Vote Down jungyjungy
    Posts: 1Sendy user

    Hi Ben,

    Thank you so much!! I really appreciate the help.

    Above and beyond support for your product!

    I will recommend sendy to anyone.

    Kind Regards,
    Nathan

This discussion has been closed.
All Discussions