SkillAgentSearch skills...

Phpup

Run a minimal apache instance for a given php script or directory

Install / Use

/learn @lox/Phpup
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Phpup

Often in development you'll want to run a php project without writing up a full apache config for it. This generates a minimal apache config and runs an apache instance in the foreground.

Tested under:

  • Ubuntu 12.04
  • Ubuntu 10.04
  • Mac OSX 10.7
  • Mac OSX 10.8

Installing

cd /usr/local/bin
wget https://raw.github.com/lox/phpup/master/phpup
chmod +x phpup

Alternately, if you want it as part of your project, install via composer.

Running

# Serving the present dir on default port
./phpup

# Serving a single file
./phpup -p 8000 helloworld.php

# Serving cwd directory with an .htaccess
./phpup -p 800 .

Related Skills

View on GitHub
GitHub Stars37
CategoryDevelopment
Updated5y ago
Forks5

Languages

PHP

Security Score

60/100

Audited on Sep 30, 2020

No findings