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 just finished a full default install of slackware 9.1. The apache works right out of the box. I got mysql workiny by following the instructions on their website. I can't get php working. I tried uncommenting out the files at the end of the httpd.conf file. I also tried adding the lines directly to the httpd.conf file. Nothing works. What am i missing, what do I need to do to get php working with apache? Do I need to compile php from source (its installed by a package during the slack install right now) ?
alright... it works with me out of the box, so it should work for you..
make sure the files are called .php and make sure they are executable
chmod +x file.php
check in the conf files in /etc/apache if the configuration is not completely different than your previous distro or maybe the php package wasn't installed correctly... re-download them and reinstall them...
or give us some more info on error message and such
Nevermind my earlier post. I somehow got it working too, after struggling for the last few hours. All I did is restarting the daemons (#apachectl restart) after editing the httpd.conf (note: restarting the box itself wont fix the problem).
Yes, it will say that, because in /etc/apache/mod_php.conf, there is this line:
AddModule mod_php4.c
Now, that module has been added somewhere. Thus the message you receive. Once you uncommented that line, you have to restart apache by typing (as root):
Greetings! I have slackware linux 10 distrib, and i also have sm trublz in setting up a phpbb2 forum. Thats what in my httpd.conf:
Code:
# ==> mod_php configuration settings <==
#
# PACKAGES REQUIRED: openssl-solibs (A series) and/or openssl (N series),
# mysql (AP series), gmp (L series), and apache (N series)
#
Include /etc/apache/mod_php.conf
# ==> mod_ssl configuration settings <==
#
# PACKAGES REQUIRED: apache (N series) and openssl (N series)
#
Include /etc/apache/mod_ssl.conf
Thats what in mod_php.conf
Code:
#
# mod_php - PHP Hypertext Preprocessor module
#
# Load the PHP module:
LoadModule php4_module libexec/apache/libphp4.so
# Tell Apache to feed all *.php files through the PHP module:
AddType application/x-httpd-php .php
# This will display PHP files in colored syntax form. Use with caution.
#AddType application/x-httpd-php-source .phps
I'm tring to make php+apache working on my Slack 10! I've installed all as packages!
MySQL is installed too!
Apache is working ok and PHP code is processed!!
Code:
# ==> mod_php configuration settings <==
#
# PACKAGES REQUIRED: openssl-solibs (A series) and/or openssl (N series),
# mysql (AP series), gmp (L series), and apache (N series)
#
Include /etc/apache/mod_php.conf
# ==> mod_ssl configuration settings <==
#
# PACKAGES REQUIRED: apache (N series) and openssl (N series)
#
Include /etc/apache/mod_ssl.conf
If I try to uncomment last line (Include /etc/apache/mod_ssl.conf) Apache doesn't start 'cause can't find mod_ssl.conf!!!! SSL is installed but I have no mod_ssl.conf file....why????where is it???
Uncommenting only mod_php.conf Apache starts correctly and PHP code is executed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.