RE: [PHP] Problems with new PHP install
[snip] duh. [/snip] You have now officially obtained a lifetime membership to the club. Your t-shirt should arrive in the mail soon. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with new PHP install
Chris Boget wrote: Step 15 of the php installation (as listed in the link in my OP) has you add the following to the httpd.conf: Ok, color me retarded. That happens when Jay gets involved. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with new PHP install
Step 15 of the php installation (as listed in the link in my OP) has you add the following to the httpd.conf: Ok, color me retarded. Pretty please. :) It turns out I modified the wrong httpd.conf file. duh. Sorry about that. Everyone can move along. Nothing to see here but some blathering idiot. :p hehehe thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems with new PHP install
[snip] Step 15 of the php installation (as listed in the link in my OP) has you add the following to the httpd.conf: AddType application/x-httpd-php .php .phtml I also went ahead and added the following as well AddType application/x-httpd-php-source .phps The filename of my test script, though, is php_test.php and not php_test.phps so php should be parsing it.. [/snip] Have you enabled a version of php.ini? It is not necessary...just a thought. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with new PHP install
And that is exactly what is getting output by the browser. The isn't even getting interpreted as a break...? Is there a line like this in your httpd.conf...? AddType application/x-httpd-php .php [snip] Yeah, looks like you need the AddType entry. Apache doesn't know what *.php is, so it's just serving it up as plain text. Step 15 of the php installation (as listed in the link in my OP) has you add the following to the httpd.conf: AddType application/x-httpd-php .php .phtml I also went ahead and added the following as well AddType application/x-httpd-php-source .phps The filename of my test script, though, is php_test.php and not php_test.phps so php should be parsing it.. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with new PHP install
Chris Boget wrote: My test script looks like this: echo "PHP Works!!"; And that is exactly what is getting output by the browser. The isn't even getting interpreted as a break...? Yeah, looks like you need the AddType entry. Apache doesn't know what *.php is, so it's just serving it up as plain text. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with new PHP install
Chris Boget wrote: Since I was having so much difficulty getting PHP (with libxml2) installed on RH9, I decided to take the advice given by several people and use Fedora Core 4 instead, which I get installed w/o difficulty. So next is Apache/PHP and I download Apache version 2.0.54 and PHP version 5.0.5. Following the instructions on the PHP site (http://www.php.net/manual/en/install.unix.apache2.php) exactly, I'm able to get both configured and installed w/o difficulty. I first test Apache by going to localhost to see if the server is running. It is. Then I modify the httpd.conf file as instructed at the above page by adding the LoadModule and AddType and then create a 'hello world' php script to make sure php is working. The problem I'm getting is when I access the page, it's showing me the actual php code and not the parsed result. I looked in the modules directory to see if the libphp5.so file is there and it is. I did notice something odd, though. In the httpd.conf file there are a large number of LoadModule lines for modules that are not in the modules directory. Could that be causing my problem? In any case, if someone could give me some pointers are to where I should concentrate my attentions in order to resolve this problem, I would be very appreciative! Is there a line like this in your httpd.conf...? AddType application/x-httpd-php .php (Don't forget to restart Apache ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with new PHP install
[snip] Then I modify the httpd.conf file as instructed at the above page by adding the LoadModule and AddType and then create a 'hello world' php script to make sure php is working. [/snip] Did you restart the Apache server after making the changes to httpd.conf ? I know it is basic, I just have to ask. Fair enough. :) Yes, I did. Step 8 (on the included link) of the PHP installation has you start Apache and then stop it again. It was during this step that I tested to make sure Apache was working by just going to http://localhost. Then step 16 has you start Apache again. The only slightly different thing I did that wasn't part of the installation was my configure of php. It looked like this: ./configure \ --enable-force-cgi-redirect \ --without-pear \ --enable-magic-quotes \ --enable-bcmath \ --enable-calendar \ --with-mysql=/usr/local/mysql \ --enable-ftp \ --enable-mailparse \ --with-mcrypt \ --enable-trans-sid \ --disable-short-tags \ --with-zlib-dir=/usr/lib \ --enable-wddx \ --with-xml \ --with-dom=/usr \ --with-xslt-sablot \ --with-expat-dir=/usr \ --with-dom-xslt=/usr \ --with-sablot-js=/usr \ --enable-xslt \ --with-apxs2=/usr/local/apache2/bin/apxs And that configured with no error (at least, as far as I could tell). My test script looks like this: echo "PHP Works!!"; And that is exactly what is getting output by the browser. The isn't even getting interpreted as a break...? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems with new PHP install
[snip] Then I modify the httpd.conf file as instructed at the above page by adding the LoadModule and AddType and then create a 'hello world' php script to make sure php is working. [/snip] Did you restart the Apache server after making the changes to httpd.conf ? I know it is basic, I just have to ask. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php