Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 3894  / 2 Years ago, sat, june 25, 2022, 2:59:14

i am new to ubuntu , i have install ubuntu 12.04 install in my system i have install localhost(lamp) in my system . i was trying to import a data base with more size so
dor that i need to change the php.ini file which was there in /etc/php5/apache2/php.ini



but php.ini file was in read onely mode so i change the permission of apache2 folder like



      chmod -R 777 apache2


and now i am not able to use php myadmin , can any 1 tell me what to do ??????????????


More From » permissions

 Answers
0

I would stop Apache using sudo service apache stop. Giving recursive 777 privileges is not recommended unless there is an absolute need.



Presuming that you issued that chmod command for the /etc/php5/apache2 directory, you can reset the permissions to the default. Here's the contents of the same directory on my system which is configured as a LAMP server:



lrwxrwxrwx 1 root root     9 Apr  4  2012 conf.d -> ../conf.d
-rw-r--r-- 1 root root 67479 Apr 9 2013 php.ini
-rw-r--r-- 1 root root 68428 Jun 13 2012 php.ini.ucf-dist


You would need to chmod the php.ini and php.ini.ucf.dist files with



sudo chmod 644 filename


The error you're getting from phpMyAdmin is for it's own configuration file - config.inc.php found at the root level of your phpMyAdmin installation. Managing this file is explained in the phpMyAdmin Wiki here.



To edit the php.ini file you will need to invoke sudo when using your CLI text editor like vi or pico, such as sudo pico /etc/php5/apache2/php.ini


[#27372] Sunday, June 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imonove

Total Points: 82
Total Questions: 113
Total Answers: 106

Location: Saint Vincent and the Grenadines
Member since Wed, Nov 3, 2021
3 Years ago
;