I am just trying to understand what I am doing wrong when I try to set up a second server with LAMP. I already have a working server with LAMP but i didn't set that one up. Now I am trying to add additional machine and I am trying to figure out what else do i have to do so the machine will work as virtual server for my webpage(s).
Like I said, on a new server i already installed Lamp, forwarded ports 80, 22, 442 ....to correct LAN IP, and added an entry under apache2 sites-available like this:
Than i connected a new domain to my main IP but it automaticly connects to the old server that is already running in my home network. So the question is what do i have to do, for my new server to run the webpages i want to? Do i have to add a specific command on old server or something else i forgot?
I'm going to use my apache server to host files(it works with a php script so we can't use FTP for now...) so I was wondering if I could limit this virtual host's bandwidth per second so the websites on the other virtual hosts still load properly. Any module for apache on windows which can do this?
What are the best ways to reduce server power consumption?
I have a Dell Poweredge 860 (2.4ghz QC, 5GB RAM, 2 HDs) and it uses 0.46AMPs when running normally. The problem is at boot up it spikes for a few seconds here and there to about 0.6 and this is a real problem as I only have a 0.5AMP allowance.
We are getting infinite loops due to the user requesting the same page continuously , even if apache sends a 200. It is happening randomly once every two or three weeks for different users.This issue is not confined to one browser it is happening with firefox 21, firefox 5, ie 8, etc. It is not happening to the same user again.
It is a PHP based website with custom CMS.We are never able to replicate this issue.Is this something related to a plugin installed on a browser ?
I have a LAMP server at home and in my website I added a php form using gmail smtp but Im not receiving any emails from the form. Do I need to add something to my server? Im using the free contact form from this website [URL]....
We have a spare powerconnect server in work and i was looking to set it up as a web server for a company intranet - more to gain experience in configuring a web server than anything else.
I decided to go with Fedora 8 as i'd used fedora previously and followed the LAMP tutorial on HowToForge.
However i've come across a problem which i just can't seem to resolve (after pretty intensive searching). So, i guess this post is in 2 parts.
Firstly, the error i'm getting is with mysql only. The error message is:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
I understand this may be a generic error but i'm not sure what other information would be useful.
Secondly, as this is my first web server - have I made the correct choice in terms of linix release or would something like CentOS be more suitable? I'd like to get this right from the start now that i have the chance.
Because of the security issues inherent in controlling DNS servers on other VPS/servers that run other processes, host websites and store mission-critical data and for other reasons related to control, we want to keep our DNS server separate from our other servers and our own desktops. Therefore, we're going to get a small VPS for this purpose.
We won't totally cheap out on this so we'll be getting a quality VPS from a good provider. But, we probably don't need more than 5 or 10G of HD space but we wonder how much RAM and bandwidth we need to run something like MyDNS with MyDNSConfig with a MySQL backend.
Also, what's the best Linux distro for this kind of thing? We use CentOS with facility but are not afraid to try a new one if it's a better choice for this purpose.
I currently dev locally on a cobalt RAQ (ollld!) and would like to upgrade this setup.
I'm looking for a simple way of getting a linux system setup for internal dev work with the basics... mysql, apache, php5, and some kind of version control - subversion / cvs.
Are there any linux liveCDs that I could use to make something like this quite easily? For our production server we use plesk, so a control panel similar to that for setting up new dev domains would be useful. Open source of couse tho.
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
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!
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
I'm making the switch from windows to linux for our company web server. We've been running IIS/MySQL/PHP for years and with the OS cost to upgrade the server switching to Linux seems an obvious choice. What frustrates me is that none of the Distros seem very quick to use the latest versions of the AMP components and compiliing from source seems an unnessary hassle. I've tried Ubuntu server so far which has Apache 2.2.9/Mysql 5.0.67/PHP 5.2.6 with no room to easily upgrade any of the components (our WIMP server uses the latest MySQL/PHP).
I am trying to install LAMP on Ubuntu 7.1. However I installed apache2, php5 and mysql and it is not running properly. I would like to start from scratch. Could someone please tell me how to go about removing all three components and then installing all from scratch so that it will run properly?
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'm setting up a VPS server on Slicehost, I've followed the guide on howtoforge for debian and have everything installed including ISPConfig3. Everything seems to work fine at the mo but when I check the memory usage, i see that I'm using around 490/500mb of my 512mb setup. Its a Xen setup so I understand this is real memory available but I'm not sure if this is enough.
I will ultimately be running around a dozen sites, some static and some dynamic. There's one Mambo and one Joomla site there but they don't update. The rest are all php/mysql sites that I've built myself but again, they don't change that much. None of the sites currently see more than a couple hundred uniques a day, and some only a handful, so usage is not high. Most of the domains have e-mail accounts attached, but its only moderate usage with around a dozen addys per domain max.
So, do I need more memory or will 512 be enough? Is there anything I can do to reduce the load and give myself some more room?
I'm moving from a shared hosting environment and while I'm comfortable setting up the server, I would rather have a simple mail manager that would give users more control over their accounts, change passwords etc, which I'm hoping ISPConfig3 will be able to help with, but thats probably best discussed in another post.
;; ANSWER SECTION: mp3-dash.com. 14400 IN A 18.104.22.168 mp3-dash.com. 14400 IN SOA ns1.mp3-dash.com.mp3-dash.com. email@example.com. 2009040602 86400 7200 3600000 86400 mp3-dash.com. 14400 IN MX 0 website.com. mp3-dash.com. 500 IN NS ns1.mp3-dash.com. mp3-dash.com. 500 IN NS ns2.mp3-dash.com.
;; AUTHORITY SECTION: mp3-dash.com. 500 IN NS ns2.mp3-dash.com. mp3-dash.com. 500 IN NS ns1.mp3-dash.com.
Searching for mp3-dash.com. A record at G.ROOT-SERVERS.NET. [22.214.171.124] ...took 30 ms Searching for mp3-dash.com. A record at F.GTLD-SERVERS.NET. [126.96.36.199] ...took 158 ms Searching for mp3-dash.com. A record at ns2.mp3-dash.com. [188.8.131.52] Query timed out (interrupted after 1,999 milliseconds) Retrying... Searching for mp3-dash.com. A record at ns1.mp3-dash.com. [184.108.40.206] Query timed out (interrupted after 2,000 milliseconds) Retrying... Searching for mp3-dash.com. A record at ns2.mp3-dash.com. [220.127.116.11] Query timed out (interrupted after 2,004 milliseconds) Retrying... Searching for mp3-dash.com. A record at ns1.mp3-dash.com. [18.104.22.168] Query timed out (interrupted after 2,000 milliseconds) None of the nameservers responded correctly.
I'm in the process of trying to document a process for setting up any new LAMP servers in our hosting environment and I was wondering if anyone had any input on software and best practices that they use in their environment and why. I.E.
PHP setup Apache setup Preferred Linux Distro FTP program used User creation guidelines Default php.ini settings Default site settings etc.
I have a cople of dedicated servers. Both run the same software, phpBB forums. However, with the top command I see one of them need as much as triple memory for every apache process than the other. Here are the details:
Do you realise that the x64 Opteron is needing an avarage 1.7 %MEM for each Apache process while the Xeon just needs 0.5 %MEM?
Since both use the same version of phpBB and the same version of CentOS5, while the only difference is one is x64 and the other i686, I wonder if this has to do with the way memory is handled by the x64 CentOS5.