Cpanel, Apache, And Includes
Nov 29, 2008
I have a problem I am tracing on a single virtual host on a dedicated server running whm/cpanel and apache 2.2.9. I am tracking down a 500 internal server error on a group of cgi scripts (that works on another virtual host on the same server). Apache was installed with easy apache included with whm.
My problem has been narrowed to the cgi-bin itself. To test I created a simple hello world script that runs in the web directory of this particular virtual host, but gives a 500 error when run in the cgi-bin.
Looking at the configs for apache, boy is this a mess, I have a group of configs in /etc/httpd/conf and another group in /usr/local/apache/conf. When I restarted apache it seems to be reading the /usr/local/apache ones (even though they both look the same in /etc/httpd also.
On the httpd.conf file, the virtual hosts are listed there with all the paths I need. But above each one it gives a warning:
DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
The include is listed on the virtual host as:
Include "/usr/local/apache/conf/userdata/domain/domain.com/*.conf"
on the one that works. And in the following format:
Include "/usr/local/apache/conf/userdata/std/2/domain2/domain2.com/*.conf"
on the one that doesn't.
The funny thing is that /usr/local/apache/conf/userdata does not exist.
This makes me truly appreciate my DirectAdmin server. Anyone have ideas where to look for adjusting apache server settings on this type of setup?
And is this complicated setup due to easy apache or cPanel itself?
View 2 Replies
ADVERTISEMENT
Jun 19, 2008
I am having some trouble with getting 'include' working. I have a new dedicated server running Apache 2.0.63 and PHP 5.2.6. Local includes on the same domain are running ok, but remote includes are throwing a problem. On the many sites we plan to host on this servber we use a central 'webmaster' page called as an include from a specific site (also on the same server).
I need to edit the PHP.ini and /or recompile the PHP with the appropriate modules to do one of the following...
1 (ideally) - allow includes from any site that is held on this dedicated server
2. allow includes from specified websites
3. simply allow remote includes
right settings to get one of these
options running and solve my problem?
View 5 Replies
View Related
Oct 23, 2014
I use the Apache server included with Mac OSX as my local development and testing environment for front-end web coding work. On the latest update to Yosemite (10.10), all of my .shtml files stopped processing my include virtual statements (or any SSI statements, for that matter).
I'm not seeing any errors, but the includes just show up like commented out code in the HTML when I view source. I've set up Apache to use a httpd-vhosts.conf for my various local dev servers (project1.local, test.local, etc...) Nothing seems to work.
View 2 Replies
View Related
Jun 16, 2009
I have issue with my shared server. Someone used SSI to local attack user on my server.
I want to disable SSI but i dont find out how to ? (expect manual recomplie apache)
View 14 Replies
View Related
Sep 12, 2009
I was just wondering what does /22 subnet includes? I mean what sort of following numbers/blocks?
View 2 Replies
View Related
Mar 24, 2007
I have a windows 2003 "web edition" dedicated server leased from fasthosts.
I would like to store some asp includes in a specific location on the server that can be called by different domains.
View 9 Replies
View Related
Feb 8, 2007
I have my postfix server configured to allow me to send email without authentication whenever my ip matches a value in my config. Only problem is, i have it open to accept anyone in my subnet, and i'm kind of weary of letting anyone in this area send mail through it.
I have a script on my server that gets my ip address whenever i send an http-based request to my winamp now playing script. When it gets my ip address, it updates a file called ip.txt with my ip address. What i'm trying to do is config my postfix main.cf file to grab the ip from ip.txt, and add it onto the mynetworks variable. Then when i try to send the email, i want it to recognize me, and let me send the email.
View 2 Replies
View Related
Jun 13, 2007
how to run SSI(server side includes) on my linus server,
View 1 Replies
View Related
Oct 16, 2008
what includes your ideal web hosting package. How many space, data transfer, which features? How much do you care about uptime, customer support etc.?
I believe it would be interesting if webmasters can write here how looks their ideal hosting plan...
View 24 Replies
View Related
Dec 4, 2007
We upgraded 7 servers from our network from PHP 4.4.7 to PHP 5.2.5, and Apache 1.3.3.9 to Apache 2.0.61. In only one of this servers we found problems with includes...
Include example that works:
Code:
<?
include("http://www.google.com");
?>
This doesnt work:
Code:
<?
include("path/file.php");
?>
And path/file.php does exist, also log error from apache doesnt even show a line .
allow_url_fopen was replaced by allow_url_include and it's set to On.
Im using PHP 5.2.5, Apache 2.0.61, cPanel and RHES 4.
View 10 Replies
View Related
Jan 30, 2008
I want to enable our server ssi server side includes (.shtml parsed).
My hosting company controls our server uptime, daily backup, server loads etc. when i request them; can you please enable ssi for shtml pages, i want to use ssi includes etc.. they suggested me use php instead of shtml for includes.
I want to .shtml, beacuse i use only ssi include header, footer same pages, also these pages search engine friendly.
Apache version: 2.0.52
I posted them please add following lines and restart apache afterwards:
Options +IncludesNoExec
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
They added and restarted apache, but not any affect. When i access .shtml pages via web browser, page opening successfully but not parse ssi includes, example:
<!--#include file="header.html" -->
but not parse, also i cannot use .htaccess files, our server admin say restricted them because security reasons.
I requested them our server root username and password, they say to me; before give you server root password, we remove all our server administration software from server and server administration service will be cancelled.
View 5 Replies
View Related
May 19, 2009
Has anyone tried any online backup services which gives mobile access also. I have been thinking about trying one. But I'm not sure if any are better than others. My main concern is security.
View 0 Replies
View Related
Sep 30, 2009
how to display the time and date of a file that was added to an Apache file directory on a cPanel server?
It used display the time and date back in the 1.3 and 2.0 days, but it doesn't on the 2.2 versions of Apache.
View 2 Replies
View Related
Oct 4, 2008
I would like to use cPanel Apache as the backend web server, and Squid cache as the front end http accelerator.
My VPS has two IP addresses, however, I want the httpd acceleration to occur only on one IP.
So far, I have installed squid cache and edited its config file to this:
http_port 74.50.118.189:80
httpd_accel_host localhost
httpd_accel_port 80
httpd_accel_single_host on
httpd_accel_uses_host_header on
acl all src 0.0.0.0/0.0.0.0
http_access allow all
My site has a few subdomains and I would like them to work.
So, what do I do now in the apache config (which I think is here: /etc/httpd/conf/httpd.conf ?)
View 1 Replies
View Related
Jul 11, 2007
my box has 2 ip's on it. venet0 and venet0:1. Apache is binding to both ip's. I only want it to bind to one IP and leave the other one free (on port 80 at least), before i go in and edit the apache config files by hand, is there any way to ensure i dont break anything in cPanel by doing this (i.e. are there any dependencies or does cPanel even have an intermidiate config for doing this)?
View 1 Replies
View Related
Sep 17, 2007
Just want to know if its a good and *safe* idea to upgrade apache on a production box to v 2.x from 1.3x?
I'm using cpanel 11, centos 4.5, apache 1.3x
Is there any expected quirks or mishaps (bugs) in using easyapache to upgrade?
View 2 Replies
View Related
Mar 17, 2007
I'm haveing two servers one for httpd connections only and other is cross connected for sql operations i have facing httpd restart problem from last two months. try to solve it but unable to get rid of it finally i decided to add more 1 gb ram in my http server which already have 2 gb of ram but this problem did not come to end it increase . now i use this option Modify Apache Memory Usage in whm and it show me result like that
Apache Limiter by cPanel, Inc.
Checking for BSD Accounting ....
Calculating Memory Limit .......3115248..1557624..2096440..2256437..1155295232..
..385098410..
Largest Webserver child cgi/ssi/php is now limited to 367 meg
for setting correct value for it or any good way for calculating rlimit cpu and rlimitmem value
View 2 Replies
View Related
Nov 24, 2007
Has anyone successfully gotten Apache 2.2 and cPanel 11 running in production? I would love to have this setup.
I'm currently running cPanel 11.15.0-RELEASE with Apache 2.0.16 with no problems.
I would love to get Apache 2.2 running so I can actually utilize Ruby on Rails.
View 13 Replies
View Related
May 12, 2009
my apache has failed. I was setting up the try out section for RVSITEBUILDER ([url]
I performed the run /scripts/restartsrv httpd task and now Apache has failed.
So i first undid what i have just done and tried doing run /scripts/restartsrv httpd but still no luck, so i then tried /scripts/rebuildhttpdconf and then /scripts/restartsrv httpd but still no luck.
I then tried the WHM > Software > EasyApache (Apache Update) to rebuild Apache and after doing that, it came up with an error and still Apache will not start gracefully.
The only way i can get apache to start is by using: 'apachectl start'
But i have noticed that any secure https websites are not working.
View 14 Replies
View Related
Feb 1, 2008
I've got subversion installed on my server, and have been using it without issue via the svn+ssh protocol for a long time now. However, I'm now ready to make it so that I can go to, for example:
[url]
and browse my branches via my browser. How difficult is this to actually set up? I managed to install and set up subversion without breaking anything, so I'm hoping I can do this as well.
I know that I need mod_dav_svn compiled into apache, but beyond that I'm lost. I would also like to switch from the svn+ssh protocol and simply use the svn protocol to access my repo. From what I understand, after I get mod_dav_svn set up and working, I can add users to the project configuration files and use those user names to log in using the svn protocol, is that right?
View 3 Replies
View Related
Feb 16, 2008
I got a new server online today with a fresh installation of centos and cPanel:
WHM 11.15.0 cPanel 11.18.1-R20683
CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0
I have done the initial setup (ip's nameservers etc..) but when I try and run apache update I get the following:
Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.
I look in the log file but it just repeatse the above error and doesnt supply any additional info.
View 14 Replies
View Related
May 26, 2007
I was changing IP Addresses on one of my domains on my VPS to a spare fresh IP.
Since doing this, my DNS hasn't fully propgated, so I'm then facing this message.
Apache is working on your cPanelŽ and WHM Server
Now my question is, how do I change this default green Cpanel page? Could I swap it with my own page?
View 5 Replies
View Related
Jun 21, 2007
Has anyone done this or currently running this setup? to try it with my directadmin server first but havent found very good documentation or howtos. Ive looked the last week or so and havent really found anything helpful. So if anyone is running such a setup Id like to know how you did it and how much better if any it is.
View 0 Replies
View Related
Aug 7, 2007
How To Upgrade Apache 1.3.37 to 2.2.x on Cpanel Server?
Currently, Apache is recommending:
Quote:
Apache 1.3.37 is the current stable release of the Apache 1.3 family. We strongly recommend that users of all earlier versions, including 1.3 family release, upgrade to to the current 2.2 version as soon as possible.
1) Is it safe to upgrade from Apache 1.3.37 to 2.2.4 on a Cpanel machine. I am worried that Cpanel won't like it.
2) Is Php4 still acceptable to use with Apache 2.2?
3) Can someone suggest a tutorial or guide for an upgrade to 2.2?
View 4 Replies
View Related
Oct 12, 2006
As far as I know.. It seems that my web server is connecting to another IP (84.20.6.132).. it have lot of lines like this: ....
View 5 Replies
View Related
Jan 27, 2007
In Cpanel, If i click on Apache Status it tells me aload of website that have been visited recently, under the vhost column. It shows this but sometimes under those it shows aload of (unavailable). Why is this. Is this normal?
View 2 Replies
View Related