apache not processing php pages on gentoo
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > apache not processing php pages on gentoo




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    apache not processing php pages on gentoo  
Wizumwalt@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-06 01:49 AM

Hey all,

I have an apache 2.0.55 w/ php 4.4 on gentoo. When I go to my url, all
it shows is a directory listing so I don't think I have php properly
installed because it doesn't seem to be processing my php pages.

In my /etc/apache2/httpd.conf file I have a line ...

Include /etc/apache2/modules.d/*.conf

and I have an /etc/apach2/modules.d/70_mod_php.conf file which
contains ...
-----
<IfDefine PHP4>

# Load the module first
<IfModule !sapi_apache2.c>
LoadModule php4_module    modules/libphp4.so
</IfModule>

# Set it to handle the files
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>

AddDirectoryIndex index.php index.phtml
</IfDefine>

-----

I also did an emerge on apache, php, mod_php. Anyone have an idea what
might be wrong?






[ Post a follow-up to this message ]



    Re: apache not processing php pages on gentoo  
mikedawg@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-06 02:10 AM

You're saying two different things here.  Is it not processing php, and
showing you the source of the php file, or is it showing a directory
listing of files in the directory?  If it is the first, the first thing
to check is file permissions.  If it is the latter, then do you have a
index.php or an index.phtml page in the directory root?






[ Post a follow-up to this message ]



    Re: apache not processing php pages on gentoo  
mikedawg@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-06 02:10 AM

Do you have an index.php or an index.phtml page in your directory?






[ Post a follow-up to this message ]



    Re: apache not processing php pages on gentoo  
Wizumwalt@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-06 02:10 AM

Yes, as it says, it's not processing php and it is showing the
directory listing. I have an index.php in my apache's htdocs dir. But
when I put the url in firefox, apache just shows a directory listing of
what's there and doesn't process the index.php page.






[ Post a follow-up to this message ]



    Re: apache not processing php pages on gentoo  
mikedawg@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 01:44 PM

record the current permissions on the directory and the files contained
in that directory, and do a *temporary* `chmod -R wwwuser:wwwgroup
htdocs/`

Change wwwuser to the user that httpd is running as, and change
wwwgroup to the group httpd is running as. then try and open the page
and see what happens.






[ Post a follow-up to this message ]



    Re: apache not processing php pages on gentoo  
Wizumwalt@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 01:44 PM

When I run apache, I start it as root and it's run as the user
'apache'. I have a user and group apache in my httpd.conf file.

The /var/www/localhost/htdocs dir has read permissions for everyone all
the way down.

To simplify things, I put an index.php script in my toplevel dir of
htdocs w/ the following in the body ...

<?php echo '<p>Hello World</p>'; ?>

... and I get a dialog in my browser titled "Opening index.php", and it
asked with what program I want to open the file.






[ Post a follow-up to this message ]



fwbieser is offline     Re: Re: apache not processing php pages on gentoo  
fwbieser


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for fwbieser Click here to Send fwbieser a Private Message Find more posts by fwbieser Add fwbieser to your buddy list
 
02-18-06 07:16 PM

quote:
Originally posted by Wizumwalt@gmail.com When I run apache, I start it as root and it's run as the user 'apache'. I have a user and group apache in my httpd.conf file. The /var/www/localhost/htdocs dir has read permissions for everyone all the way down. To simplify things, I put an index.php script in my toplevel dir of htdocs w/ the following in the body ... <?php echo '<p>Hello World</p>'; ?> .... and I get a dialog in my browser titled "Opening index.php", and it asked with what program I want to open the file.
I am seeing exactly the same thing. All seems to be where it is suppose to be, but it seems like apache is not processing the php. HELP!!!!




[ Post a follow-up to this message ]



fwbieser is offline     Re: Re: Re: apache not processing php pages on gentoo  
fwbieser


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for fwbieser Click here to Send fwbieser a Private Message Find more posts by fwbieser Add fwbieser to your buddy list
 
02-19-06 04:17 AM

quote:
Originally posted by fwbieser I am seeing exactly the same thing. All seems to be where it is suppose to be, but it s eems like apache is not processing the php. HELP!!!!
I finally realized I lost my "-D PHP4" entry in the /etc/conf.d/apache2 file 's APACHE_OPTS variable.




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:30 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register