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.
I really need your help to end my days of frustration.
I installed Apache2, PHP and Mysql on my Linux box. After configuring my http.conf such as adding lines below:
LoadModule php4_module modules/libphp4.so
#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>
Unfortunately, apache2 can't seem to parse my php scripts.
I set up a local linux server for web development, and it sets to a default name localhost which is also used in httpd.conf file as the server.
My documentroot is pointed to "/var/www/html/htdocs/" and that's where I put all my files. I have been typing for example /var/www/html/htdocs/index.php to view the page I created. Is this correct or should I somehow include localhost in the address bar?
If you type /var/www/html/docs/file.php You get the file directly, without any interferance from apache. So, youll have to use an url to get apache in between. So something like: http://localhost/docs/file.php would be more appropriate.
Thank you so much for your reply. By doing so, here is an error message I got:
##
Object no found!
The request URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
If your documentroot in httpd.conf is set as /var/www/html, then thats where the root begins. So, http://localhost/file points to /file in the document root, so in your filesystem to /var/www/html/file. Get it? (:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.