Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
then browse to it. If you see code, PHP is either not installed or not enabled. If you see a PHP info page, it'll tell you all about what it was built with.
Assuming of course that you have shell access to the server.
And if you did, why not run a command that will give you something useful. The original poster doesn't mention their distro, but if it's rpm based, this'll do it:
rpm -qa | grep -i php
where locate php on a FC2 box that does NOT have php installed returns 85 entries (not counting /home/(.*)).
First, thank you all for your help and responses. I'm actually using Scientic Linux.
I do have shell access. When I used the rpm -qa | grep -i php command, I got the info I needed telling me that PHP is installed. I wanted to try locate php just for the heck of it but I got an error telling me that some kind of database is not installed. I can get the exact message if you guys need it.
Now, I'm not sure -- as I'm a newbie -- what it means to add PHP to Apache. I also don't know how to do it or check if it is already added. Also the GD2Lib for PHP. How do I check if that's installed?
by adding php to apache... (assuming you are using the apache webserver, if not please advise) This means to insert a small string into the apache "httpd.conf" file to load the PHP modules so it can recognize and interperet PHP files...
The string is different depending on the installed version of PHP though...
Hi,
I have been following this thread (which seems to have been dead for some time)...But I too need to check if php is working. Im not quite sure how to add the phpinfo() script to my server. Is that apache?
Im new to Linux-- working on Ubuntu 11.10. Any help on testing php for someone with little experience on linux would be much appreciated
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.