Home Web Server Set Up, Relative Paths Not Working
Mar 21, 2008
I've had a web server set up for a while at home to do some testing. I can view the site locally using my IP but all relative paths of CSS or images on the html page (eg /something/title.gif) don't show up. Bizarrely, if I go to[url], they appear!
Anyone know what the issue may be? The "DocumentRoot" value in Apache conf is pointing to the correct folder.
I'm trying to use server side includes in a PHP website but am getting the error open_basedir restriction in effect.
I've tried going in to the PHP Settings for the website and have selected the predefined option
Which as I understand it should allow access to all files within my httpdocs folder but I still get the error:
PHP Warning: include(): open_basedir restriction in effect. File(/sparklyphp/cms/inc/checkAdminLogin.php) is not within the allowed path(s): (F:PLESKWWWviwebsitedesign.comhttpdocs;C:WindowsTemp) in F:PLESKWWWwebsitedesign.comhttpdocssparklyphpcmsindex.php on line 1
The thing is I know 100% that the file it's having a problem with is in a subfolder of the
F:PLESKWWWwebsitedesign.comhttpdocs folder (the full F:PLESKWWWwebsitedesign.comhttpdocssparklyphpcmsinccheckAdminLogin.php).
I've taken over a site that caters for client access. They all access there own folder, and in the folder the files have an include with a relative path as below.
/core - contains all the actual files /client/file.php - <? include "../core/file.php";?> but with the growing number of clients I want to go a level deeper and separate them better... /uk/client/file.php - <? include "../../core/file.php";?>
This is fine but when the files are included, they too have there own relative includes and this is where it breaks. There are so many files I can't easily go through them to change all the include paths so I would like to maybe do a rewrite to fake the path? I've tried this...
I understand the risks of not using a datacenter, but for a smallish site to which uptime isn't key, is it possible to get server-quality bandwidth to my house? (No I don't mean like Gigabit, I mean like upwards of 5mbps)? I'd really like to maintain my own server (probably build one).
I live in Milwaukee, so colocation is, AFAIK, out. And while I can save up for and buy a computer every few years, I cannot sustain $80/month. (I am a middle school student. My income isn't exactly regular.)
So the question... can I get an ISP to let me run a server at decent speeds out of my house? Would its costs exceed colocation or that of a dedicated server?
I am currently leasing a VPS and the kbps upload rate is below my upload rate at home, so I am going to save 50 bucks/ month and move it to home.
I plan on using an older dell desktop with 512mb ram. I would like to use this also as sorta a sync host between my laptop and desktop. I would like to be able to sync certain folders and files which would be stored on the server. I also obviously need to have ftp access, smtp (no knowledge of this area), mysql, php, etc. My big question is which OS should I use? I have fiddled around had a local copy of my site working on my main desktop in windows using apache. Should I stick with windows or would I be better served using a linux distro such as ubuntu? I currently have a static IP address at home. How do I handle the nameservers?
Another thing is how easily can I manage things like emails and subdomains?
So I have designed some software for my brother who owns a business and needed a website to manage his clients and send emails to them and stuff. Right now we are using Hostmonster, which has been pretty good so far.
He was talking to me how it would be nice to be able to email the website and have the site automatically store the information in these emails into a database for information regarding his clients, which I know is possible, but not on a shared host it seems. I have tested my own email receiving script on a test server on my computer and it works fine. So we are continually finding our limits with a shared host. We have been looking into dedicated hosting, but as you all know its quite a price jump to go from $7 a month to $200+.
I got thinking and remembered that my dad has always had a business web plan from our ISP at home (cause he likes fast internet), which according to there website serves 1Mbps upload speed. We also have 2-3 old computers sitting at home that we don't use anymore (2)2ghz pentium 4 Dells and a 3.0ghz+ Pentium 4 HP. I was thinking we could probably just plug one of those into the router, forward some ports and have our own server up and running. For now we would only host this software I made for my bro, which is used by only 4 people, and that's not even at the same time usually. So there is very little load to deal with. But in the future we may put a few other sites that we have in mind which would use PHP and MySQL quite a bit.
I was just curious what some of your opinions were on creating a home server. I was looking at Ubuntu Server edition as a possibility, or XAMPP since all my machines are Windows XP. One machine doesn't work cause the hard drive is out, so if I use that I would probably have to put Ubuntu on it. Any suggestions on good server software would be great! I believe the business web plan my dad has also comes with a static IP as well, so that will help. Look forward to hearing your suggestions!
I wanna host my website from home.But i dont know to much about it.Can you help me or give me some link where i can find Guides?Im using Uniform Server btw...but i dont know what next? Main goal for me is to setup server,,and i need definitive guide!
Ive recently inherited a decent desktop pc and am wondering if its feasable to run it as a web server from my home to serve pages from a few small websites. I know some about setting up a web server with linux and think i could get it going in theory but am wondering if a home pc setup would be reliable enough in this situation....?
I tried installing Apache and, later on, Wampserver. I also tried looking up this topic in Build Your Own Database Driven Web Site, Using PHP and MySQL.
My goal is to see, on my home computer, how my new Web pages would look as I work on them, and that includes things like includes, which can't be seen on a regular home computer (mine is Vista). Later on, I also expect to play around a lot with PHP.
OK, how am I supposed to do this? Is there a folder on my home computer where these files should be? Do I need to install them on another computer on my home LAN?
I just don't get these first basic steps; I don't know what to look for.
whats up fellers, i'm attempting to point my design site name from whm, to my home i.p address by changing the i.p in whm dns zone editor. I'm doing this because its just so much easier to copy an ad, or web site or whatever i do to the server via my home network so the client can see the project pretty much in realtime (some ads are like 800mb) . ALSO i'm trying to set up exchange so my motorola q will have realtime email.
Anyway, so "mysite.com -A record -i.p.addy" Now the site comes up.. and i get emails.. but i cant 'send' any emails and windows server is telling me i have a non existing domain name.
so the question is am going way over my head and should i just use a service like no-ip or dyndns or can this be done?
I am moving my domain to my home server. I went to remove it from WHM and saw this option: Keep Dns Zone (needed if you have moved a domain between servers in the same dns trust relationship, and wish to remove the old domain).