Skip to main content

This is a small web server to serve PHP/Web files

Project description

webserver

This is simple webserver that uses PHP development Environments.
This helps you to use local-webserver for your developement environment.
This feature comes along with the PHP you have on you computer.
This program just help to access it with single command.
This is a Command-Line Tool


Installation

(Note: To use this module, you must have PHP installed in your device which you can download from here
add it in your system path variable)
You can find .whl(wheel) file in dist folder.
Navigate to dist folder and hit the following command

python -m pip install wheel_file_name ; try pip3 if pip didn't work.  

Warning

For Python version above or equals to 3.10, only version 3 (webserver-1.0.3-py3-none-any.whl) will work.
I don't know but I find it hard to install pathlib in these versions of python which is essential package for webserver.
However, version 3 (webserver) uses pathlib2 so it is good to go.

There is no difference between v2 and v3 otherthan pathlib packages

Usages

  1. Basic Command
    server --help

This displayes all the options

  1. Starting Server
    server

This start server on port 8000 URL: http://localhost:8000

  1. Passing Options host: your hostname. Default localhost or 127.0.0.1
    port your port. Default 8000
    server --host hostname --port port_number # These are optional parameter. These are not manditory

If --update is passed along with the above flags, Host and Port will be added to settings.json

  1. Opening PHPMYADMIN
    server --admin

This opens phpmyadmin.
cannot use this with --admin
It opens PhpMyAdmin under the port and host found in settings.json in installed folder or
The PORT and HOST passed with flag --port and --host previously.
To Access and edit this file, --set can be use as a flag.

    server --set

More

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sachin@webserver-2.0.6.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sachin_webserver-2.0.6-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file sachin@webserver-2.0.6.tar.gz.

File metadata

  • Download URL: sachin@webserver-2.0.6.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for sachin@webserver-2.0.6.tar.gz
Algorithm Hash digest
SHA256 49a0c3bf7f8eca552677925f5cb5076c9711bd0f13f542ead85bf0515726b7a7
MD5 96d4ab736e32ede5934b5bc44b6edd47
BLAKE2b-256 30987aae977f603126fc80cb7bb4033f37080b2ca37aa1bcc4d8d43fbdba30d7

See more details on using hashes here.

File details

Details for the file sachin_webserver-2.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for sachin_webserver-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 38121965f1c91abd4db8613c76910b7e320c02c5fd9ba3e2898fa5d31f90675b
MD5 5824680b8d8f531827e5e07651043df7
BLAKE2b-256 2d14996a867b406295ea17dcb0a33f3812769101a3a3b711ae0eee0b1f28d4ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page