Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP installation and running on local machine

installation php basic local



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


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

10+ Year Member

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.


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?


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

10+ Year Member


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


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


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



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

10+ Year Member


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!


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

5+ Year Member

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?


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

i dunno i just downloaded xamp package


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


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

10+ Year Member

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.


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

hi i put asterisks* on line 25 thanks

error_reporting(E_ALL & ~E_NOTICE);
@ini_set('magic_quotes_sybase', 0);
if (isset($_GET['act'])) {
if($_GET['act'] == "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';
if (!defined('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';

Featured Threads

Hot Threads This Week

Hot Threads This Month