PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Jul 23, 2019 11:41 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Aug 01, 2014 12:32 pm 
Offline
Forum Newbie

Joined: Fri Aug 01, 2014 12:20 pm
Posts: 1
Dear All,

Operating System: RedHat Linux 7

I wanted to configure php for oracle http server.
I followed the instructions given in the below link:

http://www.oracle.com/technetwork/artic ... 94096.html

Based on the above link, i created php.conf file as given below to forward all requests to php-fpm for processing php files:


Syntax: [ Download ] [ Hide ]

LoadModule fastcgi_module "/chroot/home/ec-user/Oracle/Middleware/Oracle_Home/ohs/modules/mod_fastcgi.so"

<IfModule mod_fastcgi.c>

<VirtualHost *:80>

ServerName fpmtest.localhost
DocumentRoot /var/www/html

FastCGIExternalServer /var/www/html/php-fpm -host 127.0.0.1:9000

    <Directory /var/www/html>
        Order allow,deny
        Allow from all
        <FilesMatch \.php$>
            SetHandler application/x-httpd-fastphp5
        </FilesMatch>
        Action application/x-httpd-fastphp5 /php-fpm
    </Directory>
</VirtualHost>

</IfModule>

 



Now php files located within the directory /var/www/html are getting processed fine. But php files located within the subdirectories of /var/www/html are not being processed and are displayed as plain text files.

Please help me on what needs to be done so that php files located within all the subdirectories/virtual hosts stored within /var/www/html are also processed.

For eg. i have the given below directive for one of my virtual host.
Please let me know what needs to be done to process php files in similar virtual host directives:

Syntax: [ Download ] [ Hide ]
<VirtualHost *:80>
  ServerName mydomain.com
        ServerAlias http://www.mydomain.com    
   
        DocumentRoot /var/www/html/mydomain/www/web

<Directory /var/www/html/mydomain/www/web>
        AllowOverride All
  RewriteEngine On
  Options -Indexes FollowSymLinks
         
</Directory>  

</VirtualHost>

 


Also please let me know what needs to be done add php-fpm to start automatically at boot time

Please help.

Thanks and Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group