PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, July 22, 2022

[FIXED] Why not working phpinfo with php5.ini?

 July 22, 2022     centos6, linux, php, php-5.4, server     No comments   

Issue

I try to run my phpinfo.php file with php5.ini, but still show me "Forbidden: You don't have permission to access /phpinfo.php on this server." error message. My site is working, only that phpinfo not...

But, if rename it the php5.ini to php.ini the phpinfo is working and show all the details. Only the problem is, my site can't working with php.ini. Have to rename it to php5.ini...

Anybody know any solution for fix it and be work with php5.ini as well?


Solution

It's possible that your php5 running as CGI instead as an apache module.

So you have to configure Apache to use the PHP CGI modifing the httpd.conf.



Answered By - Maverick
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing