Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jeffshead

Pages: [1]
1
FTP / Uploaded files missing code
« on: September 19, 2018, 12:55:58 PM »
Has anyone encountered an issue where the files you upload are cut off?

If I use a standard user FTP account and upload a full website, web app or even large, single files, sometimes some of the files are missing code. It's as if you open a file in a text editor and delete the bottom 1/3 of the file.

I havn't encountered this issue if I use the root account and SFTP to upload the same files or directories.

What could be causing this issue?

2
CentOS Configuration / Add additional IP Addresses
« on: August 20, 2018, 09:43:50 PM »
I am behind a UTM appliance so I have NAT enabled. I would like some domains to have their own IP address. I have 192.168.1.10 specified for Default IP, Shared IP and NAT'ed IP.

I know how to add additional IP addresses to the server but how do I set up the config files for each domain?

I added IP address 192.168.1.11 to the server and selected it for a particular user account. I want to use this IP address for a specific domain. I am using Apache, NGINX Reverse Proxy and Varnish. Do I have to manually change the IP address in all three server's config files? What about the Varnish config files? Do I have to create/add an additional secret for the new IP? What code do I add/edit and to what Varnish config file(s)?

Also, when I use Apache Settings->Rebuild Virtual Hosts, it uses 192.168.1.10 for all domains even though I have 192.168.1.11 specified for one of the user accounts. The Rebuild Virtual Hosts tool isn't designed to pull/insert the IP address assigned to each user account???

3
Apache / Definitive answer: HTTP to HTTPS www
« on: August 10, 2018, 01:11:19 PM »
I have been struggling with this for days but can't get this to work in all situations.

What is the proper way (per domian) to direct all traffic to https://www.domain.tld/:

http://domain.tld-> https://www.domain.tld/
http://www.domain.tld-> https://www.domain.tld/
https://domain.tld-> https://www.domain.tld/

I am using Apache & Varnish Cache & Nginx Reverse Proxy and AutoSSL. I have tried rewrites and redirects in .htaccess and in vhosts configs but I have been unsuccessful.

I know you can edit the vhost templates and I also see that you can have per domain, custom config files but what is the proper code and way of doing this so the configurations are not lost when CWP rebuilds the vhosts?


Help... I'm starting to hemorrhage!

4
CentOS-WebPanel Bugs / Apache Builder (compiler) not working
« on: May 11, 2018, 12:20:23 PM »
I tried to update Apache to latest version. The latest version in the drop-down list is 2.4.33:


Once compiling completes, Apache cannot start because httpd.conf is virtually blank except for a couple of lines (forgot to record those).

If I manually restore a backup of httpd.conf, Apache will start but it still shows it's version 2.4.29:


Am I missing a step?

5
CentOS-WebPanel Bugs / Simple PHP.ini editor does not work
« on: May 11, 2018, 01:44:44 AM »
When I edit the text in any of the text boxes on this page and click the save button, the edits do not stick.

If I make edits on the PHP.ini Configuration page or edit the php.ini directly, the edits do stick and they show up on the Simple PHP.ini editor page.

6
Installation / How to use Clamd to scan uploaded files
« on: March 02, 2018, 04:04:51 PM »
I disabled the postfix service because email for all domians hosted on CWP is handled by another server.

However, I would like to use ClamAV to scan files that are uploaded via some Perl web apps. I enabled and started 'clamd-scan.service' and 'clamd@scan.service'.

The scripts are not working and when I test via command line (e.g., clamdscan /home/jeff/public_html/uploads/eicar_com.zip), I get the following error:

Code: [Select]
ERROR: Could not connect to clamd on 127.0.0.1: Connection refused

----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.011 sec (0 m 0 s)

I also tried enabling and starting 'amavisd.service' but I got the same error when testing.

Not sure what to look at next. Anyone have any ideas?

7
Installation / CGI not working CWP with Centos 7
« on: March 01, 2018, 03:34:45 PM »
I followed this (http://wiki.centos-webpanel.com/how-to-run-cgi-scripts-with-apache) and this (http://wiki.centos-webpanel.com/how-to-enable-mod_suexec-with-apache) but I still cannot get CGI working.

When I go to: https://mysite.com/cgi-bin/test.cgi, I get a 500 Internal Server Error.

I get this in the error log:
Code: [Select]
End of script output before headers: test.cgi

I get the following in the suexec log:
Code: [Select]
[2018-03-01 10:25:18]: uid: (1001/jeff) gid: (1001/jeff) cmd: test.cgi
[2018-03-01 10:25:18]: file has no execute permission: (/home/jeff/public_html/cgi-bin/test.cgi)

I used WinSCP to upload 'test.cgi' from a Windows PC to the server and I also used WinSCP to chmod 'test.cgi' to 0755. I also used CWP to fix permissions for the user account.

As per the wiki, I get "cgid_module (shared)" and "suexec_module (shared)" when testing to see if the modules are loaded.

Not sure what to do at this point.

I get the following when I check permissions via command line:
Code: [Select]
[root@cwp ~]# ls -la /home/jeff/public_html/cgi-bin/test.cgi
-rw-r--r-- 1 jeff jeff 98 Feb 28 17:49 /home/jeff/public_html/cgi-bin/test.cgi

8
Installation / vhost has wrong IP address?
« on: February 21, 2018, 02:26:42 AM »
I am adding additional IP addresses to CWP. Some accounts/domains will use the shared IP and others will have their own IP address.

When I create an account and choose one of the additional IP addresses, why does the vhost file, that is created for that domain, contain the shared IP address instead of the one I selected when I created that account/domain? Shouldn't the vhost file contain the IP address that I selected? Is this by design?

Also, if I edit the vhost file so that it contains the correct IP address, it reverts to the shared IP address if I rebuild all vhost files. Is this by design?

I just don't see the point in specifying which IP address is to be used when creating an account/domain if you have to go back and manually change it ???

9
Addons / eXtplorer not working
« on: February 19, 2018, 02:15:14 PM »
I get 500 internal server error when I try to access: http://mysite.com/filemanager/

I see the shortcut and the eXtplorer folders have been added to the home directory.

How to fix?

10
Installation / CWP behind WAF
« on: December 28, 2017, 01:14:51 PM »
Can CWP be used if server it is installed on is behind a Web Application Firewall (WAF)? The WAF uses NAT so all IP's to the server are internal. The server is also a VM, not a physical server. I will have 5-8 websites available to the public.

What issues will I encounter? What other info do you need from me in order to answer my questions? I'm new to Linux, coming from Windoz :-\ I have had a WAMP stack set up in this way for many years without issue but I would like to move to Linux. I would like to keep the new Linux server behind the WAF for ease of administration.

Thanks!

Jeff

Pages: [1]