homepage Welcome to WebmasterWorld Guest from 184.72.72.182
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP installation and running on local machine
installation php basic local
maninja




msg:4280180
 1:28 pm on Mar 11, 2011 (gmt 0)

Hi I just started with php been using c#, i got a solution i got from the internet and its saying i should install it on the server, how do i do this installation on my local machine, and on which server? help much appreciated.

here are the instructions

Easy Installation 3 Steps To Build Your Business Site:

1) Unzip the installation archive and upload to your server, upload

2) Run the install/install.php, and then follow the prompts to input data, complete the installation

3) Make sure the folder configs, data, attachment writable

 

rominosj




msg:4280192
 2:36 pm on Mar 11, 2011 (gmt 0)

Hello Maninja,

Welcome to Webmasterworld!

If you are on a Windows environment (XP, Vista, 7), you could find it easier to install wamp server which is a package that comes complete with Apache, Mysql, and PHP.

If you are on Linux, you have Xampp instead of Wamp.

Just Google either of those options.

maninja




msg:4280197
 2:55 pm on Mar 11, 2011 (gmt 0)

Hi rominosj

thank you for your response i have already done that and my php is running well, how do i go about installing a solution on to the server?
Thanks

rominosj




msg:4280215
 3:29 pm on Mar 11, 2011 (gmt 0)

Ok.

I am not sure what you mean by a "solution" by I will assume it is a php script.

If you have wamp, you should add it to the /wwww directory. Even better if you add a directory /www/solution/ or whatever your script is named.

That will not mean that the script will work if it runs with a db, so it is best if you tell us here what exactly it is that you are trying to run/install

maninja




msg:4280327
 6:17 pm on Mar 11, 2011 (gmt 0)

Hi

Im trying to test this b2b software i got from the website below. I'm not sure if it has a db or not.

[phpb2b.sourceforge.net...]

rominosj




msg:4280616
 8:22 am on Mar 12, 2011 (gmt 0)

Hi,

That scripts uses PHP and Mysql, so you will have need to find a config.php file or one with a similar name where you can add your database details.

Make sure you add everything in your zip to the www directory within wamp/www/your_script_directory/, go to your browser to the install.php page, and you should get an error message because you have not connected your db to your script, and that same error message should tell you in which file you should add your db details which are:

db_name, you need to create a db via phpmyadmin and use that name
db_user, usuall 'root' for wamp
server (if at home pc and wamp 'localhost')
Password, if at home leave it empty.

See ya!

ImperialCommand




msg:4281207
 3:06 am on Mar 14, 2011 (gmt 0)

Well. . .
Apache is the operating system
MySql is the database
What is your server software?
Personally, I'm running Expression Web 4 as my development server. What are you using?

maninja




msg:4281288
 8:45 am on Mar 14, 2011 (gmt 0)

i dunno i just downloaded xamp package

maninja




msg:4281321
 12:00 pm on Mar 14, 2011 (gmt 0)

hi @rominosj this is the error im getting, what do i do now

Warning: require(../data/phpb2b_version.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\install.php on line 25

Fatal error: require() [function.require]: Failed opening required '../data/phpb2b_version.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\install.php on line 25

rominosj




msg:4281567
 6:19 pm on Mar 14, 2011 (gmt 0)

Go to that install.php page, open it with your text editor (one that can show you the number of lines in the code) and post here on the forum the line 25.

You can try and post from line 15 to line 35 to have a better idea.

maninja




msg:4281629
 8:50 pm on Mar 14, 2011 (gmt 0)

hi i put asterisks* on line 25 thanks



session_start();
error_reporting(E_ALL & ~E_NOTICE);
@set_time_limit(1000);
@set_magic_quotes_runtime(0);
@ini_set('magic_quotes_sybase', 0);
if (isset($_GET['act'])) {
if($_GET['act'] == "phpinfo"){
die(phpinfo());
}
}
define('TIME', time());
define('MAGIC_QUOTES_GPC', get_magic_quotes_gpc());
define('PHPB2B_ROOT', substr(dirname(__FILE__), 0, -7));
define('JSMIN_AS_LIB', true); // prevents auto-run on include
********require '../data/phpb2b_version.php';*******
require '../configs/config.inc.php';
define('IN_PHPB2B',true);
if (!defined('DIRECTORY_SEPARATOR')) {
define('DIRECTORY_SEPARATOR','/');
}
define('DS', DIRECTORY_SEPARATOR);
if(!defined('LIB_PATH')) define('LIB_PATH',PHPB2B_ROOT.'libraries'.DS);
require '../libraries/global.func.php';
require '../libraries/func.sql.php';
require "../libraries/db_mysql.inc.php";
require "../libraries/json_config.php";
require "../libraries/core/object.php";
require "../libraries/file.class.php";
$app_lang = 'en';

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved