Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9243047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:43:17+00:00 2026-06-18T08:43:17+00:00

-rw-r–r– 1 root root 514 Jan 15 04:03 curl.php -rw-r—– 1 root root 1344

  • 0
-rw-r--r-- 1 root      root        514 Jan 15 04:03 curl.php
-rw-r----- 1 root      root       1344 Feb  5 02:09 dbm-config.ini
-rw-r--r-- 1 root      root       5149 Feb  5 02:19 mysql-connectivity-status.php

Here, Am accessing the file “mysql-connectivity-status.php” from url like
http://<ip>/html/DB-Monitoring/mysql-connectivity-status.php.

In mysql-connectivity-status.php I have called the file dbm-config.ini. While am accessing via URL am getting the following Warning.

Warning: parse_ini_file(/var/www/html/DB-Monitoring/dbm-config.ini): failed to open stream: Permission denied in /var/www/html/DB-Monitoring/mysql-connectivity-status.php on line 113

So, I don’t want to change the permission for the dbm-config.ini But how to I access the file using URL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:43:19+00:00Added an answer on June 18, 2026 at 8:43 am

    -rw-r—– 1 root root 1344 Feb 5 02:09 dbm-config.ini

    The file can be read from and written to, by the user root rw- and read from by the members of the group root r--

    If you access the php file using curl, this is executed most likely with your webservers user and group which is not root:root

    That’s why php can’t read the ini file.
    I recommend to move the file out of your document root so it can’t be accessed directly from the web, then change the owner to your webserver user and group

    determine the username php is executed with

    ps aux | grep "httpd" # apache environment
    ps aux | grep "php"   # php fastcgi environment 
    
    chown user:group dbm-config.ini
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP application that stores PHP datetime to my MySQL table. I
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I've got the following login script.. <?php $name = $_POST[name]; $password = $_POST[password]; $query
We have a title <title>Text &#8211; text</title> I want to change it with jquery
SOLUTION: $output = '–– € ––'; //written like this php 5 does not understand
i have this code: <?php $valid_ext = array(pdf, doc); $args = array( 'post_type' =>
My NSXMLParser breaks on this string: <title>AAA &#8211; BCDEFGQWERTYUIO</title> I parsed it in this
I am getting notice on line 30 that twetout is undefined variable <?php $username
string formIdList = 8256, 8258, 8362, 8120, 8270, 8271, 8272, 8273, 8257, 8279, 8212,
I would like to count the length of a string with PHP. The string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.