LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   help i've bungled php-nuke (https://www.linuxquestions.org/questions/linux-software-2/help-ive-bungled-php-nuke-72380/)

mike@wales 07-13-2003 03:50 PM

help i've bungled php-nuke
 
Hello i'm trying to follow a tutorial on installing php-nuke at
http://www.trylinuxsd.com but i've gone wrong somewhere. When i try crank nuke up by typing 127.0.0.1/nuke/ mozilla asks if i would like to open or save an application/x-php file.

Here's what i've done so far:

installed drkwizard

setup apache with web wizard tested it so that 127.0.0.1 brings up the apache page informing that its operational. I've also checked that apache's root files are located at /var/www/html.

Installed php-mod & php-mysql and php-nuke. Checked to see that the directory nuke was installed at /var/www/html/nuke/. I then followed the instructions to make sure both msql and apache were restarted, I even rebooted. According to the instructions typing in the computers address followed by /nuke/ is supposed to bring up the nuke index ie 127.0.0.1/nuke/. Instead it ask me if i want to save the php file.

I've probably made a mistake somewhere, could someone point it out for me.

thanks

green_dragon37 07-13-2003 03:55 PM

Do you have these lines in your httpd.conf?? If not, add them and restart apache.
Code:

LoadModule php4_module modules/libphp4.so

<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
</Files>

AddType application/x-httpd-php .php

Ian

mike@wales 07-14-2003 01:16 AM

I tried adding the ammendments to /etc/httpd/conf/httpd.conf but nothings changed. Interestingly there was only one line in httpd.conf to begin with:

Include conf/addon-modules/php.conf

php.conf = <IfModule mod_php4.c>

AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps

</IfModule>

When i start up apache from the terminal it loads httpd2. I thought i'd experiment by adding what you've given me to http2.conf. Here's the result

Starting httpd2: Syntax error on line 216 of /etc/httpd/conf/httpd2.conf:
Cannot load /etc/httpd/2.0/modules/libphp4.so into server: /etc/httpd/2.0/modules/libphp4.so: cannot open shared object file: No such file or directory

libphp4.so is located at /usr/lib/apache-extramodules So i tried putting a link in the modules directory so it would pick it up. When i try to load apache i get this:

Starting httpd2: Syntax error on line 216 of /etc/httpd/conf/httpd2.conf:
Cannot load /etc/httpd/2.0/modules/libphp4.so into server: /etc/httpd/2.0/modules/libphp4.so: undefined symbol: ap_block_alarms.

Anyway i've gone back to the beginning undoing what i've done but leaving the added lines that you've provided in httpd.conf.

mike@wales 07-14-2003 09:20 AM

I found the cause of the problem :). I have apache2 installed and the article is referring to apache. I had installed php_mod but not the apache2-mod_php package. What a silly mistake, shame on me :tisk:.

Thanks to green_dragon37 for taking the time to respond to my question. Cheers!


All times are GMT -5. The time now is 06:02 AM.