1
sud_crow
Using Xoops Locally - XSAS
  • 2004/4/11 1:33

  • sud_crow

  • Just popping in

  • Posts: 13

  • Since: 2004/3/18



I started my site online, and so i uploaded XOOPS and configured everything and started sending content, all online.

Now i have downloaded XSAS -Xoops Stand Alone Server- and i was thinking how can i make this thing to use my local copy of my "www" folder.

I tryed replacing the one that XSAS brings, the one that XSAS brings has www/xoops2/and-all-the-things-here, so i made a "xoops2" folder inside my "www" and moved everything inside it, then copied the same 3 files that where in the XSAS "www" to my new one, and replaced the XSAS one with mine.

This reported several errors in several lines, as is trying to use my online path (/home/myuser/www/) and of course, fails to find it

Any tips on how to make my online XOOPS work in XSAS in my PC? I want this because i dont have broadband and cant be online to do all the tests and things i want to try.

2
jurgis
Re: Using Xoops Locally - XSAS
  • 2004/4/11 9:17

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


I guess all config (and server-local path) is stored i mainfile.php (the one You had to make writable when installing xoops)

so just edit it

3
JMorris
Re: Using Xoops Locally - XSAS
  • 2004/4/11 18:48

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


First of all, I'd like to commend the XOOPS community for putting together a fantastic CMS. I've used several different CMSs and none can compare with the overal flexibility, security and extensibility of XOOPS. My hat's off to you.

Also, to the developers of XSAS, top job! That is one handy little program!

Now, about using XSAS to develop multiple sites locally.....

1. Create a folder on your hard drive called Localhost

2. Run the XSAS Setup program in that folder

3. Create your folders in the www root of XSAS to represent the different sites you will be developing (i.e.: Clients, Personal, etc.)

4. Extract a fresh distro of XOOPS in a temp folder

5. Copy the html folder from your XOOPS package into the various folders you created in step 3.

6. Rename the html folder to represent the particular site to be developed (i.e.: Client1, Site2, etc.)

7. Start the XSAS server on your local machine

8. Open PHPMyAdmin from the advanced tab of the XSAS GUI

9. Create a database that has the same name as the database used for your published website (the site on the Internet)

10. Open a browser and navigate to http://localhost and select the folder of the site you want to install (ex: http://localhost/clients/somecoweb/). This will begin the installation of XOOPS as usual.

11. Setup XOOPS as you normally would

12. Put the database name of the site you want to develop in the appropriate field, but put root as the database username with no password

13. Make sure you change the prefix for the tables to match the database you will import later (if applicable)

14. Complete your installation as usual

15. Export the database from your site that is on the Internet into a text file. (Be sure you export it with complete inserts and add 'drop table'. This will insure a proper import later.)

16. Open the text file in a text editor and do a find and replace for the url

(i.e.: Find the Internet url that the site would use online and replace it with the local url.
ex: Find: http://yourdomain.com/
Replace with: http://localhost/the_directory_where_you_installed_xoops/) Save your file.

**The copy and paste method works best for the aformentioned step.**

17. Open PHPMyAdmin in XSAS and import the database you just edited.

18. Now test your site out.

**If you will be developing multiple sites, I've found it quite convenient to keep a bookmark of http://localhost and I add a bookmark for each additional site when I begin development (i.e.: http://localhost/clients/client1, http://localhost/clients/client2, etc.)**

Now, after you've made all the changes you want to your site locally, you only have a few steps to follow to publish your work online.

19. You essentially repeat steps 15-18, but instead, you export from localhost's database, edit the sql file to change the url to the Internet url, and you import the database into the online SQL server.

**It's also important to note that, if you have added any additional files to your website while developing it locally (i.e.: themes, modules, hacks, etc.), you'll want to upload those files to your web server prior to updating your database.**

On another note. If you want to work on your website away from home, if you've setup your local server as I've outlined, you can just copy the entire Localhost folder onto a USB Pen Drive and take it with you. Then all you have to do is just execute XSAS directly from the pen drive on any Windows 98 and above system. Since XSAS always creates a virtual w: drive, this method works quite well for portable development and demonstration.

Phew! That was a lot of typing! Well, I hope this is helpful for someone. I know I find it quite useful on a daily basis.

Now, if I could only figure out how to add site names to the XSAS GUI like they did xoops2, I'd be set.

4
sud_crow
Re: Using Xoops Locally - XSAS
  • 2004/4/12 7:51

  • sud_crow

  • Just popping in

  • Posts: 13

  • Since: 2004/3/18


Phew! Thats was a lot of reading!

Thanks a lot! i really apreciate all the time and effort it took you make such a great guide!

I must say this is quite an impresive first post :)

I copied the instructions to a text file to follow them later.
I will post any updates as soons as i get some time to work this out, as its going to take more time than i thought.

Thanks again!

5
JMorris
Re: Using Xoops Locally - XSAS
  • 2004/4/12 19:51

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


No problem.

The steps make the process seem longer than it actually is. Once you've done it a couple times, it will become second nature.

Enjoy!

6
sud_crow
Re: Using Xoops Locally - XSAS
  • 2004/4/14 1:46

  • sud_crow

  • Just popping in

  • Posts: 13

  • Since: 2004/3/18



Yeah, it took less than 10 minutes to have everything running, or almost :) im having a couple of issues with the Shoutbox, but i really dont care as its working ok online.

7
W1ZeR
Re: Using Xoops Locally - XSAS
  • 2004/9/8 9:24

  • W1ZeR

  • Just popping in

  • Posts: 21

  • Since: 2004/8/20


You say 17. Open PHPMyAdmin in XSAS and import the database you just edited.

I can't see the import option? Am I being thick?

8
W1ZeR
Re: Using Xoops Locally - XSAS
  • 2004/9/8 10:44

  • W1ZeR

  • Just popping in

  • Posts: 21

  • Since: 2004/8/20


Ok I have solved that problem. But after importing the table successfully I now can't see my site localy. Just a blank white page??


Please help

9
JMorris
Re: Using Xoops Locally - XSAS
  • 2004/9/8 11:12

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Are you installing a fresh copy of XOOPS on XSAS then importing the database, or are you downloading your production site and importing your database?

If you're installing a fresh copy of XOOPS then importing the database, you'll have to dump all the tables in your local database before you import your production site's database. Note: Make sure you've done a find and replace on the production site's sql file to change the url to http://localhost.

Just walk through the steps slowly and carefully. It may take a little practice, but this method works with all XOOPS 2.x versions.

10
W1ZeR
Re: Using Xoops Locally - XSAS
  • 2004/9/9 8:13

  • W1ZeR

  • Just popping in

  • Posts: 21

  • Since: 2004/8/20


i'm actually using apache, but assume the concept is the same. I have a live site on the internet. I have installed a fresh copy of XOOPS and then downloaded all the files into the webroot folder. Then I went to the internet version of phpMyAdmin and exported the database, then imported it to the local phpMyAdmin. I searched for my site url in the exported .sql file but there was only reference to it except email addresses. After importing locally I just get a blank white screen on http://localhost ... before I imported the database and downloaded the files I could see the default install.

What do you mean by dump all my tables?

I am lost


Login

Who's Online

191 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits