Configuring apache and smokeping on dynamic IP
by Alex
Hi,
I have a fedora30 desktop on a dynamic IP behind a cable modem that
I'd like to configure to support apache and specifically smokeping.
The problem I'm having I believe is with php-fpm. I've installed and
configured it, but trying to access it results in a gateway timeout
error. I do see entries in the logs when this fails, so I'm sure I'm
at least reaching the desktop successfully.
The desktop is on a dynamic IP (192.168.9.110) behind a cable modem
with a dynamic IP. I've configured port forwarding for port 8027 to
forward to port 8027 on the machine itself where apache is listening.
I've also configured port 8022 to forward to port 8022 on the desktop
to provide ssh access, and can ssh to it successfully.
I've configured the smokeping.conf apache config to allow any IP to
communicate with it for now. I can also reach the default fedora test
page successfully.
What is the minimum apache config that is necessary to work with
smokeping without configuring a virtual host? I haven't changed the
/etc/httpd/conf/httpd.conf, /etc/httpd/conf.d/ssl.conf and
/etc/httpd/conf.d/fcgid.conf files from the default. I've just changed
the Listen statement in ssl.conf to use 8022 instead of 80.
Here is my /etc/httpd/conf.d/smokeping.conf:
<Directory "/usr/share/smokeping" >
Require local
Require ip 68.195.193 192.168
</Directory>
<Directory "/var/lib/smokeping" >
Require local
Require ip 68.195.193 192.168
</Directory>
ScriptAlias /smokeping/sm.cgi /usr/share/smokeping/cgi/smokeping.fcgi
Alias /smokeping/images /var/lib/smokeping/images
Alias /smokeping /usr/share/smokeping/htdocs
The /etc/httpd/conf.d/fcgid.conf file is also very simple:
AddHandler fcgid-script fcg fcgi fpl
FcgidIPCDir /run/mod_fcgid
FcgidProcessTableFile /run/mod_fcgid/fcgid_shm
The /etc/httpd/conf.d/ssl.conf file is also the default, and includes
the SetHandler statement to use php-fpm, I believe:
<IfModule !mod_php5.c>
<IfModule !mod_php7.c>
# Enable http authorization headers
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
<FilesMatch \.(php|phar)$>
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
</FilesMatch>
</IfModule>
</IfModule>
Here is my /etc/php-fpm.d/www.conf. It is also very much the default.
[www]
user = apache
group = apache
listen = /run/php-fpm/www.sock
listen.acl_users = apache,nginx
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 3
slowlog = /var/log/php-fpm/www-slow.log
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
The /var/log/php-fpm/www-error.log file is empty. After attempting to
reach the system remotely, I see the following message in the apache
error_log from my remote IP:
Wed May 15 15:42:17.997621 2019] [fcgid:warn] [pid 14476:tid
139916520441600] [client 68.195.199.42:34118] mod_fcgid: read data
timeout in 40 seconds
I only have four php packages installed:
php-cli-7.3.5-1.fc30.x86_64
php-7.3.5-1.fc30.x86_64
php-fpm-7.3.5-1.fc30.x86_64
php-common-7.3.5-1.fc30.x86_64
Of course I have restarted both the php-fpm and httpd services. I'm
really hoping someone can tell me what I'm doing wrong to cause it to
always timeout on an otherwise idle box.
4 years, 11 months
mkpasswd
by Aleksandar Kostadinov
Hi,
in Fedora 28 I used the command `mkpasswd` [1] to generate passwords
according to different criteria. Now in Fedora 30 this command asks for
a password to encrypt for /etc/passwd usage.
Any ideas how do I get back the old `mkpasswd`?
[1] https://linux.die.net/man/1/mkpasswd
4 years, 11 months
F29->F30 In Place Upgrade Issues
by Tim Evans
Just did an in-place upgrade from F29 to F30, following the procedure
laid out at https://fedoramagazine.org/upgrading-fedora-29-to-fedora-30/
(System has been progressively upgraded for the last four or five
releases via this procedure.)
Coupla issues, one major.
First (minor), after final reboot, I was forced to create a new user,
which is now the default user on the login screen. Existing userid is
still there, accessible via the "not listed?" link. Everything is intact
in home directory.
How to restore my old userid as the default on the login screen?
Second (MAJOR), once logged into my normal account, the graphical
desktop no longer shows an "Applications" drop-down; all I get is the
"Places" dropdown with no immediate way to start applications.
Browsing Places->Computer->/usr/bin and clicking on applications does
not start them. Clicking on those (like Thunderbird) that have a shell
script startup displays the text of the script.
Others (gnome-termainal, for example) generate a pop up that says:
"Could not display "gnome-terminal." There is no application installed
for "shared library" files. Do you want to search for an application to
open this file?"
Now, Alt-F2 brings up a window that says "Enter Command." Typing "xterm"
or "thunderbird" or "google-chrome" into this box does start the
application. (So, at least, I'm not totally dead in the water here.)
How to get the Applications drop-down back?
--
Tim Evans | 5 Chestnut Court
| Owings Mills, MD 21117
| 443-394-3864
4 years, 11 months
Re: dnf list extras
by eqie@mailbox.org
On 5/14/19 7:41 PM, Joe Zeff wrote:
> I don't know, but I have a guess. The dnf database not only includes
> every package you have installed, it has what repositories provided
> them. Presumably, dnf list extras only returns those packages that came
> from a repo that's currently enabled.
Maybe, but I don't think so since dnf says that *all* those packages
that supposedly aren't available anymore come from either fedora or
updates...
Also, this doesn't explain why those packages were marked as not
available anymore in the first place, since they still seem to be
present in the regular F30 repositories (at lest according to [1]).
[1] https://apps.fedoraproject.org/packages
4 years, 11 months
dnf list extras
by eqie@mailbox.org
Dear all,
I recently did the upgrade from F29 to F30. Afterwards, I wanted to
clean up a bit so I did a `dnf list extras` to list all packages that
are no longer available through the repositories. This returned a rather
long list:
apache-commons-codec.noarch
apache-commons-io.noarch
apache-commons-logging.noarch
apache-commons-net.noarch
bcel.noarch
hamcrest-core.noarch
jakarta-oro.noarch
javamail.noarch
jdepend.noarch
junit.noarch
kernel.x86_64
kernel.x86_64
[...]
I then tried `dnf list extras
--disablerepo=fedora-modular,updates-modular` which returned:
kernel.x86_64
kernel.x86_64
kernel-core.x86_64
kernel-core.x86_64
kernel-debug-devel.x86_64
kernel-debug-devel.x86_64
kernel-devel.x86_64
kernel-devel.x86_64
kernel-modules.x86_64
kernel-modules.x86_64
kernel-modules-extra.x86_64
kernel-modules-extra.x86_64
That's more what I expected. So my question is: Why are *more* packages
listed as not available anymore when those repositories are enabled than
when they're not?
Regards,
eqie
4 years, 11 months
really deep sleep mode?
by Tom Horsley
Is there some sort of ultra deep sleep mode
sddm goes into if it has been unused for a
while? No power on earth seems to be able to
get any signal to appear on my monitor after
I have let the system sit for a long weekend.
Moving the mouse, tapping the spacebar, nothing
works. I've had to ssh into the system and
reboot to get it back twice now. Merely leaving
it overnight is no problem, but leaving it for
two or three days seems to render it unable to wake.
4 years, 11 months
Tip: Xfce 4.13 and panel problems
by ToddAndMargo
Hi All,
I have an upcoming new build of Fedora 30 for a customer.
I wanted to put Xfce on it, but 4.13 way too buggy to
unleash on the general public, especially with all
the talking up of Linux I have been doing.
Well the two deal killer bugs are
https://bugzilla.xfce.org/show_bug.cgi?id=14627
https://bugzilla.xfce.org/show_bug.cgi?id=14854
Where programs disappear from Panel 0, and panels 0
and 1 occasionally go missing at start up.
Well, one of our intrepid heroes on the Xfce bugzilla
gave me this command to use:
xfce4-panel -r
And it works perfect on missing panels and panels with
missing programs.
I will put the above command in start up with a five
second delay and make a desktop launcher for it too.
So Xfce 30 is back on! Yippee!
-T
4 years, 11 months
Strange sudo latency problems
by Gianluca Cecchi
Hello,
sorry in advance for the quite long post...
My laptop has no physical lan adapter, so when installing Fedora 30 it
bypassed the networking section (and also the hostname setting one).
After first boot in post-install configuration I set up wireless connection
and such.
At a certain point, I don't know if due to changing hostname from the
default localhost.localdomain that had been set, or due to applied updates,
I had strange problems with latencies in sudo responses with great amount
of time before asking the password prompt and also when opening menus in
gnome, eg settings (about 1 minute before showing the window), and also the
battery icon at top right disappeared.... probably due to timeout of the
related daemon
I noticed that sssd was automatically configured at boot even if with no
configuration files: no sssd.conf, no files in /etc/sssd/conf.d ?
It seems things a bit better after disabling sssd and reinserting
localhost.localdomain in /etc/hostname and rebooting, but sudo becomes
again sluggish when I connect an usb-c to lan adapter to connect to my work
network... and I have
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN
group default qlen 1000
link/ether d6:5e:e2:84:6c:07 brd ff:ff:ff:ff:ff:ff
3: enp0s20f0u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel
state UP group default qlen 1000
link/ether 00:0e:c6:c0:01:d5 brd ff:ff:ff:ff:ff:ff
inet 10.4.23.16/24 brd 10.4.23.255 scope global dynamic noprefixroute
enp0s20f0u2
valid_lft 14177sec preferred_lft 14177sec
inet6 fe80::d2f4:d7f3:3d9a:7f16/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state
DOWN group default qlen 1000
link/ether 52:54:00:88:fc:56 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0
state DOWN group default qlen 1000
link/ether 52:54:00:88:fc:56 brd ff:ff:ff:ff:ff:ff
[root@localhost ~]#
I didn't customize sudoers file and nsswitch.conf contains (with comment
autogenerated at 11 May, time of install) at the moment
passwd: sss files systemd
group: sss files systemd
netgroup: sss files
automount: sss files
services: sss files
shadow: files sss
hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
bootparams: files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
publickey: files
aliases: files
[root@localhost ~]# ll /etc/nsswitch.conf
lrwxrwxrwx. 1 root root 29 May 11 01:26 /etc/nsswitch.conf ->
/etc/authselect/nsswitch.conf
[root@localhost ~]# ll /etc/authselect/nsswitch.conf
-rw-r--r--. 1 root root 2402 May 11 01:26 /etc/authselect/nsswitch.conf
[root@localhost ~]#
[root@localhost ~]# systemctl status sssd -l
● sssd.service - System Security Services Daemon
Loaded: loaded (/usr/lib/systemd/system/sssd.service; disabled; vendor
preset: enabled)
Active: inactive (dead)
May 14 09:22:12 localhost.localdomain systemd[1]:
/usr/lib/systemd/system/sssd.service:11: PIDFile= references path below
legacy directory /var/run/, updating /var/run/sssd.pid → /run/sssd.pid;
please update the unit file accordingly.
May 14 09:22:28 localhost.localdomain systemd[1]:
/usr/lib/systemd/system/sssd.service:11: PIDFile= references path below
legacy directory /var/run/, updating /var/run/sssd.pid → /run/sssd.pid;
please update the unit file accordingly.
May 14 10:24:36 localhost.localdomain systemd[1]:
/usr/lib/systemd/system/sssd.service:11: PIDFile= references path below
legacy directory /var/run/, updating /var/run/sssd.pid → /run/sssd.pid;
please update the unit file accordingly.
May 14 10:24:51 localhost.localdomain systemd[1]:
/usr/lib/systemd/system/sssd.service:11: PIDFile= references path below
legacy directory /var/run/, updating /var/run/sssd.pid → /run/sssd.pid;
please update the unit file accordingly.
Any hints to debug, and understand what is it expected to be sssd standard
config in Fedora 30?
Thanks,
Gianluca
4 years, 11 months
Laptop and only 100% and 200% monitor scaling shown
by Gianluca Cecchi
Hello,
having a new 13.3" laptop with resolution of 1920x1080 and Fedora 30, I see
that Gnome only gives me option of 100% scaling (that renders with too
small fonts ans duch in my opinion) and 200% (that instead appears as too
big).
The laptop is dual boot and I see that the Windows 10 set by default 125%
scaling after installation
Searching around I only found at the moment an Ubuntu related thread here
https://askubuntu.com/questions/1029436/enable-fractional-scaling-for-ubu...
and what I have tried and works (after reboot) is the suggested gsetting
command
gsettings set org.gnome.mutter experimental-features
"['scale-monitor-framebuffer']"
And this if I understand implies to continue to use Wayland...
Any better experience if using XOrg in Fedora 30 with these kind of
displays resolutions and dimensions?
Any other options?
Thanks,
Gianluca
4 years, 11 months
NetworkManager not there after upgrade to fedora 30
by Emmett Culley
NetworkManager seems to have disappeared when I updated to Fedora 30. Not only didn't my network start on reboot after upgrade, there is no NetworkManager.service to enable or start with systemctl. Running dnf list NetworkManager replies:
Last metadata expiration check: 0:16:45 ago on Sun 12 May 2019 08:02:12 AM PDT.
Error: No matching Packages to list
Running dnf list NetworkManager* returns:
Installed Packages
NetworkManager-config-connectivity-fedora.noarch 1:1.16.0-1.fc30 @fedora
NetworkManager-libnm.x86_64 1:1.16.0-1.fc30 @fedora
Available Packages
NetworkManager-adsl.x86_64 1:1.16.0-1.fc30 fedora
NetworkManager-bluetooth.x86_64 1:1.16.0-1.fc30 fedora
NetworkManager-config-server.noarch 1:1.16.0-1.fc30 fedora
NetworkManager-dispatcher-routing-rules.noarch 1:1.16.0-1.fc30 fedora
NetworkManager-fortisslvpn.x86_64 1.2.10-1.fc30 fedora
NetworkManager-fortisslvpn-gnome.x86_64 1.2.10-1.fc30 fedora
NetworkManager-iodine.x86_64 1.2.0-8.fc30 fedora
NetworkManager-iodine-gnome.x86_64 1.2.0-8.fc30 fedora
NetworkManager-l2tp.x86_64 1.2.12-1.fc30 fedora
NetworkManager-l2tp-gnome.x86_64 1.2.12-1.fc30 fedora
NetworkManager-libnm.i686 1:1.16.0-1.fc30 fedora
NetworkManager-libnm-devel.i686 1:1.16.0-1.fc30 fedora
NetworkManager-libnm-devel.x86_64 1:1.16.0-1.fc30 fedora
NetworkManager-libreswan.x86_64 1.2.10-1.fc30.1 fedora
NetworkManager-libreswan-gnome.x86_64 1.2.10-1.fc30.1 fedora
NetworkManager-openconnect.x86_64 1.2.4-11.fc30 fedora
NetworkManager-openconnect-gnome.x86_64 1.2.4-11.fc30 fedora
NetworkManager-openvpn.x86_64 1:1.8.10-1.fc30 fedora
NetworkManager-openvpn-gnome.x86_64 1:1.8.10-1.fc30 fedora
NetworkManager-ovs.x86_64 1:1.16.0-1.fc30 fedora
NetworkManager-ppp.x86_64 1:1.16.0-1.fc30 fedora
NetworkManager-pptp.x86_64 1:1.2.8-1.fc30.1 fedora
NetworkManager-pptp-gnome.x86_64 1:1.2.8-1.fc30.1 fedora
NetworkManager-ssh.x86_64 1.2.9-1.fc30 fedora
NetworkManager-ssh-gnome.x86_64 1.2.9-1.fc30 fedora
NetworkManager-sstp.x86_64 1:1.2.6-3.fc30 fedora
NetworkManager-sstp-gnome.x86_64 1:1.2.6-3.fc30 fedora
NetworkManager-strongswan.x86_64 1.4.4-2.fc30 fedora
NetworkManager-strongswan-gnome.x86_64 1.4.4-2.fc30 fedora
NetworkManager-team.x86_64 1:1.16.0-1.fc30 fedora
NetworkManager-tui.x86_64 1:1.16.0-1.fc30 fedora
NetworkManager-vpnc.x86_64 1:1.2.6-2.fc30 fedora
NetworkManager-vpnc-gnome.x86_64 1:1.2.6-2.fc30 fedora
NetworkManager-wifi.x86_64 1:1.16.0-1.fc30 fedora
NetworkManager-wwan.x86_64 1:1.16.0-1.fc30 fedora
So what to I install to get Network manager back.
I've managed to get my network functional by using network scripts and systemctl start network, But I would like to be able to select also connect to a wireless network.
What am I missing?
Note that running nm-coonnection-editor give me a network manager dialog, but none of the fields are enabled.
Emmett
4 years, 11 months