Hot answers tagged

5

Changing the webserver port also requires changing the SELinux policy for the webserver which is well documented : Run the semanage port -a -t http_port_t -p tcp 82 command as the root user to add the port to SELinux policy configuration. Run the semanage port -l | grep -w http_port_t command as the root user to confirm the port is added... ...


4

You do realise that locate looks at a database cache with filenames (created nightly/manually with the updatedb command) and not at your live file system. locate does not reflect the actual state of your system. You might want to use ls to look at /usr/share/phpmyadmin instead...


2

An approach is to serve static files in the front-end and only proxy if they do not exist. You can deploy your error pages and resources on this server. Avoid directory conflicts between the front and back ends. For example: root /usr/share/nginx/html; location / { try_files $uri @proxy; } location @proxy { proxy_pass http://api; } See this ...


2

You're right - nginx can't distinguish a request for the error page assets from normal requests. You should either change the assets to use a unique path that you can do location matching on (maybe something like /500/logo.png), or use an external service to host the assets (S3 or the like), and load it from there. For the location match, it would ...


2

No, this is not possible. Haproxy does not understand the FTP protocol, and therefore can't do things like re-write the FTP commands and responses that include the true IP address of the FTP server. If that's a requirement, then you'll have to find a different proxy solution.


2

Not quite the answer to your current problem, but it will render the whole issue moot since you're trying to trigger the script from the same host running your site anyway: When you need to run PHP scripts from cron you're generally better of running them from the PHP command line interface rather than making a web request to the script. Depending on the ...


2

127.0.0.1 is your localhost loopback interface, meaning you're reaching your own server. For various reasons, your server is using that first to lookup DNS and since your server doesn't know how to answer a DNS query, you have to wait until the query times out and moves on to the 2nd nameserver. Just use the real DNS nameserver as the only entry: ...


2

This is probably due to OS support or a resource issue. EL7 was not intended for use with vSphere 4. The VMware support matrix reinforces this. I see you're using open-vm-tools, but it looks like you may have a deeper issue. See: https://access.redhat.com/solutions/21849 and: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=...


2

You're using the third party city-fan repository. This repo has dependencies which are in the EPEL repository, one of which is libnghttp2, so you must have EPEL enabled to use city-fan.


1

I would expect your DIMM slots to perhaps be labelled BANK A DIMM 0, BANK A DIMM 1, etc. up to BANK B DIMM 3. You could make the assumption that BANK A DIMM 0 is the problem one, and so try swapping it with one of the other 7 assuming they're all equal and repeat your tests until it generates an error again. If a different /sys/devices/system/edac/mc/mc?/...


1

More than likely you're pointed to 127.0.0.1 (localhost) because your distro uses a caching name service daemon. Think of it like a caching DNS server that runs on your own computer. The use of such a daemon is of debatable effectiveness. It does have some benefits in speeding up some types of Internet usage by cutting down on the number of DNS requests ...


1

I realized it is a "hairpin DNS" issue. Best solution I guess to configure NAT to not shortcut request to my own external IP to local IP... but still my provider not did it and I temporary fixed it by nano /etc/hosts added a line y.y.y.y myserver.com where y.y.y.y is my LOCAL address.


1

Take a good look at the actual running iptables configuration ipatables -L -vn and ensure that nothing is blocking the source IP of the system running he curl/ping commands - take appropriate action. If there is nothing there then something upstream, between the systems may be blocking. As ping is being blocked I guess you could try mtr mtr -4 example....


1

The correct permissions for the files in the storage daemon are bacula:disk. So chown -R bacula:disk /var/bacula/backups



Only top voted, non community-wiki answers of a minimum length are eligible