How Run Php on Kali Linux?
Contents

How install php curl in Kali Linux?

How install php curl Linux?

  1. First Install CURL by typing sudo apt-get install curl.
  2. Then Restart Apache by typing sudo service apache2 restart.
  3. Then Install PHP5 CURL by typing sudo apt-get install php5-curl.
  4. will prompt to install… type y or yes!
  5. Then Restart Apache by typing sudo service apache2 restart Done!

How do I open a php file in Linux?

Testing PHP:

  1. Open a terminal and type this command: ‘ gksudo gedit /var/www/testing. php ‘ (gedit being the default text editor, others should work too)
  2. Enter this text in the file and save it: <? php phpinfo(); ?>
  3. Restart the php server using this command: ‘ sudo /etc/init. d/apache2 restart ‘
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest