Php Includes Issue On Linux Server With Apache 2.0.63 / Php 5.2.6

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


ADVERTISEMENT

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 View Related

Apache :: 2.2 To 2.4 Includes No Longer Work For SHTML Files

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

How To Run SSI(server Side Includes)

Jun 13, 2007

how to run SSI(server side includes) on my linus server,

View 1 Replies View Related

Disable Server Side Includes (SSI) In CPanel

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

Enabling Server Side Includes Safety

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

What Does /22 Subnet Includes?

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

Asp Includes Across Domains

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

Includes In Postfix Configuration

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

What Includes Your Ideal Web Hosting Package

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

Upgraded To PHP 5 And Simple Includes Are Not Working

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

Online Backup Options Which Includes Mobile Access Also

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

How To Setup Linux Proxy Server Apache+lighttpd

Apr 24, 2007

somebody know is possible on some way route traffic before come to web server (apache or lighttpd)?

I want to setup lighttpd on port 80 and apache on port 81 and I want visitors to go direct to apache or lighttpd without url:81 and that must work on this way if somebody visiting url1.domain.com that go to lighttpd on port 80 and if somebody visiting url2.domain.com that go to apache on port 81 and something must route it before lighttpd and apache (and get/post must work), is this possible on some way?

I know that lighttpd and apache can do it but I don`t need it on that way!

View 8 Replies View Related

Hot To Make My Linux Apache Server Support ASP.NET Scripts

Jul 26, 2007

one of my clients wanna run an ASP.NET script on his site but all of my servers runing Linux and Apache not Windows so it can't support ASP by default so i wanna know how to make it support ASP or what's the essential software to run it on my server to enable it support ASP.NET

View 2 Replies View Related

Apache :: Reducing TTFB (Linux LAMP Server)

Mar 1, 2015

I've just switched my Apache and PHP config over to linux(ubuntu 14.10).

Apache 2.4.12 is using the mpm-event worker and PHP 5.6 is running in FastCGI/fpm mode.
I'm running MariaDB 10.0.17

I'd like to reduce the time to first byte even more, its currently 80 ms for static files and 110ms for PHP generated pages.

1. 80 ms seems like a lot, since the ping to the server is <15ms

How can I reduce this? Are there some tweaks for the Linux networking stack or Apache that I can apply?

I'm also using SSL, I remember it could be tweaked to improve its performance but I don't remember how..

I currently enabled the following in my main apache config:

Code:
ServerSignature Off
ServerTokens Prod
TraceEnable off

EnableMMAP on
EnableSendfile on

UseCanonicalName On

2. Is there a mod_spdy for Apache 2.4? what about http 2.0?

3. Can I tell PHP to make use of unix sockets to connect to the database server? (I heard unix sockets is faster)

4. I've installed memcached for PHP, can I also use this for Apache?

View 5 Replies View Related

Plesk 12.x / Linux :: New Configuration Files For Apache Web Server Not Created Due To Errors In Templates

Dec 17, 2014

I tried to add ac new subscription and this failed.No I have an inconsistent subscription and get the following error: New configuration files for the Apache web server were not created due to the errors in configuration templates:

Template processing failed: file = /opt/psa/admin/ conf/ templates/ default/domainVhost.php,
error = Template_Exception: No data. file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0
Previous error: Template_Variable_Exception: No data. file: /opt/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0.
Detailed error descriptions were sent to you by email.click here to generate broken configuration files once again or here to generate all configuration files.

I have Plesk 12.0.18 on Ubuntu

View 1 Replies View Related

Managing Linux Apache Hosting

Oct 19, 2007

I'm a window type of guys and considered myself more proficient using windows operating system. However, when it comes to linux, i have not really a clue except some simple command i learnt from CMD that also applied to linux.

I have a root access to my dedicated box and I use putty for SSH. Problem is from there, what kind of usual and daily web admin do to the ssh?

In other words, what is the daily routine of Network Admin in Linux?

Any recommendation of website that introduce me to using ssh to use remote linux server?

View 3 Replies View Related

Apache Document Root On Linux

Sep 5, 2007

Basic question: does it matter where I set the document root for apache on a Linux system? I've googled this but haven't found a good answer.

This is for a VPS server running the Ubuntu (Debian) server os that I'm configuring. I'd prefer to simply create a new directory off the root and set that as the document root in the apache config file. Would this present any kind of security issue?

If that's no good, what's the best choice -- stick to the default?

View 3 Replies View Related

Linux For Hosting (HOW TO SETUP DNS, APACHE AND SENDMAIL) In RH 9

Feb 25, 2005

Starting linux for hosting (HOW TO SETUP DNS< APACHE AND SENDMAIL) in RH 9

hi does anyone know to setup these or could dirct me to step by step tutorials please.

View 2 Replies View Related

Where Does Linux/apache/centos Log Protection Faults

Jul 18, 2008

Anytime I've gotten these before, they were stored in:
/var/log/messages

Today (according to logwatch), I got a protection fault in "top".

But when I view /var/log/messages... nothing is there relating to a fault.

The only kernel message that appears is a martian source.

I also hadn't logged into ssh today, isn't "top" an ssh command.

View 9 Replies View Related

How To Restart Apache Periodically On Linux Centos 5

Jun 10, 2008

Sometimes my apache gets hanged due to memory leak or persistence connection, then needs to be restarted manually, how can I make this process automatic, that is it get restarted whenever it got hanged or shutdown?

View 9 Replies View Related

Apache, Linux, Access Denied Error

Jan 2, 2007

I have apache, php, and mysql setup on CentOS 4.4. I have phpMyAdmin running perfectly in a folder in /var/www/html/phpMyAdmin. I can access phpMyAdmin and use it perfectly. I downloaded Cacti which is a server monitoring application written in php, nothing special. I untar the file and it creates a folder, I simply do a mv command from /home/sys/cacti to /etc/www/html/cacti. Then when I open my browser and attempt to access: [url]I am getting a Access Denied error. It makes no sense though, I have verified the permissions of the files and folders, all good.

The group owner and owner are root, the files are all -rw-r--r-- and the folders are drwxr-xr-x.

View 9 Replies View Related

Apache :: How To Access Linux Environment Variables

Mar 7, 2014

I am developing a php web application using Apache on CentOS6. I have set a custom environment variable in CentOS on command line by using: export test_var=3

View 1 Replies View Related

Linux Apache Folder Not Reading Without Trailing Slash

Jan 4, 2007

I am running apache 2.0 on CentOS 4.4 with PHP5 and mysql 5. I am wondering why the following is happening with apache:

if I goto to [url]

This does not work, it times out. But if I goto:

[url]

With the trailing slash it works. That is annoying, anyway to take care of that so it works with or without the trailing slash? Below is my httpd.conf folder and virtual host settings:

---------------------------------------------------------------------------------------------------------------

<VirtualHost *>
ServerAdmin myemail@mydomain.com

DirectoryIndex index.php index.html index.htm index.shtml

<Directory "/var/www/html/">
Options ExecCGI FollowSymLinks Includes IncludesNOEXEC SymLinksIfOwnerMatch

AllowOverride none
</Directory>
</VirtualHost>

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

<Directory "/">
Options FollowSymLinks

AllowOverride None
</Directory>

<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks

AllowOverride None
Allow from all

Order allow,deny
</Directory>

<Directory "/var/www/icons">
Options Indexes MultiViews

AllowOverride None
Allow from all

Order allow,deny
</Directory>

<Directory "/var/www/cgi-bin">
Options ExecCGI

AllowOverride None
Allow from all

Order allow,deny
</Directory>

View 13 Replies View Related

Apache :: Multiple Servers On Single Linux Box Redhat

Nov 5, 2014

I need to configure multiple Apache Web Servers on redhat server. I have copied and extracted Apache 2.2 into redhat server and extracted but not able to install because I don't understand setting prefix. Please let me explain about prefix configuration and how to set it. At the same time I would like to know is it possible to setup 4 Apache Web Servers on same machine if possible then how to. Can we set up different versions of Apache HTTP Servers?

View 17 Replies View Related

30 Seconds To Initial Response - Wordpress / Apache On Linux VPS

Oct 17, 2013

My site will wait for 30s almost everytime before loading any of the page itself.Specs of my install:

- DigitalOcean Droplet (VPS) with Ubuntu Server 12.10: 512 Ram and 20GB SSD (not even coming close to needing more RAM, still have 240MB free according to top)
- Wordpress 3.6.1
- 5 plugins: W3 Total Cache, Wordpress SEO by yoast, WP Better Security, WP Smush.it, and Redirection (problem occured before adding the last 2, I can't remember about the others)
- No traffic to speak of. I get maybe 10 uniques/day.
- Apache 2.2.22
- MySQL 5.5.32

I've optimized my site itself the best I can, minifying and combine js and css files, using the WP Smush. It plugin to compress images, serving jQuery from a CDN, but none of that worked the 30 second wait (though it did shave about 10 seconds off the load time after the wait for response).

I was using cloudflare and had to fiddle with the nameservers of my domain, but cloudflare didn't work at all and I switched the nameservers back to normal pointing DNS directly at my site to eliminate the obvious causes. I'm comfortable with Linux and the command line. This is the link to my site: [URL] ....

View 3 Replies View Related

Plesk 11.x / Linux :: Disable Apache Access Logs

Sep 27, 2014

I need to disable apache access logs. I commented out the access log path in /etc/httpd/conf/httpd.conf and restarted the server but it's still logging access.

View 3 Replies View Related

Plesk 12.x / Linux :: Passing Headers To Apache Through Nginx

Jul 23, 2014

I want to pass the X-SENDFILE header to apache through nginx.

Is this possible or do i have to disable the reverse proxy?

View 1 Replies View Related

Apache :: Redirect - Internal Server Through External Server

Oct 7, 2014

I have a -I think- common issue, one external server available from internet and an internal server for local only.

I want that to ask for [URL] ....

I can get the content of an internal server. For this I tried this at httpd.conf:

Redirect /site http://in.ter.nal.ip/site

but browser changes to internal IP and obviously I can't reach it.

So, I need that when external server detects that I want to see internal server content, it ask to internal and external itself answers.

View 2 Replies View Related

Apache :: Server-status Denied By Server Configuration

Jun 8, 2014

I have Apache 2.2.26 running on OS X 10.9.3.My situation is that I consistently get an error that client denied by server configuration when accessing /server-status.

View 1 Replies View Related

Plesk 11.x / Linux :: PHP Support 11.5.30 - Cannot Change Or Choose Running As Apache Module Or CGI Application

Jul 17, 2015

Hosting Settings

There is no php support - so i can“t change or choose running as apache module or cgi application (s. screenshot)...

OS Ubuntu 12.04.5 LTS

Panel version 11.5.30 Update #50, last updated at July 17, 2015 03:46 AM

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved