Configure Memcached In LAMP Server
Jul 19, 2008How to install and configure memcached in LAMP server through easyapache or any other method.(cpanel installed server)
View 5 RepliesHow to install and configure memcached in LAMP server through easyapache or any other method.(cpanel installed server)
View 5 RepliesWe 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.
under your experiences which is the configuration recommended for a LAMP server? safe mode, phpsuexec, php version...
View 2 Replies View Relatedto set up a little server that will have LAMP installed on it. All it will do is host a small program that runs on PHP and mySQL and will only be used on an office network with about 50 employees.
How well would this server run if the hardware was rather modest (667Mhz, 128mb RAM, 10GB HDD)?
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.
For a LAMP server user, is there a general consensus that everyone should pretty much install and run ModSecurity? Is there ever a good reason not too?
View 1 Replies View RelatedI 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 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:
"<VirtualHost *:80>
ServerName test.com
ServerAlias www.test.com
ServerAdmin info@test.com
DocumentRoot /media/BigBoy/www/test
ErrorLog ${APACHE_LOG_DIR}/test_error.log
CustomLog ${APACHE_LOG_DIR}/test_access.log combined
</VirtualHost>"
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 want to make a Audio and Video Streaming Server using LAMP. I am running Redhat and have latest version of PHP, MySQL and Apache.
what i need to make such a server? I dont want to buy anything all things should be OpenSource.
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?
I built a web hosting server, the following is its state
Cent os 5
AMP server loaded updated (installed it as a complete suite during installation so it was all set to go with php mysql modules loaded)
webmin
usermin virtualmin
created 2 named based hosts.
now when i load up wordpress in a site and try to run install.php
the following pops up
"Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually."
I had this issue before and research said to redo the entire server (tried everything and was fed up had fedora then"
you can have a look at www.itgrunts.com just click create config file and the errror pops up.
The php and mysql db work great on simple scripts but i dont know why this happens.
i worked with assigning the users and apache user to the directory and everything, no joy.
I just installed memcached, but wonder how it's working effective or not? Is there any log that can give me in details?
View 5 Replies View RelatedI'm running a wordpress site and am trying to get the memcached cache to expire (since the default is never).
I setup memcached using these instructions (ryan.wordpress.com/2005/12/23/memcached-backend/), but am unsure about how to proceed from here to set exptime.
i'm using RHEL 4, apache 1.3.37, php 4.4.6 and xcache 1.20. Now i'm looking into memcached and running it on more than one computer. So i got few questions:
1) Is it smart to run web/db on one server with 64mb memcached and remote box which is around 150ms from web/db with 2gb of allocated memory for memcached?
2) I saw if I want to use memcached i need to load in php memcache also. Since I already got xcache, will those two produce any products if they will work simultaneously.
I mostly need memcached to save mysql queries, and i'm happy how xcache caches dynamic pages.
I hope somebody here is using memcached. QPS are around 95.
We need to install the Memcached on Control Panel(Cpanel) installed dedicated server (RHEL4). I am not able to install the Memcached through Easyapache.
* I could not find Memcached option on easyapache. Can you please quide me, how to install the Memcached through easyapache.
I understand there is a price difference, that aside I wonder if anyone has any experience using both?
I.e. What if anything would make someone switch to Coherence over Memcached? And does anyone have any thoughts on a different alternative specially for .NET
We have drupal based website, on that website is getting very slow to open the webpages so that we like to install the any of the following Eaccelarator, APC or Memcached on cpanel based server.
View 4 Replies View RelatedCurrently i am trying to install an Apache 2.4.3 as a caching reverse proxy. I would like to use memcached as my cache backend. I figured out there is a mod_socache_memcache, which from my understanding, should do exactly that(in combination with mod_cache_socache). So i compiled mod_cache_socache from trunk, loaded mod_cache, mod_cache_socache and mod_socache_memcache, but now i am stuck with the configuration. Here is what i tried:
LoadModule socache_memcache_module modules/mod_cache.so
LoadModule mod_cache_socache modules/mod_cache_socache.so
LoadModule socache_memcache_module modules/mod_socache_memcache.so
[code]....
where do i configure the path to my memcached instance? The reason for memcached as chaching backend, is that the machine is a windows machine, and from my understanding mod_cache_disk is not as efficient on a NTFS filesystem as it is on EXT3/4.
Another reason is, that later on there should be a possibility to put a second Reverse Proxy machine which shares the cache with the first one by using the same memcached instance (is that possible at all?).
You can edit the nginx directives for the desired vhost at the webserver config. However, it seems like that you can only add basic directives, but not something like that:
Code:
http {
# memcached servers
upstream memcached-servers {
server 127.0.0.1:11211;
}
[Code] ....
How can I do that?
im using Vmware
i want install centOS ( vps ), Im try to install text mod , before start install centOS ( Blue Screen ) ask about install some package ! like,
Editors, Text Based Internet, Server Configuration Tools....
i want know for web server ! which package must checked ?
How to configure SMTP on different server?
I don't know why I typed SMTP in the title. I meant just the mail server.
I just posted a message saying that my VPS is down due to FDCServers being down as they supply my host.
I can live with a 24 hr blackout on my site (however definitely not happy about it).
What I can't live with is having my mail.mydomain.com server being down at all. I run my VPS and host a few sites from it including a few clients. I need to make sure that my email doesn't go down when my VPS goes down.
How can I go about this? If I purchase a second VPS plan can I have that run just my email server for me? If so, how much in resources do I need? Will a cheap plan do the trick (ie. 64mb Ram or something)?
I have 2 domains as follows:
Domain1 on Server 1 = www.domain1.com
Domain2 on Server 2 = www.domain2.com (has a forum)
How can I configure subdomain.domain1.com, but to be on Server 2?
The idea of this exercise is to feel the visitors when they browse the forum that they are on same website/server.
my current dedi server and want to configure shoutcast for the server. I have install the shoutcast located in /usr/local/shoutcast.
Just curious one of my customer would like to use the shoutcast so how can i create a user for them? should i install manually for each of my customer that want to host shoutcast?
I got dedicated server with Windows Server 2k3 OS and have not configured it yet. I've installed Serv-U and Apache 2 (PHP, MySQL will be the next step). But I can't open my Website from home (from server there is no problems). And I can't get into my FTP server either. I scanned ports from home to figure that out. 21 for FTP is seen. 80 http is not seen. However on the server I did "netstat -an" and it showed the port 80 listening. So why can't I reach my FTP server and open my site? Is the problem in Windows Server 2k3 configuration?
View 5 Replies View RelatedI've just installed MRTG using WHM > Install a RPM mrtg.i386
how do I configure the installation and get my mrtg to work & to view my mrtg?
i got a new server
spec are:
Intel . 2,4 GHz
80 GB of HDD disk
1GB MB of RAM
Traffic-Unlimited
100Mbit Switch Port
Windows web os
from hosting-ie yes i know the bad reviews but i got my server in 2days
now i saw a good deal that for 12 euros extra get 2 * 100mbit
so i upgraded to a 2 * 100mbit connection as the server would be
used to let members from my forum download music / music videos [remixed] made by me and my other producer so 200mbit server will do nicely for my site
now when i got it it shows me two network connections each saying 100mbit
but only one of the connections is being used and the other is not in use
is there a way that i can use both at the same time or maybe use one for http/ftp and one just for ther server itslef
I have an unmanaged Windows VPS and I want to host multiple sites (with different domains).
I was told that I should create my own private nameservers in order to do so.
I have allready installed DNS Server in the VPS but I cannot find a tutorial to help me configure the private nameservers.
The OS is Windows Server 2003. Please provide any good tutorials if you know.
I searched in Google but couldn't find any...
I have a magento based ecommerce website. In have to integrate a payment method which requires a certificated delivered from a specific certification authority not recognized by browsers. Then I have to use 2 diffrent certificates, one for the payment and the other for the remaining secure operations. Is it configurable in apache?
View 6 Replies View RelatedMy server provider is moving my server to a new data center, I am going to keep my data on it.But I am going to be assigned two new IP's.I have a Centos server with WHM and CPanel.
tell me exacly on which file on my server i need to configure my two new IP's, is changing them on WHM enough? Do I have to edit the DNS zone for each domain?.
I am setup in a co-location facility. I just recieved my new SonicWall TZ180 which I am trying to setup.
Previously I had my server connected to the internet drop via a static ip address assigned via windows tcp/ip (1.1.1.2), nothing special there. Then I used Plesk and assign domains and ip addresses as normal.
My co-location facility gives me 4 static ip addresses, lets call them:
1.1.1.2
1.1.1.3
1.1.1.4
1.1.1.5
And an ip address called Network Gateway at:
1.1.1.1
And DNS ips at:
2.2.2.2
2.2.2.3
I am trying to figure out how I make this work now with the SonicWall. I am using Plesk, and I have already assigned all DNS settings and name servers to their proper static IP address, such as:
ns.mydomain.com -> 1.1.1.2
ns.myseconddomain.com -> 1.1.1.3
So I cannot use the local ip address (192.168.168.2) assigned to the server box by default by SonicWall using DHCP. I must use the actual static ip addresses assigned to me and already configured in Plesk. I have heard I need to use NAT, and assign the SonicWall the ip address of the network gateway: 1.1.1.1, then add the 4 standard static ip addresses into a pool in the sonic wall.