Find apache config files for an IP
httpd -S
Linux, Windows, Software Tips, Articles and Hacks
Find apache config files for an IP
httpd -S
Trying to start the PHP-FPM support for nginx in plesk:
Error: Unable to make action: Unable to manage service by phpinimng: [18-May-2015 09:13:30] ERROR: unable to bind listening socket for address ‘127.0.0.1:9000’: Address already in use (98)
[18-May-2015 09:13:30] ERROR: FPM initialization failed
Failed to start php-fpm service
(‘–type=fpm’, ‘php-fpm’)
Check for the process running:
# netstat -tulpena | grep 9000 tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 0 1005390944 30929/php-fpm
Kill the process and then restart the PHP-FPM support for nginx in Plesk
kill -9 processid
Error in owncloud installing apps. CentOS 6.6. Owncloud 8.:
App does not provide an info.xml file
edit owncloud/lib/private/httphelper.php
nano owncloud/lib/private/httphelper.php
Add the line:
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
Do you think 1 Megabit per second (1 Mbps) will allow you to download a 1 Megabyte file in one second?
This is not the case. A Megabit is 1/8 as big as a Megabyte.
1 Megabyte = 8 Megabits
Mbps = Megbits per second
MBps = MegBytes per second
Internet speed is usually measured in megabits per second
So, to download a 1MB file in 1 second you would need a connection of 8Mbps ( 8 Megbits per second). The difference between a Gigabyte (GB) and a Gigabit (Gb) is the same, with a Gigabyte being 8 times larger than a Gigabit.
To calculate how long it will take a file to download over your connection, you can use Google’s simple MB/Mb converter:
Configuring the rDNS for a linux server is easy. A windows server with plesk is a different story.
Plesk
I changed the hostname in the plesk Tools and Settings.
Rebooted the system. Then sent a test email. Here is the header:
Received: from WIN-QO7M1M92HBS.home
Humm…where is the new hostname? So I did some investigation. I checked the computername in windows:
Then I checked the Mailenable settings > Services and Connectors > SMTP > properties.
So, the email received from name is a combination of the Windows computer name and the Mailenable Local domain name.
Now that I had this information, how do I give the mail server a valid hostname?
For WHM
You should be able to enable this in the WHM section – Home » Software » Module Installers. Click “Manage” PHP Extensions and Applications Package. Search for Find a PHP Extensions and Applications Package – Mail. You should be able to instal this there.
To enable gzip, login to cPanel account for the user account which GZIP compression wants to be turned on. Then click on Optimize Website under Software / Services. Choose Compress All Content or Compress the specified MIME types to enable GZIP compression on all websites hosted by the particular account. Click on Update Settings when done.
MIME types include text/html, text/plain, text/xml, text/css, text/javascript, application/javascript, application/xhtml+xml, application/xml, application/rss+xml, application/atom_xml, application/x-javascript, application/x-httpd-php, application/x-httpd-fastphp, application/x-httpd-eruby, and image/svg+xml.
Once you’re done you can easily test to see if the compression is working by using the gzip test tool here: http://www.gziptest.com/
Symptoms
The Health Monitor displays a value of zero for CPU, memory, etc.
Cause
Corrupted old Health Monitor statistics or Unfinished installation and initial configuration of Health Monitor.
If you log into plesk and go under tools & settings you will find under the Plesk heading the Updates and Upgrades link. From inside here you can add support for all of the PHP versions you’d like.
Getting 502 Errors on plesk
Try and disable nginx and re-configure your apache configuration to see if it will correct the errors nginx is showing.
To disable nginx, issue :
# /usr/local/psa/admin/bin/nginxmng -d
To reconfigure your apache configuration issue :
# /usr/local/psa/admin/bin/httpdmng --reconfigure-all