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.
"/root" is NOT the document root of your web server. It's most likely "/var/www" or "/var/www/html". Have a look in your web server config. You have a web server running on localhost, do you?
You don't have a webserver running on your PC or it is not started. Then you would need PHP too. The .php file needs to be in the configured document root and must be owned by the user who runs the webserver (usually www-run on RH based distributions). Also, the picture you're referring to in your php file needs to be accessible by the www-run.
You really should have asked that question in the Newbie Forum. You don't have problems with the software itself. Please solve the problems above and post error messages when you have problems with any of the steps.
What do you want to achieve anyway? If it's only to see that picture, there are easier ways to do this...
Many thanks all.
I've done this
[root@CentOS65x64 html]# cp info3.php /srv/www
[root@CentOS65x64 html]# cp info3.php /srv/www/html
cp: accessing `/srv/www/html': Not a directory
[root@CentOS65x64 html]#
but I still have the problem to go to these
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.