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.
So, what do we do from here! Plllease dont leave me in the dark. We're getting so close :P I must conquer this. Heheheheh
I ask you to do something already:
Quote:
Ok, run this command:
$ ls -l /usr/lib/httpd/modules
and post the output here.
The last thing I'm working on is the "mime_module" block, which I mentioned on page 3 (I think). First, I want to see if mime_module got built as a DSO and if it did, we'll need to get that loaded but I also wanna see what else got built as a DSO. I'm also pondering having you move the AddType directive for the PHP MIME type out of the mime_module block.
Now that we've established you've got Apache modules in another location, I'm starting to think you might be mixing Apache installations, and that's not good.
So, post the output I requested above and we'll go from there.
Actually, that looks pretty good. You can forget about /usr/local/apache2 for a moment since you've got Apache 2.2 installed in /usr (and spread out all over the place).
[root@cpe-24-195-24-133 ~]# find / -name httpd.conf
find: WARNING: Hard link count is wrong for /proc/5801/task: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
/home/mbenoit/httpd-2.2.0/docs/conf/httpd.conf
/usr/local/apache2/conf/httpd.conf
/usr/local/apache2/conf/original/httpd.conf
/etc/httpd/conf/httpd.conf
[root@cpe-24-195-24-133 ~]#
Great. Look in /etc/httpd/conf/httpd.conf for the following:
DocumentRoot (this contains the directory where you will need to put your test PHP script. Put your PHP script in this directory!)
LoadModule php5_module modules/libphp5.so (this is the PHP module)
ServerRoot (This will be good to have on GP)
Post that info here. After making note of those values, do this:
# /usr/local/apache2/bin/apachectl stop
# ps ax | grep http
(you should see either nothing or your grep command repeated)
# /usr/sbin/httpd &
# ps ax | grep http
(you should see several httpd entries, like before)
#
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
LoadModule php5_module modules/libphp5.so
ServerRoot
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.