Error Writing /usr/local/lib/php.ini Permission Denied
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About change permission php.ini ubuntu Us Learn more about Stack Overflow the company Business Learn more about hiring php ini file permissions developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the restart apache ubuntu Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP.ini error — No permission — Root User up vote 5 down vote favorite Trying to setup and configure my mac as a testing server. So setting up the php.ini, i get an error when trying to save my changes: Error writing /usr/local/php5/lib/php.ini: Permission denied I don't know why this happened or how to fix it (noob) -I am logged in as root. php osx apache ini share|improve this question edited Jan 15 at 12:00 asked Nov 6 '13 at 20:15 rambossa 1,57411127 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote accepted Try this, sudo -i nano /usr/local/php5/lib/php.ini OR sudo nano /usr/local/php5/lib/php.ini OR vi /usr/local/php5/lib/php.ini share|improve this answer edited Nov 6 '13 at 20:38 answered Nov 6 '13 at 20:18 Krish R 16.4k42147 I did so, still getting same error –rambossa Nov 6 '13 at 20:22 THANKS, your edit worked. Now do you know why I maybe did not have permission the first time? @ChinnuR –rambossa Nov 6 '13 at 20:34 Which one is worked for you? –Krish R Nov 6 '13 at 20:35 sudo -i nano /usr/local/php5/lib/php.ini –rambossa Nov 6 '13 at 20:35 Some system files aren't available for just anyone (or any program) to change or delete. For such cases you need to act as the root user, or superuser. Usually this means typing "sudo" before the command and it will ask you for a password. This will allow you to do something as the superuser. –Krish R Nov 6 '13 at 20:37 | show 1 more comment up
(this is on my local PHP env, unix/mac 10.6.8) thank you... Cups 2012-09-20 10:37:47 UTC #2 Have you checked ownership too? (chown) maya90 2012-09-20 12:56:58 UTC #3 chown 644 php.ini chown: php.ini: Operation not permitted this is on my own machine.. that no one else http://stackoverflow.com/questions/19821901/php-ini-error-no-permission-root-user uses... I should automatically have permissions to everything... I don't get why sometimes don't have permissions to edit files on my own computer.. thank you.... QMonkey 2012-09-20 20:31:01 UTC #4 Some system files aren't available for just anyone (or any program) to change or delete. https://www.sitepoint.com/community/t/cant-edit-php-ini-even-though-set-permission-to-644/21391 This is for your own good. For such cases you need to act as the root user, or superuser. Usually this means typing "sudo" before the command and it will ask you for a password. This will allow you to do something as the superuser. sudo nano php.ini The above code will open the nano editor and allow you to edit and save. Substitute nano with the command to open the editor of your choice. (I don't even know if nano is on a mac by default) maya90 2012-09-22 00:30:12 UTC #5 that worked! thank you... (but didn't solve Drupal install prob I was hoping to solve... yikes ) system 2014-10-08 02:56:58 UTC #6 Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled Shop Versioning Reference Articles Premium
have one accepted answer. Are you sure you want to replace the current answer with this one? Yes, I'm sure. Changed your mind? You previously marked this answer as accepted. Are you sure you want https://www.digitalocean.com/community/questions/permission-denied-to-php-ini to unaccept it? Yes, I'm sure. Sign Up Log In submit Tutorials Questions Projects Meetups Main Site logo-horizontal DigitalOcean Community Menu Tutorials Questions Projects Meetups Main Site Sign Up Log In submit View All Results By: http://docs.icinga.org/latest/en/icinga-web-scratch.html onurcancoban Subscribe Subscribed Share 0 Permission denied to PHP.ini January 5, 2016 1.1k views PHP Hi. I want to update the uploadmaxfilesize in php.ini document but apparently i don't have permission to edit this file. Is error writing there anyone know how to get access to be able to modify this number? Log In to Comment Leave a Comment Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below. Log In to Comment 2 Answers 1 kode54 January 5, 2016 System settings files, such as php.ini, typically require root level permissions to modify. Sometimes, settings files even require root error writing /usr/local/lib/php.ini to even read them, since they may contain login credentials for databases and such. You'll need to elevate to root, usually using the sudo command to execute your editor, and that will require you to enter your password the first time you do it within a configured session lifetime. Or you could su to root, but typically, droplets don't come configured with a root password, so password login to root won't even work. Reply Log In to Comment 0 onurcancoban January 5, 2016 Thank you. The problem here is i can't access my root as well. I don't know exactly what happened but every single time i try to access root, i get this message Permission denied, please try again. I reset password, i removed ssh-key but still have the same problem. Do you have an idea? 0 anderson849 February 21, 2016 I take it you have created a new user on initial setup and granted admin privileges to the new user? somewhere in line with this guide If you have try this... Login with created user credentials: ssh username@ip address` Once logged in type this: sudo bash Enter your password, this should then show you in control as root user (root@yourdropletname:~#) Next enter this: nano /etc/ssh/sshd_config Search for a section where it says "PermitRo
Test & Errors? 6.5.1. Introduction The new Icinga Web is under heavy development so please keep in mind that some information in this howto might change without any further notice. If you require more detailed information about installing, please check doc/INSTALL. More information about the overall architecture can be found on our website: https://www.icinga.org/architecture/. If you want know more about Icinga web development and the module architecture, please check out the development wiki of Icinga Web: Icinga Wiki This installation guide describes the installation of Icinga Web with MySQL or PostgreSQL as underlying database. Icinga Web also supports Oracle as database backend. 6.5.2. Prerequisites MySQL Based on the fact that you have a running MySQL and PHP (with PEAR and CLI) environment and Icinga and IDOUtils are running as well, you can continue with the second step. Otherwise: Ubuntu / Debian #> apt-get install php5 php5-cli php-pear php5-xmlrpc php5-xsl php5-mysql php-soap php5-gd php5-ldap php5-mysql Note Newer PHP versions (>= 5.5) are delivered with a separate JSON package (due to licensing reasons) so you might have to install that as well. Check if the module is already there: #> php -m | grep -i json If the above statement doesn't show a module please issue: #> apt-get install php5-json Fedora / RHEL / CentOS #> yum install php php-cli php-pear php-xmlrpc php-xsl php-pdo php-soap php-gd php-ldap php-mysql Note Make sure you have a repository/packages for PHP 5.2.x - RHEL/CentOS (CentOS <= 5.4) only support 5.1.6 out of the box. For running Icinga web you need at least php 5.2.3 and pcre 7.6 - you can use an external repository, pre-built packages or compile php and pcre yourself. Precompiled PCRE and PHP packages can be installed e.g. from Les RPM de Remi or http://www.jasonlitka.com/category/yum-repo-news/ OpenSuSE Please use yast to install the packages "php5", "php5-pear", "php5-xmlrpc", "php5-xsl", "php5-json", "php5-sockets", "php5-soap", "php5-gettext", "php5-pdo", "php5-ldap", "php5-gd", "php5-mysql" and "apache2-mod_php5". The CLI is contained in the php5 package. Note At least in SLES10 SP2 the function "hash_hmac" is missing. If zypper is installed then you can use it instead of yast #> zypper install php5 php5-pear php5-xmlrpc php5-xsl php5-json php5-sockets \ php5-soap php5-gettext php5-pdo php5-ldap php5-gd php5-mysql apache2-mod_php5 Installing Icinga with IDOUtils is described in the Icinga with IDOUtils Quickstart Guide PostgreSQL Based on the fact that you have a running PostgreSQL and PHP (with PEAR and CLI