No config file found...
Hi there,
I've got PHPDevShell installed on localhost, on Windows XP. PHP & MySQL working fine, as I run a dozen other applications from inside localhost.
PHPDevShell is located inside a sub-directory of localhost: http://
.htaccess is not yet switched on.
I can run the install.php script, and can login to the application backend.
As soon as I try to go to the front page, or direct to http://
No config file found for host "localhost" inside folder "C:\Documents and Settings\
Read the install instruction on creating a config file and installing the database.
Any ideas what I've done wrong?
Thanks,
Mark
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- PHPDevShell Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2009-10-06
- Last reply:
- 2009-10-06
TitanKing (titan-phpdevshell) said : | #1 |
Hi,
Did you rename both your config files removing the ".new"? The directory seems very odd where it is actually looking for the config file.
Could you also post the content of your host.config.php?
Regards,
Jason
Hi there,
Here's the directory listing of the config directory:
Directory of C:\Documents and Settings\
Documents\
06/10/2009 10:22 6,206 default.config.php
08/08/2009 10:04 1,351 host.config.php
08/08/2009 10:04 653 index.php
The host.config.php file looks like this (I've not changed it at all):
<?php
/**
* PHPDevShell is a RAD Framework aimed at developing administrative
applications.
*
* @package PHPDevShell
* @link http://
* @copyright Copyright (C) 2007 Jason Schoeman, All rights reserved.
* @license GNU/LGPL, see readme/
http://
* @author Jason Schoeman, Contact: titan [at] phpdevshell [dot] org.
*
* Copyright notice: See readme/notice
* By using PHPDevShell you agree to notice and license, if you dont agree
to this notice/license you are not allowed to use PHPDevShell.
*/
///////
// Setting hosts, allowing multiple installations from one directory. //
///////
/**
* Allows multiple sites to be installed from one core directory.
* Setup as $configuration[
[default]
* @global string $configuration[
* @author Jason Schoeman
*/
$configuration[
//$configuratio
//$configuratio
//$configuratio
?>
Thanks,
Mark
TitanKing (titan-phpdevshell) said : | #3 |
Thanks,
Why is the files in your "My Documents" folders? Try hosting them directly from your hosting folder. Are you running a service like XAMPP, you are you are running Apache 2 right?
Hi Jason,
That websites folder *is* my hosting folder. It's the localhost
document_root directory.
Yes, I'm running Xampp with Apache/2.2.11
Cheers,
Mark
TitanKing (titan-phpdevshell) said : | #5 |
Hi Mark,
We are going to try and replicate the error on a Windows Machine, perhaps this is a bug on Windows machines.
Will give you feedback as soon as we get this far. We have noted a / slash in the end of the config, I believe this might be the problem.
Regards,
Jason
Greg (gregfr) said : | #6 |
I'd say the message is self-explanatory: you don't have a config file for the host named "localhost". That means PHPDevShell is looking for a file named "localhost.
Greg
Thanks Greg,
I've just tried adding a localhost.
difference.
However, what *has* made a difference is switching browser. I use Firefox
for all my development work. That's where I was seeing the problem.
In Chrome however, the same url (http://
to the ReadMe page.
So, it's not the app. It's the browser. Very odd.
Thanks,
Mark
TitanKing (titan-phpdevshell) said : | #8 |
Very odd... remember in Windows .htaccess does not work, so dont switch on Friendly URL's in the config. This is the only thing I can think causes this behaviour.
Greg (gregfr) said : | #9 |
After some research, I'd say the trailing slash is problematic. I'm working on a fix right now.
What is this url "/configmanager"? In firefox, did you try "http://
Greg
Hi Greg, Jason,
All seems to be fixed now. I've cleared the Firefox cache and it works OK,
even with the trailing slash.
I think it must have been because I went to the install.php file before I
set up the config.php file. (That's just based on experience with other
webapps).
Sorry for wasting your time.
BTW. Jason, friendly URLs do work in Windows, just as long as you're running
Apache.
Thanks for all your help both of you.
Mark
Greg (gregfr) said : | #11 |
I made some changes on the BZR repos. I would be nice if you could test it on your windows machine, as we are all working on linux servers.
Hi Greg,
Sorry, you'll have to explain what you mean by BZR repos? Do you mean on the
Download file?
Mark
On Tue, Oct 6, 2009 at 3:55 PM, Greg <email address hidden>wrote:
> Your question #84954 on PHPDevShell changed:
> https:/
>
> Status: Open => Answered
>
> Greg proposed the following answer:
> I made some changes on the BZR repos. I would be nice if you could test
> it on your windows machine, as we are all working on linux servers.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https:/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you are a direct
> subscriber of the question.
>
Greg (gregfr) said : | #13 |
Hum I don't see any easy way to download a development state. Jason do you know any?
Can you help with this problem?
Provide an answer of your own, or ask Mark Berthelemy for more information if necessary.