Go Premium for a chance to win a PS4. Enter to Win

x

Linux

65K

Solutions

32K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

I have a Wordpress site that I recently air-lifted from Hosting to Cloud (Amazon Web Services). This is on a fresh LAMP stack and everything seems to be working with the exception of sending mail.

So, two things that make me think this is Server level:

1. "Forms -> Entries" show the entires submitted from the website but they haven't been forwarded to the correct email address.

2. "Settings -> General -> Email Address" did not send the confirmation email (changing the Administrative email).

Where are places I can check to make sure that mail (specifically I believe "sendmail") is working? The maillog (e.g. sudo tail -20 /var/log/maillog-20171119) doesn't show any mail in the queue.

Thanks for your help.
0
Veeam and MySQL: How to Perform Backup & Recovery
LVL 1
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Hi Experts,

I'm trying to get started with the the Google Calendar API, following the steps at https://developers.google.com/google-apps/calendar/quickstart/php

I've completed Step 1, and have my .json file in my test project folder, but I have no idea on Step 2: Install the Google Client Library

My environment is Win 7 Pro, Running IIS with PHP as CGI.  I have never needed to use github, SSH or Linux commands.

I have also checked the alternative installations options, but same thing - none make sense.  I was actually thinking that I could download a set of Google files into my project, then require_one some_file.php, and go.  Sort of PHPMailer and TCPDF.

I actually see this at the start of Step 3, but where is the vendor/autoload.php coming from? Guessing Step 2?

Thanks!
0
Hi Experts

Could you point what is the major differences and what must be concerned when changing PHP use from Windows to Linux (Debian f.e.) ?

Thanks in advance!
0
Dear Experts,
I use PHP 7 and Linux server
I want to list all the folders and files inside a directory

I want to list it like this:

firstfolder
      file1.jpg
      file2.jpg
      file3.jpg
secondefolder
      filename.jpg
      filename2.jpg

How can I do that with PHP?

below code works perfectly fine. However it only brings me one folder, I want to see nested folders and what is inside..

$handle = opendir(dirname(realpath('myfolder')).'/myfolder/1234/');
        while($file = readdir($handle)){
            if($file !== '.' && $file !== '..'){
                echo '<img src="myfolder/1234/'.$file.'" border="0" />';
            }
 }

Open in new window


thank you
0
Hello there,

I have downloaded java jdk-8u144-linux-x64.tar and put it in this location /var/cache/oracle-jdk8-installer and then I add the java 8 repo to apt-get like so
sudo add-apt-repository ppa:webupd8team/java

Open in new window

and then when i try to install java using the following cmd
sudo apt-get install oracle-java8-set-default

Open in new window

. I get error that

The following NEW packages will be installed:
  oracle-java8-set-default
0 upgraded, 1 newly installed, 0 to remove and 132 not upgraded.
1 not fully installed or removed.
Need to get 0 B/6,788 B of archives.
After this operation, 20.5 kB of additional disk space will be used.
Setting up oracle-java8-installer (8u151-1~webupd8~0) ...
Installing from local file /var/cache/oracle-jdk8-installer/jdk-8u151-linux-x64.tar.gz
Removing outdated cached downloads...
sha256sum mismatch jdk-8u151-linux-x64.tar.gz
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

I know the cause of the error and that is it is trying to install the latest version which is 151 and I have version 144 in the /var/cache/oracle-jdk8-installer folder. How can I tell it to use that 144 and not try to use the latest version.

cheers
Zolf
0
I've got a cron job that runs 4 times a day which uses a simple shell script to perform a mysql_dump then tar the file (DB_BACKUP-2017-11-18.55.25.tgz) and place it in a directory.

#!/bin/bash

backup_file="/share/CACHEDEV1_DATA/Web/SQL/vcal.sql"
backup_dir="/share/CACHEDEV1_DATA/Web/SQL/SQL_Backup"
tar_name=`date +%Y-%m-%d.%M.%S`

# Dump MySQL Database
/usr/local/mysql/bin/mysqldump --user="user" --opt vcal > /share/CACHEDEV1_DATA/Web/SQL/vcal.sql

# Backup MySQL Dump File
/bin/tar -czPf $backup_dir/"DB_BACKUP-"$tar_name.tgz $backup_file

exit 0

Open in new window


I'm trying to figure out a way to have the script delete backups which are older than 4 days.
Ideally, I'd like to be left with 16 files (4 are created per day) at any given time

Any suggestions?

Thank you for looking :)

Ken
0
Hello Experts,

very simple question here

I have installed an Centos OS 7.3 image from Azure.  I have SSH'd into the machine. Can someone let me know how to find out if the machine is 64 bit of 32 bit?

Regards

Carlton
0
hello experts
for i am a new for Linux, while i am trying to start up IPSEC service i got below error and failed, could you guide me how to identify the problem and fixed?
thank you

[root@izj6cj3u8v3v07l4w3162fz ~]# systemctl start ipsce
Failed to start ipsce.service: Unit not found.
[root@izj6cj3u8v3v07l4w3162fz ~]# systemctl start ipsec
Job for ipsec.service failed because the control process exited with error code. See "systemctl status ipsec.service" and "journalctl -xe" for details.
[root@izj6cj3u8v3v07l4w3162fz ~]# systemctl status ipsec.service
鈼?ipsec.service - Internet Key Exchange (IKE) Protocol Daemon for IPsec
   Loaded: loaded (/usr/lib/systemd/system/ipsec.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Fri 2017-11-17 14:42:55 CST; 7s ago
     Docs: man:ipsec(8)
           man:pluto(8)
           man:ipsec.conf(5)
  Process: 3074 ExecStartPre=/usr/libexec/ipsec/addconn --config /etc/ipsec.conf --checkconfig (code=exited, status=3)

Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: ipsec.service: control process exited, code=exited status=3
Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: Failed to start Internet Key Exchange (IKE) Protocol Daemon for IPsec.
Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: Unit ipsec.service entered failed state.
Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: ipsec.service failed.
Nov 17 14:42:55 izj6cj3u8v3v07l4w3162fz systemd[1]: ipsec.service holdoff …
0
Hi ,

we have a redhat  enterprise server version 6.6 , this server goes down(power off)  at specific time. we want to review the events happened only at that day when server goes down  .. like how we check in windows

what is the commands needed to check and how to specify the day needed

thanks
0
I have to download and install OpenMs from https://pkgs.org/download/openms and I am using ubutu17.10

Can I download and install Ubuntu 17.04 (Zesty Zapus) or Ubuntu 14.04 LTS (Trusty Tahr) for Linux Ubuntu17.10?
0
New feature and membership benefit!
LVL 11
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Hello,

I would like to download a .tar.bz2 file found in a website into linux ubuntu.  I can download it to my PC, but I would not know how to move it from windows directory to linux directory in the virtual machine.  Is there a command? The file is called
pwiz-bin-linux-x86_64-gcc48-release-3_0_11567.tar.bz2 and it is found at http://proteowizard.sourceforge.net/downloads.shtml
0
I have a customer that I inherited running Red Hat Linux ES 3 that wants to send email from the Linux side.  
I need to be able to send email using port 587.

cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon)

The Windows support person says smtp must use port 587.

SMTP: smtp.emailarray.com  Port: 587
Login: info@computerohio.com

/etc/services
smtp            25/tcp          mail
smtp            25/udp          mail
submission      587/tcp         msa             # mail message submission
submission      587/udp         msa             # mail message submission

Since 587 is used by submission can smtp also be changed to 587 in the /etc/services file?

netstat -tanp | grep send | grep LISTEN
tcp        0      0 127.0.0.1:25            0.0.0.0:*    LISTEN      483/sendmail: acce

The Windows support person also says the following:
The Windows server is running DNS, so you may want to change the DNS servers to:
10.10.10.176
8.8.8.8
It should resolve "smtp.emailarray.com" to 69.28.212.198.

cat /etc/resolv.conf
nameserver 10.10.10.1
nameserver 68.10.16.25
nameserver 10.10.10.176
nameserver 8.8.8.8
search appemc


cat /etc/sysconfig/networking/devices
# Intel Corp.|82540EM Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=none
BROADCAST=10.10.10.255
HWADDR=00:c0:9f:27:7b:8f
IPADDR=10.10.10.100
NETMASK=255.255.255.0
NETWORK=10.10.10.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
GATEWAY=10.10.10.1


cat …
0
So this week I have learned some things the hard way unfortunately. I have a T2.Medium EC2 Instance on a Ubuntu Server. I had decided to upgrade from Ubuntu 14.04 to 16.04

I am a newbie but have some experience in this. I thought I had done this right and I made a snap shot of my volume image weekly.

Well after I have no idea what exactly happened but I could not access or repair my WordPress website after I upgraded. So I thought I would open a new instance using my AMI snapshot. But this didn't work either as the new instance was also the new 16.04 ubuntu.....

So my question is I know the newer version is better for security reasons and more but

how do I make a complete back up of my system so this happens again I can revert back and work on the solution on the side until I am sure the new upgrade works 100%?   And yes I know I should had done this the first time but lesson learned.
0
I've been tasked with migrating a Wordpress site from a hosting company to Amazon Web Services. I'm pretty familiar with AWS, but Wordpress not so much (medium, lets say). This site is going to use the same domain name, but on a different server.

Today I build a LAMP stack from scratch and have successfully tested Apache, MySQL and PHP.

I have a compressed copy of the website along with the MySQL Database.

Can I just copy the contents of that zipped folder and MySQL to the new LAMP stack? (e.g use wget to dump the root contents, like the "wp-contents" folder into the /var/www/html root, etc. )

If anyone has a good recipe for this, I'd love to read it.

Thanks for your help.
0
I am trying to install Winehq in ubuntu17.10
when I run sudo apt-get update, i get the following error:\
Ign:1 http://ppa.launchpad.net/marutter/rrutter/ubuntu artful InRelease
Ign:2 http://security.ubuntu.com/ubuntu artful-security InRelease                                                                                                      
Ign:3 http://archive.ubuntu.com/ubuntu artful InRelease                                                                                                                
Ign:4 http://us.archive.ubuntu.com/ubuntu artful InRelease                                                                                                                                      
Err:5 http://ppa.launchpad.net/marutter/rrutter/ubuntu artful Release                                                                                                                            
  404  Not Found
Err:6 http://security.ubuntu.com/ubuntu artful-security Release                                                                                                                              
  404  Not Found [IP: 91.189.88.161 80]
Err:7 http://archive.ubuntu.com/ubuntu artful Release                                                                                                                  
  404  Not Found [IP: 91.189.88.152 80]
Ign:8 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease                                                                  …
0
I need to redirect just this url: http://2017test.rotarypdx.org/programs to this one: http://2017test.rotarypdx.org/programs-page

This url: http://2017test.rotarypdx.org/programs is actually a wordpress category so there will be sub-categories with posts in it. Those sub-categories and their posts I need to still go to the correct urls such as http://2017test.rotarypdx.org/programs/youth-programs/

When I use the regular redirect of:
redirect 301 /programs http://2017test.rotarypdx.org/programs-page
the sub-category also redirects with programs-page in it leading to a 404.
0
Experts,
I have an application on a linux server that writes some output files into a single directory. With recent growth in business that directory has about 147,000 files in it at any time.  These are mostly temp print files that are continually purged

I have a handful of users that use FTP clients (WS_FTP and Filezilla) to copy specific files from linux to their PC's. This is not working anymore, the FTP clients are only displaying a fraction of the total files.

I am not sure what is going on. Is there a limitation on either the FTP client of Linux server? Is some type of network or firewall issue preventing listing of all files? Is the issue at the desktop level?

As a temp solution, I am forced to access the Linux server and copy the file into a new (near empty) directory. The user can then grab the file from there no problem.
0
I have installed my app in a Bitnami Lamp stack subdirectory off of the root.  When I try to access it using abc.com/sub it doesn't work.  But if I put in a test program in abc.com/abc.php it works fine.   I need this stack to have 4 sites on it.  

How do I set it up so I can 4 vhosts?

The first vhost is only a test and isn't propogated.  The rest will be added after the first vhost is completed.

Thanks,
0
If I suspect that I am using the wrong pem key , is there a way to test a pem key to make sure it is not valid or is valid


Is there a %100 certain was to see that the pem key is wrong or mismatched "?


how can I bee %100 sure this is the issue , before I claim this to be the issues


thanks !!!!!!!!!
0
Veeam Disaster Recovery in Microsoft Azure
LVL 1
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

hi,

as MySQL configuration only allow one db log for ALL user DB. how about DB2 ? it should has one or more log file for EACH user database inside, right?
0
hi,

for DB2, what is the HA tools for DR and HA? what is the tools involved in multi site configuration.
0
Hi experts
I have nextcloud 12.0 running on ubuntu desktop 16.4 the system working as well
After rebooting my ubuntu I found that the nextcloud stop working
I am trying to start Apache2 service but nothing happened
This is the first time I reboot my server
0
What set -e dose in this shell script.

set -e



#!/usr/bin/env sh

ANSIBLE_ROOT=${ANSIBLE_ROOT:-~/ansible}
scl enable python27 bash <<!
set -e
export https_proxy=https://10.198.140.122:8080
if [ ! -d "$ANSIBLE_ROOT/bin" ]
then
    virtualenv "$ANSIBLE_ROOT"
    . "$ANSIBLE_ROOT/bin/activate"
    echo "Installing latest version of ansible"
    pip install ansible -i https://artifactory.global.raju.com/artif4actory/api/pypi/pypi-release/simple
    pip install docker-py -i https://artifactory.global.raju.com/artifactory/api/pypi/pypi-release/simple
    pip install docker-compose==1.15.0 -i https://artifactory.global.raju.com/artifactory/api/pypi/pypi-release/simple
    deactivate
fi
!

Open in new window

0
help me to understand the below lines in below shell script..

Why we need to use virtualenv "$ANSIBLE_ROOT" .... and what is the use of virtualenv here ....

and how activate and deactivate worked ...i am bit confused how activate and deactivate keywords worked here..
. "$ANSIBLE_ROOT/bin/activate"
deactivate


and also how pip works with -i option...i.e. below

pip install docker-compose==1.15.0 -i https://artifactory.global.raju.com/artifactory/api/pypi/pypi-release/simple


#!/usr/bin/env sh

ANSIBLE_ROOT=${ANSIBLE_ROOT:-~/ansible}
scl enable python27 bash <<!
set -e
export https_proxy=https://10.198.140.122:8080
if [ ! -d "$ANSIBLE_ROOT/bin" ]
then
    virtualenv "$ANSIBLE_ROOT"
    . "$ANSIBLE_ROOT/bin/activate"
    echo "Installing latest version of ansible"
    pip install ansible -i https://artifactory.global.raju.com/artif4actory/api/pypi/pypi-release/simple
    pip install docker-py -i https://artifactory.global.raju.com/artifactory/api/pypi/pypi-release/simple
    pip install docker-compose==1.15.0 -i https://artifactory.global.raju.com/artifactory/api/pypi/pypi-release/simple
    deactivate
fi
!

Open in new window

0
I have a command like this ...could you explain what each term doing in below command.

scl enable python27 bash <<!
0

Linux

65K

Solutions

32K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

Vendor Experts

Sandeep KumarKernel Data Recovery Learn more about Kernel Data Recovery
Naveen SharmaKernel Data Recovery Learn more about Kernel Data Recovery