Quantcast
Channel: PipisCrew Official Homepage
Viewing all articles
Browse latest Browse all 11347

[php+mysql+apache] USBWebserver

$
0
0

Is a combination of the popular webserver software: Apache, MySQL, Php and PhpMyAdmin. With USBWebserver it is possible to develop and show your php websites, everywhere and anytime The advantage of USBWebserver is, you can use it from USB of even CD

Features:

  • Show a offline version of your website
  • Anywhere and anytime develop php websites
  • No need for expensive hosting
  • Working at multiple locations at projects
  • A good test before putting your website online
On pc2 (pc name: sales2) I install it^, didnt parameterize anything, just share the root folder cross network.

On pc1 I browse at http://sales2:8080/  (by default listen to 8080) the predefined index.php appears! (aka root\index.php) 

On pc1 I browse at http://sales2:8080/phpmyadmin/ using the following default credentials

 


 

No connection could be made because
the target machine actively refused it.

by default mySQL port is 3306, USBServer mySQL uses 3307 so on PHP mySQL connection we have to define the port! aka :

//port
<?php
	$mysql_hostname = "localhost:3307";
	$mysql_user = "root";
	$mysql_password = "usbw";
	$mysql_database = "test_db";

	//setup a connection with mySQL
	$mysqli = new mysqli($mysql_hostname, $mysql_user, $mysql_password, $mysql_database);
?>

 


 

On pc1 we should access mySQL running on pc2, by default the root user is limited for local access only, grant permissions via

GRANT ALL ON *.* to root@'192.168.1.%' IDENTIFIED BY 'usbw';

source – http://stackoverflow.com/a/11743058
 


 

by default PHP echo, the errors, you can stop it, go to
D:\server\php\php.ini and set

display_errors = Off

then view the errors by :


Viewing all articles
Browse latest Browse all 11347

Trending Articles