Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes... you could use the php-cli interface, or install your own webserver and php instance. (I recommend lighttpd for testing: it's lightweight and easy to use.)
i tried it, but is it possible to parse a html file of the php file (the php file has html code)? Because I want to learn php, but i don't want to upload each little chance in the file to test it
But i don't want to run a webserver just to test some php-files, but if there isn't an other i should do it that way.
Well, you usually run a whole lot of different sorts of services "just to surf the web etc.", so I don't see a problem installing a light webserver to ease up your testings, which you can start and stop as needed Apache is an option, but like it was mentioned, there are lighter (and easy-to-use) alternatives around. On Linux deploying a web server is rather easy, and if you intend to use it for your own purposes (like testing your php pages) only, you don't have as big trouble of hardening it security-wise as you would have if you wanted to expose the server to the whole world.
So I'll second the recommendation to install a light web server which is "php-enabled" so you can just create/edit your php files and test the pages in your favourite web browser, without needing to upload anything off your machine before it's ready.
If you are just doing development and do not have much experience with setting up a server, i would recommend justs installing xampp from apachefriends.org
It will install Apache, MySQL, and PHP with almost no input needed from you.
There are versions for both linux and windows, and there are also ad on packages for Perl, Tomcat.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.