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.
hi, ok heres the thing, i installed fedora 2 as webserver with the extra bits for mysql php and apache.. anywho i did it the other day n forgot to add mysql.. but i started the service httpd and typed in localhost on a browser, which worked.. then tested it out with a basic php page. which also worked.. but now.. ive re-installed it with the xtras for mysql.. when i type localhost the default page comes up ok like before.. but as soon as i put in an index page of my own i get, FORBIDDEN you do not have permission etc..
so can anybody help me sort this? im not understandin as for 1.. im signed is as root user! 2 ive set up my basic account to have the user groups of apache. and still neither work. i would really appreciate sum help gettin this set up as i would like to get to work with my coding. so far ive wasted 32 hours approx tryin to set it all up, n im started to lose my cool. so if any1 came help me id reaaaaaaaally appreciate it.
Sounds like you are uploading a new default with incorrect permissions, probably permission for root. Try changing the owner to apache or nobody, or if that fails try chmod 777 index.html. This should rule out any permission probs...
also, ls -al in the web-root folder and check owners and groups are accessible...
but i have another problem lol.. i did a test page with the phpinfo() function which works fine..and mysql has been installed with it properly. ive set up a database n table with data for a test, but when i create the .php page it doesnt show anything. it doesnt come up with a weird error either. do u no what this could b n how i could solve it?.. once i get these to workin together ill b a happy bunny!
in your php.ini enable all the error functions and try the page again. this should hopefully print out an error message if there is actually an error. alternatively, once you get your blank page, try viewing the source and see what is there, that may help narrow things down a bit.
also have you set the options for apache to process a php page as per php install instructions. also you will need to restart the apache service after making mods to either php.ini or httpd.conf (service httpd restart)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.