Codeigniter Halogy cms installation setup - php

i have downloaded a halogy and after extracting i put the extract folder into my htdocs folder in my localhost ..i successfully setup the database but i am getting the error after visiting the url from the browser
this is the error
Slight problem...
This domain has not been configured properly.
my folder name after extracting
jesseorndorff-Halogy-35c4050
url
localhost/jesseorndorff-Halogy-35c4050

Here is a step by step solution
First rename your folder name with some thing else just for testing.
I changed jesseorndorff-Halogy-35c4050 to halogy_test.
Next cut system folder from halogy and paste it in the upper level. Now the structure will be like this.
localhost/
halogy_test/
halogy/
system/
index.php
Next go to database.php and set it up.
Next go to halogy/application/config/config.php and change
$config['index_page'] = '';
to
$config['index_page'] = 'index.php'; on line no 29.
Now go to application/config/site_config.php and change
$config['staticPath'] = '/static'
to
$config['staticPath'] = '/halogy_test/static';
The final step go to halogy_test/static/js/jquery.flot.init.js and change
'/admin/stats/' to stats/ on line no 2!
Done it
Vote up if successfull.

If you still have this issue after following the answer from #raheel-shan, then you'll want to take a look at the database you're using for your install of Halogy.
There is a table "ha_sites" that stores your sites path in the column "siteDomain". So even if you corrected the path to your site everywhere in your code, you'll still run into issues if the path in "ha_sites.siteDomain" isn't correct.
To fix this, do one of the following:
(easiest) Delete all tables, and re-import the sql dump.
or
Truncate the table "ha_sites".
or
Fix the path in "ha_sites.siteDomain".

Related

Joomla 3.x Administrator Error : 0 Cannot write to log

I wrote a joomla 3.x simple web site on my local machine and it worked fine. I deployed this to 1&1.com and the front end works fine but the control panel throws an error each time I try to log in saying "0: cannot write to log".
I have tried relative and absolute paths to the log folder in the $log_path parameter of the configuration.php and changed the permissions to the folder and files to all sorts of combinations and still I get the same error? I have created a new log folder and pointed the to that and still no joy?
has anyone come across this error using 1&1.com? I see some suggestions that 1&1.com are really bad with joomla support and I may be best trying another host? I am in 30 day money back guarantee so that is going to be my next move.
Cheers
Alex
First check this link https://joomla.stackexchange.com/questions/4673/error-0-cannot-open-file-for-writing-log-while-updating and if everything is fine and still this doesnt help then proceed to next step
Step:1 get the base path by writing this code to a file and uploading it through ftp
<?php
$basepath = getcwd();
echo "Your base Path is: ";
echo $basepath;
?>
When you run that file suppose it is named base.php then go to http://yoursite.com/base.php and get your base path.
Step:2 Create a new log and tmp folder
Now as You have got the base path, create a folder in your main joomla installation and name it newlog with permission 755.
Step:3 Change path in GLobal Configuration
In your global configuration give the base path appending the new folder path. Suppose you get basepath as /var/www/joomla then uou give the log path as
/var/www/joomla/newlog
I imagine you might have asked 1&1 already, it may be something they know very well.
Anyway make sure you have the correct configuration paths (absolute!) in the configuration.php and that the folder and its files are writable by the user who runs the website instance.
Also clear /cache and /administrator/cache for good measure, as they may have cached some non-authenticated results.

Set-up include path for menu navigation so page links know where the site root is located in order to not break links

I have not been successful getting my remote server environment to behave like my testing server environment -nor visa versa- in regard to my navigations "include code" that I've included on my various pages (these pages reside inside other folders in the site).
My Menu shows up fine in the pages calling the include to this page this way...
<?php include("../includes/navigation.php"); ?>
But my MAMP testing server seems to want me to also add the root folder in addition to my provided link in each of the menu items, so I altered the link by adding my site root folder, like this...
<a href="/mysite/courses/list.php"
and navigation menu seemed to work, going inside one folder and back out into another (then I realized it was no good when I tested it on my remote server).
I got bad/broken links.
So I changed to something like this for the remote server...
<a href="/courses/list.php"
Links seem to work on the remote, but I needed to fix it so that the code I go with works on both the testing and remote servers...
So, I'm trying to ~~understand/control/and fix~~ my include_once code to provide proper menu navigation for all my various pages whether I am on my testing server or on my remote server and wether I am in one folder or another. Is this possible? And am I approaching this the right way?
(Currently, I have my root folder with an index page, then inside that, I have 3 folders with misc pages inside them, one of these folders (includes) holds my navigation.php page)
I have been searching for how to get my pages (located in various folders) to recognize where they were, in relation to the sites root folder. As a result of searching I concluded to insert this code into the list.php page in my "courses folder"...
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/includes/navigation.php";
include_once($path);
?>
on one of my pages and then tested it in my testing server (MAMP) - but now the menu does not even show up...I also tried...
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "../includes/navigation.php";
include_once($path);
?>
So I am seeking help in understanding - what am I missing in my understanding/execution to get the pages now to show the navigation menu as well as know where it is in relation to the root.
I would welcome any comments to help me understand how to connect the dots to solve this problem. As I read in another post saying to someone else there was a problem with where their site root folder was pointing (that it was pointing to the server root folder, not the site root folder)-
How would I know if this is what my problem is? How do you check this?
I had this same exact problem going on. What I did to solve it was instead of simply using "..includes/nav.php" I used an absolute path to the file. It should look something like this:
"var/www/html/includes/nav.php"
This specifies the exact route to the file. You can find this through your hosting file management page. Log into the file management, find the nav file within the folders, and use the exact url of the file.

set files path in zend framework

im updating a project , the problem is that all images src and header links and etc have path like this:
src="/media/js/hoverIntent.js"
and i cant see every thing ok on localhost
when i delete the first '/' in src every thing is ok. but the project is very big and i cant delete one by one ,
how can i solve this problem.
Use mod_rewrite to point the failing URLs to the correct ones.
As example: your application uses URLs like /media/js/hoverIntent.js but everytime the URL begins with /media and you have the data stored on your dev server in /myapp/media/.... In this case you can solve it by placing following .htaccess in your root folder:
RewriteEngine On
RewriteRule ^media/(.*)$ /myapp/media/$1
Sure, you need to adjust the target URL of your files on localhost

put config in secure place, can not link the files

Am trying to use a config file for a database and rating script but the problem is the config file is in this directory :
website.com/include/config.php aka websitename/include/config.php
The rating script needs the config and is accessed like this:
include_once("config.php");
I want the config to be in:
"/files/website/"
A directory level up from the website root folder.
I have been trying with:
"../files/website/" and other variations but can not figure out how to link them.
I have managed to put one config file and access it, but with this ajax rating script the only way for it to work is to have the config in the /include/ folder next to:
rating_process.php - has this link : include("inc/config.php");
rating_functions.php - has this link : include_once("config.php");
rating_total_functions.php - has this link : include("inc/config.php");
Hope i've explained myself here
Right, looking at my hosting now:
$_SERVER['DOCUMENT_ROOT']; outputs this: /foldy/homepages/11/username/htdocs/webbysite
My index file is located at: /foldy/homepages/11/username/htdocs/webbysite/index.php
The included rating script is located in: /foldy/homepages/11/username/htdocs/webbysite/include/
I want the config to be in /foldy/homepages/11/username/htdocs/secretfiles/config.php
Am trying to some how go out of: webbysite folder and then into secretfiles (sibling folders)
I have tried adding ../ and so on, but am missing something obviously :(
Try
$configLocation = $_SERVER['DOCUMENT_ROOT'].'../files/website/config.php';
include_once($configLocation)
but the problem is the config file is in this directory
it is not a problem at all.
just keep it as is.
Concerning your particular problem, your problem is that you don't know where you want to put your file. /files/website/ is not likely a right path and it is apparently not one level high from webroot.
So, first of all make your mind about the right path to the directory and it's relative position to the web root
if you are concerned about security ( because your config file contains the db details ) i would place the db config file outside the site root folder and then require_once('../../dbConfig.php') from the script that's creating xml or json for your ajax
more exactly ...
your site folder might be here: /var/www/html
set a virtual host (done differently on Linux and Windows) and point your domain to a sub folder inside /html so that the new path to the site root is /var/www/html/site.
then place your config file in /var/www/html and call it from your scripts inside your /site folder using require_once('../dbConfig.php)`.
your db details are outside the site folder

Getting error * JFolder::create: Path not in open_basedir paths * Warning! Failed to move file

When i want to installed zip file of new component or module.i am getting below error
* JFolder::create: Infinite loop detected
* Warning! Failed to move file.
how can i resolved this.
This is due to you move a joomla which is working from one server or local pc to a web server.
Follow the steps below to fix it.
Goto your Hosting panel >> File Manager >> Select your Domain/Sub-Domain and then open the configuration.php file.
Find var $log_path, it will contain the Directory path of your Old Server. Just replace the whole line with the code var $log_path = './logs';
Find var $tmp_path, it will also have the Directory path of your Old Server. Replace the whole line with the code var $tmp_path = './tmp';
Check that you don't need to extract the file first before installing.
Check your permissions on /tmp and /cache along with /languages and /component /modules
Give some credit back
I came across another solution:
Comment the line of code $obd = ini_get('open_basedir');
located at...Joomla Root/libraries/joomla/filesystem/folder.php
i.e //$obd = ini_get('open_basedir');
In case it does not work you need to change your Path to Log Folder and temp folder
On you back-end, administrator....
Click System drop down menu - click global configuration
Select the System tab locate Path to Log Folder* and input http://yourdomain.com/logs/
Select the Server tab locate Path to Temp Folder and input http://yourdomain.com/tmp/
Save and try to install extensions again...
Hope it works......

Categories