We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Installing on Synology - config.php error | Forum

john wilkins
john wilkins Nov 21 '15
Trying to install on Synology DS115j get to this point

Finalizing install

ow_includes/config.php file is incorrect. Update it with details provided below.

• Please copy and paste this code replacing the existing one into ow_includes/config.php file.
Make sure you do not have any whitespace before and after the code.




<?php

define('OW_URL_HOME', 'http://1**.1**.*.**/oxwall/');

define('OW_DB_HOST', 'localhost');
define('OW_DB_PORT', null);
define('OW_DB_USER', 'root');
define('OW_DB_PASSWORD', '{$db_password}');
define('OW_DB_NAME', 'oxwall');

define('OW_DB_PREFIX', 'ow_');

define('OW_DIR_USERFILES', OW_DIR_ROOT.'ow_userfiles'.DS);
define('OW_DIR_STATIC', OW_DIR_ROOT.'ow_static'.DS);
define('OW_URL_STATIC', OW_URL_HOME.'ow_static/');
define('OW_URL_USERFILES', OW_URL_HOME.'ow_userfiles/');
define('OW_DIR_PLUGINFILES', OW_DIR_ROOT.'ow_pluginfiles/');

define('OW_PASSWORD_SALT', 'AquWeGELEREHamaZ');

define('OW_DIR_CORE', OW_DIR_ROOT.'ow_core'.DS);
define('OW_DIR_INC', OW_DIR_ROOT.'ow_includes'.DS);
define('OW_DIR_LIB', OW_DIR_ROOT.'ow_libraries'.DS);
define('OW_DIR_UTIL', OW_DIR_ROOT.'ow_utilities'.DS);
define('OW_DIR_PLUGIN', OW_DIR_ROOT.'ow_plugins'.DS);
define('OW_DIR_THEME', OW_DIR_ROOT.'ow_themes'.DS);
define('OW_DIR_SYSTEM_PLUGIN', OW_DIR_ROOT.'ow_system_plugins'.DS);
define('OW_DIR_SMARTY', OW_DIR_ROOT.'ow_smarty'.DS);

define('OW_USE_CLOUDFILES', false);

if ( defined('OW_CRON') )
{
    define('OW_DEBUG_MODE', false);
    define('OW_DEV_MODE', false);
    define('OW_PROFILER_ENABLE', false);
}
else
{
    /**
    * Make changes in this block if you want to enable DEV mode and DEBUG mode
    */

    define('OW_DEBUG_MODE', false);
    define('OW_DEV_MODE', false);
    define('OW_PROFILER_ENABLE', false);
}
The * are mine
But this code doesn't work either !!
Would love to win this battle lol
The Forum post is edited by john wilkins Nov 21 '15
ross Team
ross Nov 22 '15
John, is this the file you get to replace the original one? 

I mean this part in particular: 

define('OW_DB_HOST', 'localhost');
define('OW_DB_PORT', null);
define('OW_DB_USER', 'root');
define('OW_DB_PASSWORD', '{$db_password}');
define('OW_DB_NAME', 'oxwall');

The Forum post is edited by ross Nov 22 '15
john wilkins
john wilkins Nov 24 '15
Ross ,sorry. I should have said installing using Installatron.
Yes that part is included
Copied and pasted the above into config.php , clicked on continue
and still get the error message

The Forum post is edited by john wilkins Nov 24 '15
ross Team
ross Nov 24 '15
Please do not use installotron, can you please try to install the software manually? : https://docs.oxwall.org/install:manual_installation And see if the issue persists. 
The Forum post is edited by ross Nov 24 '15
john wilkins
john wilkins Nov 25 '15
Will do
john wilkins
john wilkins Nov 30 '15
OK ross after a considerable struggle trying to install I now get this message - I have no idea , how to do this, need help please.

ow_includes/config.php file is incorrect. Update it with details provided below.

• Create a cron job that runs ow_cron/run.php once a minute. (?)



ross Team
ross Nov 30 '15
John, try to set 777 permission on the ow_includes/config.php file before installation and try to install again. 

If it does not work, please PM me access details to the server, I'll try to install the software for you and PM you back you admin login details. 

john wilkins
john wilkins Dec 1 '15
Cheers Ross , will try again and post result.
john wilkins
john wilkins Dec 1 '15
PM you
ross Team
ross Dec 1 '15
John, are you sure you sent correct details, the cpanel url gives page unaivailable notice. 
john wilkins
john wilkins Dec 2 '15
Ross , going to have to do a bit more investigating but not given up ... yet
Sillous Walliky
Sillous Walliky Dec 10 '15
I'm having the same issue, manual install. A summary of measures that failed so far:

chmod 744 or 755 to ow_includes/config.php. I get the "file is incorrect" error on clicking next. New salt is generated each time.

chmod 777 to ow_includes/config.php. The textarea where the php config should be disappears. As in john wilkins' #6.

Make absolutely sure that there are no trailing spaces or new lines. And then making sure that there are.

Adding ?> to ow_includes/config.php.
ross Team
ross Dec 13 '15
Sillous, PM me me access to the server cpanel, I will try to install the software for you. 
john wilkins
john wilkins Aug 10 '17
Ross , it has been a long time since this post started. Recently a friend helped do an installation
He wrote the following script but knows nothing about Oxwall.
I need something similar to run cron job in Oxwall
#!/bin/bash

# GoDaddy.sh v1.1 by Nazar78 @ TeaNazaR.com
###########################################
# Simple DDNS script to update GoDaddy's DNS. Just schedule every 5mins in crontab.
# With options to run scripts/programs/commands on update failure/success.
#
# Requirements:
# - curl CLI - On Debian, apt-get install curl
#
# History:
# v1.0 - 20160513 - 1st release.
# v1.1 - 20170130 - Improved compatibility.
#
# PS: Feel free to distribute but kindly retain the credits (-:
###########################################

# Begin settings
# Get the Production API key/secret from https://developer.godaddy.com/keys/.
# Ensure it's for "Production" as first time it's created for "Test".
Key=2ymy75kHvz_Q8psdaF87EFH67LRMKfcS5
Secret=JieWmnLBpHXL8XoLVeounm

# Domain to update.
Domain=theblackpigsdomains.org

# Advanced settings - change only if you know what you're doing :-)
# Record type, as seen in the DNS setup page, default A.
Type=A

# Record name, as seen in the DNS setup page, default @.
Name=@

# Time To Live in seconds, minimum default 600 (10mins).
# If your public IP seldom changes, set it to 3600 (1hr) or more for DNS servers cache performance.
TTL=600

# Writable path to last known Public IP record cached. Best to place in tmpfs.
CachedIP=/tmp/current_ip

# External URL to check for current Public IP, must contain only a single plain text IP.
# Default http://api.ipify.org.
CheckURL=http://api.ipify.org

# Optional scripts/programs/commands to execute on successful update. Leave blank to disable.
# This variable will be evaluated at runtime but will not be parsed for errors nor execution guaranteed.
# Take note of the single quotes. If it's a script, ensure it's executable i.e. chmod 755 ./script.
# Example: SuccessExec='/bin/echo "$(date): My public IP changed to ${PublicIP}!">>/var/log/GoDaddy.sh.log'
SuccessExec=''

# Optional scripts/programs/commands to execute on update failure. Leave blank to disable.
# This variable will be evaluated at runtime but will not be parsed for errors nor execution guaranteed.
# Take note of the single quotes. If it's a script, ensure it's executable i.e. chmod 755 ./script.
# Example: FailedExec='/some/path/something-went-wrong.sh ${Update} && /some/path/email-script.sh ${PublicIP}'
FailedExec=''
# End settings

Curl=$(which curl 2>/dev/null)
[ "${Curl}" = "" ] &&
echo "Error: Unable to find 'curl CLI'." && exit 1
[ -z "${Key}" ] || [ -z "${Secret}" ] &&
echo "Error: Requires API 'Key/Secret' value." && exit 1
[ -z "${Domain}" ] &&
echo "Error: Requires 'Domain' value." && exit 1
[ -z "${Type}" ] && Type=A
[ -z "${Name}" ] && Name=@
[ -z "${TTL}" ] && TTL=600
[ "${TTL}" -lt 600 ] && TTL=600
echo -n>>${CachedIP} 2>/dev/null
[ $? -ne 0 ] && echo "Error: Can't write to ${CachedIP}." && exit 1
[ -z "${CheckURL}" ] && CheckURL=http://api.ipify.org
echo -n "Checking current 'Public IP' from '${CheckURL}'..."
PublicIP=$(${Curl} -kLs ${CheckURL})
if [ $? -eq 0 ] && [[ "${PublicIP}" =~ [0-9]{1,3}\.[0-9]{1,3} ]];then
echo "${PublicIP}!"
else
echo "Fail! ${PublicIP}"
eval ${FailedExec}
exit 1
fi
if [ "$(cat ${CachedIP} 2>/dev/null)" != "${PublicIP}" ];then
echo -n "Checking '${Domain}' IP records from 'GoDaddy'..."
Check=$(${Curl} -kLsH"Authorization: sso-key ${Key}:${Secret}" \
-H"Content-type: application/json" \
https://api.godaddy.com/v1/domains/${Domain}/records/${Type}/${Name} \
2>/dev/null|sed -r 's/.+data":"(.+)","t.+/\1/g' 2>/dev/null)
if [ $? -eq 0 ] && [ "${Check}" = "${PublicIP}" ];then
echo -n ${Check}>${CachedIP}
echo -e "unchanged!\nCurrent 'Public IP' matches 'GoDaddy' records. No update required!"
else
echo -en "changed!\nUpdating '${Domain}'..."
Update=$(${Curl} -kLsXPUT -H"Authorization: sso-key ${Key}:${Secret}" \
-H"Content-type: application/json" \
https://api.godaddy.com/v1/domains/${Domain}/records/${Type}/${Name} \
-d "{\"data\":\"${PublicIP}\",\"ttl\":${TTL}}" 2>/dev/null)
if [ $? -eq 0 ] && [ "${Update}" = "{}" ];then
echo -n ${PublicIP}>${CachedIP}
echo "Success!"
eval ${SuccessExec}
else
echo "Fail! ${Update}"
eval ${FailedExec}
exit 1
fi
fi
else
echo "Current 'Public IP' matches 'Cached IP' recorded. No update required!"
fi
exit $?

kalvindarwan
kalvindarwan Dec 22 '23
We’ll load your car onto the truck without damaging the drivetrain or suspension, and get you where you need to go quickly and safely. Davie Pro Concrete Company
Post Minder
Post Minder Jul 24
Drug detox centers in Atlanta provide medically supervised detoxification services to help individuals safely withdraw from substances. Drug Detox Atlanta