Posts o[php+mysql+apache] USBWebserver
Post
Cancel

o[php+mysql+apache] USBWebserver

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

[http://www.usbwebserver.net](http://www.usbwebserver.net)
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 ![](https://www.pipiscrew.com/wp-content/uploads/2015/01/snap400.png "snap400")

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 :

1
2
//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);=""?>

when using a desktop application use 127.0.0.1


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

jsGRANT 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 jsdisplay_errors = Off

then view the errors by :


similar - http://www.mamp.info

origin - http://www.pipiscrew.com/?p=2293 phpmysqlapache-usbwebserver

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags