SlackwareThis Forum is for the discussion of Slackware Linux.
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 tried to set up httpd to work with php module, so i've followed the rules from http://connie.slackware.com/~mrgobli...ware-lamp2.php and then i created the index.php file containing the phpinfo() function, and when i accessed it from the browser it just lists it and not interprets it through php module. I can't find the problem. Anyone can help? Thanks.
It really depends upon the module being used here NoStressHQ. Apache can parse PHP in several methods, the apachectl command will show us what apache currently has loaded for modules to help better point the OP in the right direction.
I think you're a couple steps ahead in telling them to go into the httpd.conf and start removing comments. mitusf let's get the output of what you currently have running before we start changing anything.
Ok, so it looks like your PHP is loaded correctly into Apache.
Let's look at your virtual host records and the options passed to it.
So by default your virtual host records should be in your /etc/httpd/httpd.conf or a similar config file. If you are using a control panel like plesk or cpanel this will be different.
The first thing to look at is the ExecCGI option as this can have some effect on the way PHP is processed.
So, since you are the one who setup the virtual host for the domains you should know where they are contained.
Can you please locate the virtual host record for the domain in question and let us know what you are passing to your "Options" directive.
If you are not sure what this is you can post the entire syntax of your virtual host.
If you are not sure where your virtual host record is at you can use the following command:
Code:
apachectl -t -D DUMP_VHOSTS
This will tell you what file and what line number it is contained in.
root@darkstar:/etc/httpd/extra# apachectl -t -D DUMP_VHOSTS
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
VirtualHost configuration:
Syntax OK
That's all it says, i've noticed a Virtual hosts entry in /etc/httpd/httpd.conf, like this:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.