Tag Info

Hot answers tagged

3

The switch is a capital S and you will need php 5.4 or above. php -S localhost:4444 WebContent/


2

Is this a hacking attempt? Yes. And if so, how does the hacker (human or bot) immediately know where my server is and when it came online? You've hit the nail on the head, you're online. Just the act of being online exposes you to being scanned for vulnerabilities. They don't know you or that you put up a server. They do know the address ranges being ...


2

Since you were manually running the php binary, either by using php or by using the php shebang at the top of the script, you'll need to find it's PID and kill it. You can use pkill -9 php or if pkill itsn't present you can use ps -efw | grep php | grep -v grep | awk '{print $2}' | xargs kill to kill all php processes. In addition if a process is making ...


1

If i understood correctly your Post, you ran a Script from PHP-CGI through your console that it probably something gone wrong and spammed API's Servers. So There are many possibilities that may caused this problem. First of all, when you are executing a PHP Script just buy typing "php scriptname.php" it waits for PHP Script to end and then is returning to ...


1

Did you type php --version or /Applications/XAMPP/xamppfiles/bin/php --version? And to which php.ini did you add that line? To /etc/php.ini or to /Applications/XAMPP/xamppfiles/etc/php.ini? The first path always references OS-X default PHP (which is PHP5.4), the later references XAMPPs PHP (which is PHP5.5 and has a different API then PHP5.4). So I ...


1

So it turns out SELinux was denying httpd exec rights on the php-cgi bin. Viewing the /var/log/audit/audit.log showed this. Running the following allows it: sudo chcon -t httpd_sys_script_exec_t /opt/php/5.5.15/bin/php-cgi


1

I too needed to upgrade PHP in WAMP recently. There are a handful of steps to properly do so. I covered them all and provided screenshots in the post linked to above. Hope it helps!


1

You cant print from JavaScript without user interaction - and this is a good thing: Think of a rogue website, that just prints and prints and prints, costing you lots of money for print supplies and effectively DOSing your printer.



Only top voted, non community-wiki answers of a minimum length are eligible