Hi, all. Ok, I know: I'm a version behind. :) So SuSE me!
Seriously, though, I'm trying to use the SuSE packages for PHP on my webserver, but I can't seem to get the bloody thing to work. I get the package installed alright, and it shows up when I start Apache. However, I can't get it to actually parse anything that's a .php file.
Any suggestions? I'm not currently able to access the archives, or I'd look there first.
Im no expert in apache but.. it took me a little while to figure out what to do to make apache process my php pages. Possibly your problem is that you need to tell apache which directories contain php/cgi etc ..... <IfModule mod_alias.c> Alias /icons/ /usr/local/httpd/icons/ Alias /php/ /home/http/php/ <Directory "/usr/local/httpd/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <Directory "/home/http/php/"> Options Indexes MultiViews +ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> The above is my php setup for a folder. Ive included the icons one because that was already in the /etc/httpd/httpd.conf file. I put the php in one folder as i could then be sure I was making changes to the write part of the httpd.conf file. You also need to tell apache that files ending in .php etc are to be handled by the php handler. This part should have been done automatically for you if you installed php using yast. FYI php3 files need to end in .php3 to be read by php3 and .php for php version 4. This is the way it is set up by yast. Another bit from my apache setup file. ---------------------- # # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # # For example, the PHP 3.x module (not part of the Apache distribution - see # http://www.php.net) will typically use: # <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps AddType application/x-httpd-php3 .phtml </IfModule> # # And for PHP 4.x, use: # <IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps </IfModule> ----------------------------------- I hope this is the kind of info you are looking for There are probably security issues in the above, but I havent spent time looking at that at the moment. dids On 23 Jul 2001 11:43:42 -0400, VANTASSLE, GEORDON M. (AIT) wrote:
Hi, all. Ok, I know: I'm a version behind. :) So SuSE me!
Seriously, though, I'm trying to use the SuSE packages for PHP on my webserver, but I can't seem to get the bloody thing to work. I get the package installed alright, and it shows up when I start Apache. However, I can't get it to actually parse anything that's a .php file.
Any suggestions? I'm not currently able to access the archives, or I'd look there first.
thanks, Geordon
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
participants (1)
-
dids