Most voted "ubuntu" questions
Ubuntu is a free operating system, used on desktops and servers, based on Debian GNU/Linux. Remember that http://askubuntu.com is dedicated specifically to Ubuntu issues (in English). Here the tag should only be used for PROGRAMMING QUESTIONS that are specific to Ubuntu. Desktop and shell usage issues are not within the scope of the site.
Learn more…400 questions
Sort by count of
-
2
votes1
answer87
views -
2
votes3
answers2214
viewsCrontab Linux run PHP Script at a frequency of less than 1 minute
Please, I need to run crontab so that it runs every 1 second, you should run a . php script on the Debian Linux server. root /usr/bin/php5 -q /var/www/cloudns.php when executing manual, it performs…
-
2
votes2
answers7773
viewsThe mbstring Extension is Missing. Please check your PHP Configuration
Even trying to install what’s missing sudo apt-get install phpmyadmin php-mbstring php-gettext, he says it’s already installed And I’ve also activated the extension extension=php_mbstring.dll, what…
-
2
votes1
answer559
viewsError installing Python applications on Ubuntu 17.04
I want to put Jango, I’ve done all the process and everything, but when I do Pip install Django or other things related to python, always give this error. marcos@MarcosViana:~$ sudo apt-get -f…
-
2
votes1
answer290
viewsInstall PCNTL on Ubuntu 16.04 PHP7
I have a GPS application that your manual is written for PHP 5, but I would like to use PHP 7. I managed to do the installation without problem, but when I have to install the PCNTL can’t. In PHP 5…
-
2
votes5
answers5717
viewsError npm and Ubuntu Node
I had many problems installing npm and Node in Ubuntu, now I have the following error: npm : Depende: nodejs mas não será instalado mais um monte de dependências... E: Impossível corrigir problemas,…
-
2
votes1
answer168
viewsHow to call a linux executable program in php code?
I have a question, I have a web application in PHP from which I will receive a txt file. I need to call a program on linux that will run this txt file and, I would like to know, how I would call a…
-
2
votes1
answer966
viewsWhat are the steps to create a Docker image for Ubuntu 16:04, php 5.6 and apache (with Composer, Xdebug, phpunit, npm and REDIS)?
I’m a beginner in Docker and I’m trying to create an image with the following specifications: The source OS has to be the original Ubuntu 16.04. I cannot use images already available in the Docker…
-
2
votes1
answer794
viewsBitbucket Team Remote Repository Issues
I created a Team in bitbuckt, and created a Project for this Team and in this Project I created a Repository. I added to Team, an ssh key that I created on my machine (Ubuntu), but when performing…
-
2
votes1
answer337
viewsError saving image in directory with PHP
I made a page that administer a website that is responsible for including new lawyers in a 'bootstrap Carousel'. On my machine works perfectly, but on the server it is impossible to save the image…
-
2
votes1
answer888
viewsSQL Developer does not run on Ubuntu
I’m trying to run Oracle SQL Developer on Ubuntu and when it arrives in the image part below the execution gets stuck. I searched the internet but couldn’t find anything that could help me. Someone…
-
2
votes2
answers1184
viewsproblem with daylight saving time and java applications on Ubuntu server 16.04
This weekend we had the change to summer time here in my region, I have some machines running Ubuntu server 16.04 with java applications. All of them with JBOSS, POSTGRES for one application and…
-
2
votes1
answer59
viewsPointers in college
I’m studying pointers and this is a code used as an example that’s in the material given by the college. I went to replicate this code on my machine and the output is different from the material.…
-
2
votes0
answers368
viewsRenaming multiple Linux files
I have several files: xaa.txt xab.txt xac.txt xad.txt até xcn.txt I need to rename all files to: nome1.txt nome2.txt nome3.txt etc... In order, that is, xaa.txt must be the name1.txt xab.txt must be…
-
2
votes0
answers1878
viewsConfigure Laravel Virtual Host in Ubuntu
When I access a project that does not use Lockable, it works normal, but when some access uses, does not load anything and shows an empty screen. Its configuration has to be different from the…
-
2
votes1
answer54
viewsApi returns data correctly by Artisan serves but not by apache
I made a REST api using Laravel, for an application I’m doing, to perform the request tests I created a VM where the api is. Assign a fixed IP to this VM and disable the firewall to not disturb. I…
-
2
votes0
answers157
viewsApi returns data correctly when requested by localhost but not by ip
Yesterday I did this question: I made a REST api using Laravel, to an application that I’m doing , to perform the requisition tests I created a VM where is the api. Assign a fixed ip to this VM and…
-
2
votes0
answers109
viewsProblems with Opencv in Qt Creator
Program shows no error when build, but when running the code it displays the following message: libopencv_core.so. 3.4: cannot open Shared Object file: No such file or directory the file . pro is…
-
2
votes0
answers63
viewsSimulate a mouse click using X11
I’m trying to simulate a mouse click using the X11 library on linux. Using the command xev in the terminal I have the following exits. For a real click: ButtonPress event, serial 32, synthetic NO,…
-
2
votes1
answer720
viewsDebug in C/C++ in Visual Studio Code does not work (Linux Ubuntu)
I use Visual Studio Code, and wanted to use your Debug in my C/C++ files. There are few BR tutorials on how to configure the debug of VS code for Linux, especially in the language I use, and as I am…
-
2
votes1
answer1088
views"Primary script Unknown" while Reading Response header from upstream - NGINX
Hello, I am trying to run my Wordpress site on the Host that has this setting: Ubuntu LTS 16.04, Nginx, Apache, Mysql, PHP, Webmin While trying to enter the home page, the error that is displayed in…
-
2
votes1
answer5001
viewsApache2 does not interpret PHP
I normally installed PHP and APACHE2 but it does not interpret PHP code, follow test code: <?php echo "teste"; It returns me an "html" page with this written, and comes from a "print" written…
-
2
votes1
answer184
viewsExtract private key from file with extension . DER
I need to extract the private key from a file .DER, however analyzing the function openssl_pkey_get_private I identified that it is necessary to pass as parameter a file with extension .PEM. I tried…
-
2
votes4
answers7933
viewsHow to upgrade Node.js from version 8 to 10 on Linux Ubuntu, via SSH?
I tried several tutorials on the internet before coming to post the doubt here on Stackoverflow and no tips worked. My repository is with version 8 of Node and the same, even removing, back. I need…
-
2
votes1
answer1911
viewsHow to switch between Java 8 and 11 on Ubuntu?
I made a few days ago the transition from Windows 7 to Ubuntu 18.04 LTS, and had some difficulties in the process. Well, let’s get to the details. I installed JDK 11 through the following command:…
-
2
votes0
answers36
viewsUbuntu 18.04.1 LTS with 100% storage and processing
I’m having a problem with my development server and I can’t fix it. I’ve done a lot of research, but I can’t find the solution. Probably those who have more advanced knowledge of the OS believe it…
-
2
votes2
answers994
viewsShortcuts in visual code - Ubuntu 18.04
Today I installed the visual code on linux, I used it before but in windows, it happens that some shortcuts are not working and this is damaging my productivity. One of these shortcuts and the most…
-
2
votes2
answers1053
viewsHow to install Node.js in its latest version (12.x) from the Ubuntu terminal?
I’m trying to install nodejs on my Linux, but even putting the codes in for version 12.x: # Using Ubuntu curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt-get install -y…
-
2
votes1
answer123
viewsAlias created in shell-script does not work
I’m trying to create a alias using a shell-script, but at the end of the execution the alias disappears. #!/bin/sh echo "Configurando ambiente..."; mkdir -p ~/.dna alias teste="node…
-
2
votes2
answers458
viewsError while clearing buffer in GCC (Ubuntu 18.04)
I was watching a tutorial of C, and appeared a part about buffer cleaning using the functions fflush and __fpurge. So far so good, but when I tried applying with __fflush, the GCC returns me the…
-
2
votes1
answer239
viewsError running Docker-Compose up to bring up traefik
After mounting the Docker-Compose.yml as follows: version: '3' services: proxy: image: traefik command: --web --docker --docker.domain=docker.localhost --logLevel=DEBUG networks: - webgateway ports:…
-
2
votes1
answer231
viewsNginx with api Node
I’ve had a problem for a while and I can’t fix it. The problem is this: I have a server that has an api running PM2 on it at port 3000. I installed NGINX and am trying to link the route of my domain…
-
2
votes1
answer167
viewsShell Script to calculate average runtime
I need to perform the same command 10 times and view the average run time. I did the script below, but it always returns the same output, zero, see print below. Could you help me find the error?…
-
1
votes1
answer80
viewsUpload a nodjs and mongodb project into a VPS
I developed my project with Nodejs and Mongodb on Windows, now I intend to upload it in an Ubuntu VPS with these already installed software, I already have Putty installed on my machine and I got…
-
1
votes1
answer179
viewsRewriterule problems in apache 2.22 (in Digitalocean.Comm)
I use a cloud server called Digital Ocean. However I am facing problems while trying to create friendly Urls. I have activated the module rewrite through the command: sudo a2enmod rewrite and…
-
1
votes2
answers347
viewsHow do I set up HHVM for a manually compiled apache?
During the updates of Ubuntu 12.04, the HHVM was updated and then asked to run the installation command for the fast_cgi. However when executing I received the following error: ➜ ~ sudo…
-
1
votes4
answers2752
viewsNo access permission for Apache 2.4.6
I upgraded Ubuntu 13.04 to 13.10, but when I went to check Apache using localhost/ I’m getting the following message: Forbidden You don’t have permission to access / on this server. Apache/2.4.6…
-
1
votes2
answers7595
viewsRedirect URL to another physical folder with . htaccess
On the Ubuntu server, I have a physical folder: /var/www/html/gestao/site/temp/ I wish my .htaccess redirect to the URL domain.com.br/gestao for this physical folder transparently.…
-
1
votes1
answer2788
viewsChange username on Ubuntu
I formatted my Ubuntu and misspelled the name. I tried to fix by changing the files /etc/hostname and /etc/hosts but still can’t get what I want. When I open the terminal appears like this:…
-
1
votes2
answers273
viewsI can’t access the other urls of the project
I’m migrating to linux and I’m having a hard time, I installed php, apache, mysql and Composer, I can create projects all blz I had a great help until I reached it all. The problem is when I try to…
-
1
votes2
answers757
viewsAnalyzing resource consumption by script
I have a server with S.Ubuntu Server 12.04 LTS, on this machine I have apache2 with PHP5 and PERL installed, but it consumes a lot of CPU resource, I wonder if it is a script with more problem for…
-
1
votes1
answer39
viewsConfiguration of XML
In the configuration of pMapper (Mapserver framework for PHP), there is this configuration which I am in doubt how to configure it. <dsn…
-
1
votes1
answer76
viewsProblems with Composer, mcrypt and Laravel on Ubuntu 14.04
I already have a pre-existing project and I need to install the Lockable in it, however it gives this: $ php ../composer.phar create-project laravel/laravel Installing laravel/laravel (v4.2.11)…
-
1
votes1
answer72
viewsProblem registering a directive on Tomcat using Eclipse on Ubuntu
Good morning I’m having trouble putting this directive -Dorg.apache.el.parser.COERCE_TO_ZERO=false in the VM arguments of Tomcat 7, it does not save settings. I already gave permission in the folder…
-
1
votes0
answers306
viewsHow not to initialize postgresql with Ubuntu?
When I execute the command sudo service postgresql status appears the following information: 9.3/main (port 5432): online How do I get Postgresql to stop booting together with the OS (Ubuntu 14…
-
1
votes1
answer56
viewsHow do I modify a url with . htacess?
I have the url example.com/photo I would like to modify it for example.com/image Note I have access to . htacess and apache modules.
-
1
votes2
answers73
viewsIgnore n no with bash >>
Hello I have a PHP script that I run on a server, I put it in a cron. For security and maintenance reasons I write all the return of STDERR in a file, but even if the file does not return me…
-
1
votes1
answer480
viewsUbuntu linux deployment environment creation
I’m testing a Digital Ocean machine, it comes with Ubuntu linux (I chose), I need to create the following environment Firewall Java Tomcat7 Jenkins git MySQL MySqlAdmin Groovy Gradle Well, as you…
-
1
votes1
answer2508
viewsHow to compile and run C program using Sublime Text on Ubuntu 12.04?
You can configure Sublime Text 2 so that it will embed a C code and then run and show the result in the terminal?
-
1
votes1
answer100
viewsFails when I make Bundle install
Good afternoon, I have a little problem when I do bundle install: /usr/local/bin/ruby extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary…