php.ini changes, but not effective on Ubuntu
Question I want change the limit of PHP upload file's size
And this is some information of the output my phpinfo:
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
And this is the content of my php.ini file:
upload_max_filesize = 50M
post_max_size = 50M
memory_limit = 128M
Then I restart Apache 2, but the phpinfo shown is still:
upload_max_filesize 2M
Answer I have solved my question.
There is a syntax error in php.…
Read more ⟶youtube-dl rate limit download speed and auto resume download [closed]
Question Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
</div>
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.…
Read more ⟶JMX password read access issue
Question When I try to use JMX to monitor an application like this:
java -Dcom.sun.management.jmxremote.port=9999 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
JMX_tester
it tells me:
Error: Password file read access must be restricted:
/usr/lib/jvm/java-7-oracle/jre/lib/management/jmxremote.password
Yet, when I use chmod to restrict the read access, it tells me:
Error: can't read password file
Am I going insane or something? How can I fix this?
This is Ubuntu btw, with the latest oracle jdk Answer Make sure the user you are using to run the java process have access to the file (owner/read permissions).…
Read more ⟶How to make all files under a directory world readable on linux? [closed]
Question Closed. This question is off-topic. It is not currently accepting answers.
</div>
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to make all files (and directories) under a certain directory world readable without having to chmod each file on its own. it would be great if there is an option to also do this recursively (look under folders and chmod 666 all files under it)…
Read more ⟶How to update ruby on linux (ubuntu)?
Question I'm newbie on both ruby and linux, so I'm sure this is trivial but I don't know yet. I currently have ruby 1.8.7 installed and I want to update it to ruby 1.9. How can I do that?
Answer sudo apt-get install ruby1.9
should do the trick.
You can find what libraries are available to install by apt-cache search <your search term>
So I just did apt-cache search ruby | grep 9 to find it.…
Read more ⟶PostgreSQL server failed to start, could not create lock file: permission denied
Question I am attempting to install and run a postgreSQL server, whenever I install it using
sudo apt-get install postgresql
I get the following error:
* Starting PostgreSQL 9.1 database server * The PostgreSQL server failed to start. Please check the log output:
2014-04-03 17:18:16 PDT FATAL: could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": Permission denied
[fail]
invoke-rc.d: initscript postgresql, action "start" failed.
dpkg: error processing postgresql-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-9.…
Read more ⟶RewriteRule Error: Bad flag delimiters
Question Using this RewriteRule in my .htaccess file I'm getting RewriteRule: Bad flag delimiters which is returning a 500 error in the browser. Can anyone point me in the right direction please. Thanks.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^dev/(.*)$ http://dev.example.com/$1 [L,R=301, NC] This is on Ubuntu on a Digital Ocean Droplet.
Answer Turns out it was because of the space before N in the flag declaration [L,R=301, NC]. I changed it to [L,R=301,NC] and now it works a treat.…
Read more ⟶