PDA

View Full Version : File Locations?


NGE
12-12-2005, 04:11 PM
Hello,

I uploaded all the files to my websites root directory. Everything works fine. I created a new folder ( For Example mydomain.com/anotherfolder ) and I dragged all the phpfox files into the "anotherfolder" and now when i try to access it, nothing shows up. Is there a way to fix this? I wanted to move it to another directory so I can put a coming soon page while I configure all the settings correctly before I publicly display it. Do you have any idea what I should do about this situation?

Thanks.

natio :: phpFox
12-12-2005, 04:45 PM
Hey,

Yeah if you installed the script and then move it to another folder, you will have to edit the config files direct from the source.

There are 2 files that need to be edited.

1. Open "/inc/config/connect.inc"
This is the file that connects all files on the site.
Look for this variable:
Content visible to registered users only.
It should show something like:
Content visible to registered users only.
depending on your host setup. So now with that open simply change that variable to point to the new root directory. Like if you moved everything into a folder called "test", then it would look like this:
Content visible to registered users only.
Note: do not add the trailing slash.

2. Now open up: "inc/config/site_config.php"
This part might be a bit tricky, but shouldnt be to hard.
Look for this:
Content visible to registered users only.
The above var. are just an example.
So for the first variable "root_dir", simply change that to the directory you just added before in the "connect.inc" file.
In the "site_dir_1" add the name of the folder. So for example if the folder is called "test" then you would add:
Content visible to registered users only.
In the "site_dir_2" is where you can add the final trailing slash.
So in the end it should look something like this with the new folder called test:
Content visible to registered users only.

With that edited it should now work just fine. If you run accross any prbs just post em.

NGE
12-13-2005, 07:48 PM
Hi Mike,

Alright I changed everything you posted. After upadting the code, it came out with some errors. Such as, loading time became slower, images didnt load, etc.

I think my problem is fixed after I added a slash before test in the code like this
Content visible to registered users only.
Please let me know if that is correct. So far I dont see any problems yet. Thanks.

Another Problem I recently am having is now I cant login with admin/test or admin/pass for the username and password. Once I moved the files, this happened. Please let me know if you have any idea how to fix this.

natio :: phpFox
12-14-2005, 12:53 PM
Hello,

Oh sorry, Yes! thats correct. I missed the slash before the test. :D
With that setup you it should be working just fine now.

Regarding the password and username, it should have no affect where the script is placed cause it connects to the same Mysql database.
The default login is:
Username: admin
Password: test

once you have logged in and you want to access the admin panel then you us the password: pass

If for some reason that doenst work, you will have to login to your Hosts Control Panel and hopefully that have something like a phpmyadmin and from there you can find the "user" database and see what the password might be.

To find the correct admin password you can open up "/inc/config/site_config.php" and at the bottom you should find:
Content visible to registered users only.
which is where the main admin password is located.

NGE
12-14-2005, 04:51 PM
Hi Mike,

I looked in the site_config.php file, the password it says is pass. So what I did was I tried Username: admin Password: test that didnt work. Also I tried Username: admin Password: pass thats also didnt let me login in. Have any idea what might be causeing this. I know I never changed any settings or passwords yet. I just moved all the files to a diffrent directory.

Thanks.

natio :: phpFox
12-15-2005, 12:44 AM
hhmm that is odd, it could then be that cookie are not being set once your moved over the files to the new folder, but this is just a guess.

First to find the password you can create a test file.
Call it test.php and place it in your new root directory where you have the index.php, site_license.php etc....

and the place this in it:
Content visible to registered users only.


run that script and that should now list all the Username and Passwords for all users. This is just to confirm if the password and username your are using is correct. If it is then it might be a cookie issue cause of the new folder. anyways give this a shoot and get back to me with the results.
:)

NGE
12-23-2005, 03:40 AM
Hi Mike,

I finally got a chance to test the php username and password script. It showed the username nad password. I typed exaclty what it says and it wont let me login? Im not to sure why its doing that.

natio :: phpFox
12-23-2005, 09:00 PM
Hello,

hhmm that is weird, and it all worked before the move of the folder?
Can you try to create a new account and then try to login with that account and see how that works.