Help with install
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!!
This discussion has been closed.
Comments
Hi,
I've never seen this error for config.php. I suggest re-uploading Sendy to make sure all necessary files are uploaded:
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).
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
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 need750
?Kind regards
Nathan
Hi,
644
is ok. For/uploads/
folder, it should be777
so it's writable and files can be uploaded to it.Thanks.
Best regards,
Ben
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:
What should I do?
Kind Regards,
Nathan
Hi,
Please send me the following details so I can take a look:
Best regards,
Ben
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
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
toAllowoverride All
in your Apache's httpd.conf for mod_rewrite to work.Best regards,
Ben
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