how do you run a php file on a chromebook?

I've been looking on YouTube and other places, i'm not sure how, this place is filled with smart people so i thought i would ask you guys!

5

2 Answers

This blog post lists some options:

  • Termux lets you install a Linux environment and has a PHP distribution (but it is highly restricted and you will probably run into plenty of frustrating limits)
  • You can enable Developer Mode and then press Ctrl-Alt-T to open a crosh shell, from which you get type shell to get a regular shell and from there either:
    • Install Linux and dual-boot
    • Create a chroot environment to develop in

Meanwhile OS 69 introduces Linux for Chromebook which should be an easier way to get a Linux environment.

… but that said, Chromebooks are generally low-powered machines that aren't ideal hardware for doing development work. I'd look at setting up a remote server and doing my dev work over SSH.

3

You need to install MAMP or XAMPP on your Chromebook. MAMP or XAMPP will turn your Chromebook into a web server capable of reading PHP.

EDITED:

Since you can't run MAMP or XAMPP on your Chromebook, then you should look into using a Cloud solution such as AWS or Google Cloud.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like