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.
I have recently upgraded our server from Server 2000 to Server 2003. Everything was running smoothly except for one thing.
It keeps on forgetting how to display .asp pages.
When I view the website all I get is a white screen as if its loading the page but never does, the busy icon up at the top right hand side of the browser contines to spin but nothing. If I try and view a .html page it works without a problem. So the server is running and it can read .html files without a problem.
Now here is the strange bit, if I restart the the WWW publishing service on the server the .asp page all of a sudden work and continue to work until the following morning when it all dies again.
I have checked the event logs and there is no errors or anything that I can see that would be causing this problem.
Has anyone else had similiar problem or at least have an idea on how to fix this. I can't be restarting the WWW publishing service every day just so .asp pages work!
I was thinking of upgrading my centos 4.5 systems to 5 but all over their docs its like they are telling you doing any sort of upgrade especially yum upgrade will break everything. It keeps saying fresh install is reccomended method.
I might still be a bit too close to the newbie level to be trying this but I wanted upgrade various components of my cpanel install for security issues.
So I got openssl to update to 0.9.8g and that seemed to be working correctly.
Make ... In function `zif_openssl_seal': /php-4.4.8/ext/openssl/openssl.c:2885: undefined reference to `EVP_CIPHER_CTX_block_size' collect2: ld returned 1 exit status
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?
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.
Today I upgraded my dual opteron dedicated server from a 10mbps port to 100mbps. While the number of apache access have dropped by about a quarter my CPU usage has increased also by about a quarter, my CPU is touching on 95-100% now.
What’s most likely to be the cause?
What’s also interesting is my network port is only showing 20mbps usage, nowhere near the 100mbps its been upgraded to.
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.
I'm familiar with shared hosting but a complete novice to virtual servers, I'm getting the following error message when I go to my new virtual server IP [url]
If you see this page it means:
1. hosting for this domain is not configured
or
2. there's no such domain registered in Parallels Plesk Control Panel
Now am I getting that because...
a) I need to set something up in the PLESK control panel thing or
b) Is it a DNS issue? Its only been 30 hours since the migration from shared hosting.
I was told when I upgraded that I wouldn't have to do anything and there would be no interruption as the site www.mydomain.com would continue to use the shared hosting until the virtual one was set.
Is it a question of waiting for the DNS to update so it points to [url]: or do I have to set something up?
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
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.
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.
I upgraded today from 11 to 12, however since the upgrade I am now unable to start the PSA Service, it comes up with the below error.
Starting psa... Starting sw-engine-fpm: Thu Jun 19 13:22:29 2014 (7885): Fatal Error Unable to allocate shared memory segment of 104857600 bytes: mmap: Cannot allocate memory (12)
I have checked resources and everything should be fine, I cant see a reason why it cant allocate the memory, as there is plenty free for it to take from.
I have tried a Bootstrapper repair for 12 however this has not found any issues other than its not able to stop the PSA Service (As its not running)
Everything else is up and running its just the Parallels backend which im guessing is what the PSA Service is!
I updated two days ago the Plesk panel from the Panel itself and it was succesfully but at webmail URL which it appeared one error about default.inc something but after I did refresh some times it disappeared now it doesn't show anything. I tried removing and reinstalling roundcube but still doesn't work..
Here are my logs from /var/log/plesk-roundcube/errors [09-Apr-2015 14:50:36 UTC] PHP Warning: finfo_file(/usr/share/psa-roundcube/installer/images/roundcube_logo.png): failed to open stream: No such file or directory in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_mime.php on line$n line 754
Because i have couple site hosted by both hosting company (DTH=downtownhost and TCH=totalchoicehosting) and have positive experience with them i needed to make decision who will be hoster for my new project.
The problem was by both company and by 99% others that traceroute command is not enabled by default and it is essential for my new project.
After exchanging a couple emails with both companies DTH was winner again because DTH allow on shared hosting traceroute command (in situation that you need it).
Answer from TCH was that only on VPS (semi-dedicated) is traceroute command possible and not on shared envirovment.
I must again praise DTH for the way how they handle with their customers and that they are ready to do everything for their customers. Not wonder that they are one of the greatest hosting company.
where I can get a simple SSL certificate for my web hosting business? So my customers feel safe on submitting their information. Is the standard SSL from GoDaddy pretty good?
So I was trying to run a backup process in Plesk 8.1 and the whole panel froze up on me (it's happened numerous times before).
Anyway, since the panel was all frozen up I just went into SSH and did a simple "reboot" (also, as done before many times). Only problem is, this time after I did the reboot the server never actually came back online... it seems to be locked up or something, I have no idea what.
I called my host and they are looking into it but they have no idea what's going on either and it's taking them forever to figure it out all the meanwhile my sites are down.... this isn't good.
Does anyone have any suggestions or advice as to why this could be occuring?
when I get a server it comes with cPanel and I don't have to do much to get it going, but this time I don't need all the bells and whistles. What should I do to get a server with only CentOS to start running a pretty simple web server that just listens on whatever ip? I just want it to run php,mysql, and a web server which I know how to setup already. What I want to know is what else is necessary to setup? Resolvers, the hostname, bind, named, etc?