Unable to display info.php even after correct configuration


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Unable to display info.php even after correct configuration
# 1  
Old 03-13-2020
Unable to display info.php even after correct configuration

Hi,


I am quite new to using php. However I managed to install rh-php73, and rh-php73-php-fpm.
I started php, and am able to see that php-fpm is running.


Code:
[root@dev-mumo run]# ps -ef | grep fpm
root     17722     1  0 17:04 ?        00:00:00 php-fpm: master process (/etc/opt/rh/rh-php73/php-fpm.conf)
apache   17724 17722  0 17:04 ?        00:00:00 php-fpm: pool www
apache   17725 17722  0 17:04 ?        00:00:00 php-fpm: pool www
apache   17726 17722  0 17:04 ?        00:00:00 php-fpm: pool www
apache   17727 17722  0 17:04 ?        00:00:00 php-fpm: pool www
apache   17728 17722  0 17:04 ?        00:00:00 php-fpm: pool www
root     25998  3875  0 19:06 pts/0    00:00:00 grep --color=auto fpm
[root@dev-mumo run]#

The httpd.conf already has the lines for php in it :


Code:
<IfModule dir_module>
    #DirectoryIndex index.html
    DirectoryIndex index.php
</IfModule>

<FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
</FilesMatch>

<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

This is from the httpd error logs :


Code:
[Fri Mar 13 18:56:24.996882 2020] [mpm_event:notice] [pid 24751:tid 139821215553728] AH00492: caught SIGWINCH, shutting down gracefully
[Fri Mar 13 18:56:26.110028 2020] [core:notice] [pid 25236:tid 139679729858752] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Mar 13 18:56:26.111491 2020] [suexec:notice] [pid 25236:tid 139679729858752] AH01232: suEXEC mechanism enabled (wrapper: /opt/rh/httpd24/root/usr/sbin/suexec)
[Fri Mar 13 18:56:26.146706 2020] [lbmethod_heartbeat:notice] [pid 25236:tid 139679729858752] AH02282: No slotmem from mod_heartmonitor
[Fri Mar 13 18:56:26.149897 2020] [mpm_event:notice] [pid 25236:tid 139679729858752] AH00489: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Fri Mar 13 18:56:26.149976 2020] [core:notice] [pid 25236:tid 139679729858752] AH00094: Command line: '/opt/rh/httpd24/root/usr/sbin/httpd -D FOREGROUND'
(END)


This is /usr/local/httpd/phpfpm.conf :


Code:
[root@dev-mumo conf.d]# cat phpfpm.conf
# Proxy declaration
<Proxy "unix:/var/run/php73.sock|fcgi://php-fpm">
        # we must declare a parameter in here (doesn't matter which) or it'll not register the proxy ahead of time
        ProxySet disablereuse=off
</Proxy>

# Redirect to the proxy
<FilesMatch \.php$>
        SetHandler proxy:fcgi://php-fpm
</FilesMatch>

#
# Allow php to handle Multiviews
#
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

[root@dev-mumo conf.d]#






I have also edited php-fpm.conf & php-fpm.d/www.conf.
The php socket path is /var/run/php73.sock :


Code:
[root@dev-mumo run]# pwd
/var/run
[root@dev-mumo run]# ls -la | grep php
srw-rw----.  1 apache      apache         0 Mar 13 17:04 php73.sock
[root@dev-mumo run]#

I restart httpd after these changes, and still can't see the info.php display. How come?

Last edited by anaigini45; 03-13-2020 at 08:27 AM..
# 2  
Old 03-17-2020
It turns out that I did not link /usr/local/httpd to the main httpd directory /opt/rh/httpd24/root/etc/httpd.
Once I linked it, and created file phpfpm.conf in the directory, I could see the php page.
This User Gave Thanks to anaigini45 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Display calendar in correct format using shell script

Hi All, I'm trying to print calendar using shell script and i'm able to print it. But the format is not good. Here is the script. #!/bin/bash echo $(date) echo "Hello $USER" echo Hostname $(hostname) echo Working in $(pwd) echo Here is this month calender echo $(cal) $ sh first.sh... (7 Replies)
Discussion started by: chandrakanth
7 Replies

2. Shell Programming and Scripting

Bash Info Display

I have written the following bash function prArgv Suppose the calling sequence is as follows prArgv VAL1 VAL2 DESC VAL3 VAL4 v2d1 s4 p15 The call will look at the tag k1v2, add the numbers together, in this case 2+1=3 This means that the function will look at the first 3 user arguments... (1 Reply)
Discussion started by: kristinu
1 Replies

3. UNIX for Dummies Questions & Answers

Email display not correct on Solaris 10

Hi Everyone, Can someone possibly point me in the direction? When I execute command echo "hello" | sendmail -v testacct@wyx.com I recived an email as expected except the From: NAME is incorrect. The server name is correct. It should read "From: TESTBOX1 " actual email: From: app... (3 Replies)
Discussion started by: smckech1972
3 Replies

4. UNIX for Advanced & Expert Users

Unable to display directory info with ps command

Hello, I start an adapter using the following command - nohup ./start_embargoAdapter >/dev/null 2>&1 & and when I do the following, I can see: /export/home/xxxxx> ps -ef | grep embargo xxxxx 28086 20761 0 23:23:29 pts/7 0:00 grep embargo xxxxx 8866 1 0 Oct 06 ? 0:00... (2 Replies)
Discussion started by: samjna
2 Replies

5. UNIX for Advanced & Expert Users

v$sql not display correct sql_text

Hi folks, I am facing one problem with v$sql, i need to store updating sql query in temp table when one trigger get fired on some update sql statement. but with "sql_text" , i am not getting correct update statement in temp table. I am getting sql_text with this cursor statement. select... (0 Replies)
Discussion started by: apskaushik
0 Replies

6. Shell Programming and Scripting

Unable to get the correct sort order in perl.

Hi, I have created the hash. %hash; @arr1 = qw(Dealnum AdminStatus adminReason effFrom effTo); @arr2 = qw(121212121 YES 1992-06-19T05:14:27 ); @hash{@arr1}=@arr2; foreach(sort keys %hash){ print "$_ ---- $hash{$_}\n"; } The output i got like this: C:\strawberry\perl\bin>perl... (1 Reply)
Discussion started by: vanitham
1 Replies

7. Solaris

unable to load console info in SUNMC 4.0

Hi all, unable to load console info in SUNMC 4.0 in alarm it is giving error info i.e..Agent on host (.....),1161 port not responding. Iam using M9000 server solaris 10 plz try to solve the problem Regards spandhan (0 Replies)
Discussion started by: spandhan
0 Replies

8. Infrastructure Monitoring

unable to load console info in SUNMC 4.0

hi all, unable to load console info in SUNMC 4.0 in alarm it is giving error info i.e..Agent on host (.....),1161 port not responding. plz try to solve the problem Regards spandhan (5 Replies)
Discussion started by: spandhan
5 Replies

9. Shell Programming and Scripting

Order text display not correct.

My shell script below for import data to Oracle it run okay. but the text display not correct follow order command executed. =========================Shell Script code================= #!/bin/sh #directory = ${1-'pwd'} #run import data with SQLLoader runSQLLoader() { ... (2 Replies)
Discussion started by: raccsdl
2 Replies

10. Solaris

Specifying network configuration info

Can someone please point me in the correct direction of where I configure the network information on SunOS 5.8 server? (Searching SunSolve and Google have resulted in thousands of fixes for potential errors, but I can't find the general instructions, etc. for starting the process). Thanks! (2 Replies)
Discussion started by: FredSmith
2 Replies
Login or Register to Ask a Question