Reply
Problem installing a script locally using XAMPP
Old 12-01-2008, 07:32 AM Problem installing a script locally using XAMPP
Average Talker

Posts: 16
Name: Richard
Trades: 0
Hi all

I have a little problem that requires an answer really.

I am trying to install a script locally using XAMPP using the following url http://localhost/ads/Scripts/install.php , and the location of this files are C:\Downloads\xampp\htdocs\ads\Scripts however the script ask a few questions that I cannot figure out.

It states there are only 2 lines I need to worry about. Find both lines that look like this in the config:

PHP Code:
$siteurl "http://www.site.com";      
define('FULL_PATH'$_SERVER['DOCUMENT_ROOT']); //no ending slash. 
Depending on which script you have, the first line could vary somewhat. Some scripts use
PHP Code:
$siteurl "http://".$_SERVER['SERVER_NAME']; 
Or
define('SITE_URL'"http://".$_SERVER['SERVER_NAME']); 
Here is my config file that I need help editing correctly?
PHP Code:
@header("Cache-control: private");
     
/* Set your language...
                 Code: eng for english, nor for norwegian or other... */
                 
$language "eng";
     
$version "1.23"// version of classified script
     /* allows you to check over links subitted before they go live
       1 = live on submit
       2 = pending
     */
     
$SetPending '2';
                 
$siteurl "http://www.site.com/classifieds"// no ending slash
                  /* for IIS users you will need to add this manually.
                    eg: c:/Inet/www/path/script_name
                 or whatever your www folder is
                 */
     
$full_path_to_public_program $_SERVER['DOCUMENT_ROOT']."/classifieds";
     
$upload_dir "$full_path_to_public_program/pictures"// no ending slash 
It also give the following example on a “live” server, however mine is on a local server.
So lets say you want to upload it to a folder under root (public_html). We then edit those variables to be this:
PHP Code:
$siteurl "http://www.site.com/somefoldername"
define('FULL_PATH'$_SERVER['DOCUMENT_ROOT']."/somefoldername"); //no ending slash. 
If you have the other site url variable it is like this:
PHP Code:
$siteurl "http://".$_SERVER['SERVER_NAME']."/somefoldername"
It is very important to NOT change the _SERVER variable. Please keep it exactly like what is shown.

Can someone advise me on what I should put in the above?

Thanks

Last edited by Demon Templates; 12-01-2008 at 08:01 AM..
Demon Templates is offline
Reply With Quote
View Public Profile Visit Demon Templates's homepage!
 
 
When You Register, These Ads Go Away!
Old 12-01-2008, 09:50 AM Re: Problem installing a script locally using XAMPP
King Spam Talker

Posts: 1,412
Trades: 0
First move all you files to a directory under the htdocs folder. xampp/htdocs/folder/files.

Then change your config file to:
$siteurl = http://localhost/folder; Do leave the " " I broke this on purpose.


$full_path_to_public_program = $_SERVER['DOCUMENT_ROOT']."/folder";

Once you start Apache and mysql if neeeded you should be able to visit the site using the address localhost/folder and then you can invoke
localhost/folder/install.php
__________________
Colbyt
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem installing a script locally using XAMPP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.15037 seconds with 13 queries