ubuntu-server

Wordpress “Post name” permalinks not working

寵の児 提交于 2019-12-11 03:36:56
问题 I have a Wordpress website running on Lamp Server on Ubuntu Server 14.04. I just tried to use the option for Post Name permalinks, and now my pages no longer load up. I turned on the mod_rewrite function of the Apache server, restarted it, but it still doesn't work. Also, here's my .htaccess file: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index

dotnet core on Ubuntu Linux using asp.net MVC and EF MySQL error NU1001: cannot restore MySql.Data.EntityFrameworkCore

拜拜、爱过 提交于 2019-12-10 18:41:29
问题 I've built a simple, flat dotnet core MVC app that I'd like to see running on Linux. It uses EF to pull a few records from a mysql table and display them in a view. It all builds and runs on my host (Win10) but will not in the Ubuntu VM I've spun up to test with After I do a "dotnet restore", I get the following error with "dotnet build" or "dotnet run": Project CoreCrossPlatformFlat (.NETCoreApp,Version=v1.0) will be compiled because the version or bitness of the CLI changed since the last

PHP mail returns true (Message accepted for delivery), but the message is not sent

旧巷老猫 提交于 2019-12-10 12:11:58
问题 I have been trying get php to send mail for over a month. I am moving from 000webhost, where it worked fine, to my friend's server. The php code that sends mail is: $subject = $u.", your infomation"; $message = "Your password is ".$p; $from = "me@gmail.com"; $headers = "From:" . $from; if(mail($e,$subject,$message,$headers)) $_SESSI ON['message']="message sent"; else $_SESSION['message']="error"; the sendmail path in php.ini is "/usr/sbin/sendmail -t -i" etc/hosts: 000.000.000.000 inspiron

Google Sign In API OAuth2- Error: invalid_request

匆匆过客 提交于 2019-12-08 14:15:47
问题 I am having problems with the google Sign In API. I followed the tutorial to configure it from the Google Dev. console. Looked pretty simple... I read some similar questions on Stack Overflow, but all I could find is : Add your authorized origins... (By the way what is the 'Authorized origins' ?) Here is the code I inserted into my PHP web page : <head> <title>CrateBoxStudio</title> <meta name="google-signin-client_id" content="**MYCODE**-nk3amkhq4disgfjmcsd53gku38bk6rpv.apps

“xdg_runtime_dir not set in the environment” and pkexec doesn't work

谁说胖子不能爱 提交于 2019-12-08 02:13:19
问题 I try to execute the following line on ubuntu-server 14.04: $ sudo gedit /usr/local/svn/passwd-team and I get this error: error: XDG_RUNTIME_DIR not set in the environment. (gedit: 11805): Gtk-WARNING **: can not open display: I Googled for help and saw that I had to write: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit Then I got the following message: === AUTHENTICATING FOR org.freedesktop.policykit.exec === Authenticating is needed to run '/usr/bin/env' as the super user

enable firewall port 22 on ec2 server after disable it

筅森魡賤 提交于 2019-12-07 17:35:47
问题 Step error: 1. sudo ufw enable 2. Command may disrupt existing ssh connections. Proceed with operation (y|n)? y 3. exit Before ssh again and can not access. On Security Group, port 22 is opening But firewall disable port 22. How to access server again? 回答1: You could use the following simplest way (user-data) to turn off the ufw then access the instance and edit your firewall. stop the instance Edit the user data to disable the ufw once and let you access the instance start the instance

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

狂风中的少年 提交于 2019-12-07 12:27:28
问题 I've just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha. HTML files in the web host director work prior to php files making there way main directory then I received 502 error from nginx Error message from nginx: SO thought it was code :) >tail -f /var/log/nginx/error.log >2018/07/03 15:27:45 [alert] 1275#1275: *48 open socket #3 left in connection 11 >2018/07/03 15:27:45 [alert] 1275#1275: aborting >2018/07/03 15:27:47 [crit] 4049#4049

How to upload a WAR file on Tomcat 7 cookbook by Chef?

↘锁芯ラ 提交于 2019-12-06 14:33:10
I'm trying deploy a War file on my Tomcat 7 installed by a cookbook on CHEF. But, I can't find a single answer for my question at any forums. I don't have any idea how to do this! I'm using a Ubuntu server 12.10. The recipe that I'm using is https://github.com/solarvm/tomcat7-cookbook Stephen C The simple way to do is is to use the service resource to stop Tomcat, use the bash resource or a file resource to copy the WAR file, and then use the service resource to start Tomcat again. That cookbook you are trying to use doesn't do WAR file deployment. But I found this one - https://github.com

A virtual display for ubuntu server

こ雲淡風輕ζ 提交于 2019-12-06 04:36:41
My question is: is there a way to set up a virtual display as default display on a linux server (so that all GUI application launched will be displayed on that display, if no counter indication is made)? I tried using this: xvfb-run java -jar autoclick.jar , which produces the following output : searching graphic devices is Headless:false screen N°1 width:1600 height:900 just 1 robot click: Magic button clicked ! and here's the autoclick code : System.out.println("searching graphic devices"); System.out.println("is Headless:"+GraphicsEnvironment.isHeadless()); GraphicsEnvironment ge =

“xdg_runtime_dir not set in the environment” and pkexec doesn't work

北慕城南 提交于 2019-12-06 04:25:52
I try to execute the following line on ubuntu-server 14.04: $ sudo gedit /usr/local/svn/passwd-team and I get this error: error: XDG_RUNTIME_DIR not set in the environment. (gedit: 11805): Gtk-WARNING **: can not open display: I Googled for help and saw that I had to write: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit Then I got the following message: === AUTHENTICATING FOR org.freedesktop.policykit.exec === Authenticating is needed to run '/usr/bin/env' as the super user Authenticating as: student,,, (student) Password: no talloc stackframe at ../source3/param/loadparm.c:4864,