Configuration For LAMP Server
Dec 8, 2008under your experiences which is the configuration recommended for a LAMP server? safe mode, phpsuexec, php version...
View 2 Repliesunder your experiences which is the configuration recommended for a LAMP server? safe mode, phpsuexec, php version...
View 2 RepliesI want to run a firewall on my LAMP server. I'm using Ubuntu 6.10 server. Previously I used firehol to achieve this but the new version of the kernel I'm using doesn't seem to be compatible. So I went to try ipkungfu instead and that didn't work saying "my kernel doesn't support LOGS". So basically I'm going to need to play around with iptables myself. I've been reading up on TCP/IP in order to learn how to do this but, well, it's really not very much fun. SoDoes anybody have a bunch of iptables commands I can use to set up a basic firewall to block all requests except certain ones (I don't need anything complex like forwarding)?
View 10 Replies View RelatedWe 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.
to 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 RelatedHow to install and configure memcached in LAMP server through easyapache or any other method.(cpanel installed server)
View 5 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'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).
View 5 Replies View Relatedinformation regarding any sites or books that discuss in detail the installation and troubleshooting of Apache,Mysql, PHP....and also DNS.
View 3 Replies View RelatedI 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?
View 6 Replies View RelatedI have Apache 2.2.26 running on OS X 10.9.3.My situation is that I consistently get an error that client denied by server configuration when accessing /server-status.
View 1 Replies View RelatedI'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.
All setup following various tutorials on lamp, but having issues trying to view site url.
here what i got via dig:-
; <<>> DiG 9.3.4-P1 <<>> mp3-dash.com ANY
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45634
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION:
;mp3-dash.com. IN ANY
;; ANSWER SECTION:
mp3-dash.com. 14400 IN A 89.46.102.100
mp3-dash.com. 14400 IN SOA ns1.mp3-dash.com.mp3-dash.com. admin@mp3-dash.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.
;; Query time: 24 msec
;; SERVER: 69.42.208.19#53(69.42.208.19)
;; WHEN: Thu Apr 9 20:47:14 2009
;; MSG SIZE rcvd: 202
does that all look ok, i have even ran dns lookup
and here what i getting:-
Searching for mp3-dash.com. A record at G.ROOT-SERVERS.NET. [192.112.36.4] ...took 30 ms
Searching for mp3-dash.com. A record at F.GTLD-SERVERS.NET. [192.35.51.30] ...took 158 ms
Searching for mp3-dash.com. A record at ns2.mp3-dash.com. [89.46.102.75]
Query timed out (interrupted after 1,999 milliseconds)
Retrying...
Searching for mp3-dash.com. A record at ns1.mp3-dash.com. [89.46.102.74]
Query timed out (interrupted after 2,000 milliseconds)
Retrying...
Searching for mp3-dash.com. A record at ns2.mp3-dash.com. [89.46.102.75]
Query timed out (interrupted after 2,004 milliseconds)
Retrying...
Searching for mp3-dash.com. A record at ns1.mp3-dash.com. [89.46.102.74]
Query timed out (interrupted after 2,000 milliseconds)
None of the nameservers responded correctly.
an example Anaconda file that I can use to silently setup CentOS 5 VM's (under Xen, also CentOS5).
Typically, I am looking for LAMP+standard tools, e.g. FTP, SSH, mail, etc.
I tried to create one myself, but the configurator seemed to ignore my specifics and install large groups of stuff anyway.
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:
Server 1
Hardaware: Dual Opteron 2212 + 4 GB RAM + 2 SAS 146 GB drives. CentOS5 x64
uname -a
Linux s1.tp.netmanaged.net 2.6.18-53.1.13.el5 #1 SMP Tue Feb 12 13:02:30 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 10316 684 ? Ss Feb14 0:03 init [3]
root 2 0.0 0.0 0 0 ? S Feb14 0:11 [migration/0]
root 3 0.0 0.0 0 0 ? SN Feb14 0:01 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Feb14 0:00 [watchdog/0]
root 5 0.0 0.0 0 0 ? S Feb14 0:25 [migration/1]
root 6 0.0 0.0 0 0 ? SN Feb14 0:02 [ksoftirqd/1]
root 7 0.0 0.0 0 0 ? S Feb14 0:00 [watchdog/1]
root 8 0.0 0.0 0 0 ? S Feb14 0:00 [migration/2]
root 9 0.0 0.0 0 0 ? SN Feb14 0:00 [ksoftirqd/2]
root 10 0.0 0.0 0 0 ? S Feb14 0:00 [watchdog/2]
root 11 0.0 0.0 0 0 ? S Feb14 0:00 [migration/3]
root 12 0.0 0.0 0 0 ? SN Feb14 0:00 [ksoftirqd/3]
root 13 0.0 0.0 0 0 ? S Feb14 0:00 [watchdog/3]
root 14 0.0 0.0 0 0 ? S< Feb14 0:00 [events/0]
root 15 0.0 0.0 0 0 ? S< Feb14 0:00 [events/1]
root 16 0.0 0.0 0 0 ? S< Feb14 0:00 [events/2]
root 17 0.0 0.0 0 0 ? S< Feb14 0:00 [events/3]
root 18 0.0 0.0 0 0 ? S< Feb14 0:00 [khelper]
root 55 0.0 0.0 0 0 ? S< Feb14 0:00 [kthread]
root 63 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kblockd/]
root 64 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kblockd/]
root 65 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kblockd/]
root 66 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kblockd/]
root 67 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kacpid]
root 180 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [cqueue/0]
root 181 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [cqueue/1]
root 182 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [cqueue/2]
root 183 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [cqueue/3]
root 186 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [khubd]
root 188 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kseriod]
root 279 0.0 0.0 0 0 ? S< Feb14 0:40 \_ [kswapd0]
root 280 0.0 0.0 0 0 ? S< Feb14 1:02 \_ [kswapd1]
root 281 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [aio/0]
root 282 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [aio/1]
root 283 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [aio/2]
root 284 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [aio/3]
root 436 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kpsmouse]
root 497 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [scsi_eh_]
root 503 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [ata/0]
root 504 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [ata/1]
root 505 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [ata/2]
root 506 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [ata/3]
root 507 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [ata_aux]
root 513 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [scsi_eh_]
root 514 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [scsi_eh_]
root 515 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [scsi_eh_]
root 516 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [scsi_eh_]
root 517 0.2 0.0 0 0 ? S< Feb14 17:38 \_ [kjournal]
root 549 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kauditd]
root 1184 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kedac]
root 1700 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kmpathd/]
root 1701 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kmpathd/]
root 1702 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kmpathd/]
root 1703 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kmpathd/]
root 1734 0.0 0.0 0 0 ? S< Feb14 0:03 \_ [kjournal]
root 1736 0.0 0.0 0 0 ? S< Feb14 0:00 \_ [kjournal]
root 3220 0.0 0.0 0 0 ? SN Feb14 1:59 \_ [kipmi0]
root 5770 0.0 0.0 0 0 ? S 00:15 0:02 \_ [pdflush]
root 12519 0.0 0.0 0 0 ? S 00:48 0:02 \_ [pdflush]
root 583 0.0 0.0 13480 1624 ? S<s Feb14 0:00 /sbin/udevd -d
root 2272 0.0 0.3 23588 13780 ? Ss Feb14 0:00 /usr/sbin/rest
root 2287 0.0 0.0 81800 772 ? S<sl Feb14 0:03 auditd...
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.
get my development box set up running LAMP. I have Fedora 7 currently installed but don't really know much about setting up the environment to host multiple sites (development purposes only), getting Phpmyadmin set up, etc. I'm used to typically doing my dev with with apache2triad on Windows but would much rather be working on a Linux box for development as i do my hosting in a Linux environment as well.
View 1 Replies View RelatedI notice the server is really slow and it takes awhile to connect and cause connection timed out. So I changed the default apache setting to
<IfModule prefork.c>
StartServers 16
MinSpareServers 10
MaxSpareServers 40
MaxClients 250
MaxRequestsPerChild 2000
</IfModule>
and it seems to be normal again. Right now there is 2000 visitors going to the website and possibly 3000/hour during peek hours. The page is in php/mysql, 4 mysql queries per page.
When I goto CPU/MEMORY/MYSQL usage in WHM, there is a red color bar and the information is
UserDomain%CPU%MEMMySQL Processes
nobody39.11139.640.0
139.64%ram
The server specs is
Processor Information
Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz
Processor #1 speed: 1862.000 MHz
Processor #1 cache size: 4096 KB
Processor #2 Vendor: GenuineIntel
Processor #2 Name: Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz
Processor #2 speed: 1862.000 MHz
Processor #2 cache size: 4096 KB
Memory Information
Memory: 1015156k/1031168k available (2043k kernel code, 14404k reserved, 846k data, 232k init, 112872k highmem)
Physical Disks
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
Current Memory Usage
total used free shared buffers cached
Mem: 1017280 929648 87632 0 28292 138916
-/+ buffers/cache: 762440 254840
Swap: 2096472 84416 2012056
Total: 3113752 1014064 2099688
Current Disk Usage
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 286G 4.4G 267G 2% /
/dev/sda1 99M 15M 80M 16% /boot
tmpfs 497M 0 497M 0% /dev/shm
/dev/sda3 996M 40M 905M 5% /tmp
Is the server fine as of right now or can I tweak it or add a extra stick of ram because it seems there are only 80mb of free ram?
I'm left with the task of replacing a Gateway 7210 w/raid 5 array.
We have a lease deal with Dell so it must be a Dell Box.
This is only being used to host one e-commerce website getting about 20,000 uniques a day with a 70,000 MSSQL DB.
Here's what Dell recommended.
222-5262
1 Dual Core Xeon Processor 5140 4MB Cache, 2.33GHz, 1333MHz` FSB, PE1900
466-0823
1 4GB 667MHz (4X1GB), Dual Ranked Fully Buffered DIMMs
430-1765
1 Broadcom TCP/IP Offload EngineNot Enabled
341-3962
1 36GB 15K RPM SAS Hard Drive
341-3018
1 PERC 5/i, Integrated Controller Card
341-3052
1 No Floppy Drive
420-5796
1 Windows Server 2003 R2 Standard Edition, Includes 5 CALs
430-1764
1 Embedded Broadcom NetXtreme II5708 GigabitEthernet NIC
313-4571
1 48X IDE CD-RW/DVD ROM Drive for PowerEdge 2900/1900
341-3962
1 36GB 15K RPM SAS Hard Drive
341-4020
1 Integrated SAS/SATA RAID 5 PERC 5/i Integrated
341-3962
1 36GB 15K RPM SAS Hard Drive
How would you build it?
I want to buy soon a Dell PowerEdge SC1435, as my first 1U server.
I will hook it to a co-location data center, near by my place.
Feel free to tell me if you see some bad choice related to server options:
Dual Core AMD Opteron 2212HE 2.0GHz, 2x1MB Cache, 1Ghz HyperTransport
No Operating System
No Memory (if possible, plan to buy recognized performance brand)
24X IDE CD-ROM
SAS 5IR internal RAID adapter, PCI-Express
Add-in SAS5iR RAID Controller which supports 2 SAS Hard Drives - RAID 1
No Hard Drives (I already purchased 2 Fujitsu 73GB 15K SCSI ULTRA320 80pin HD's - Part MAU3073NC)
On-Board Dual Gigabit Network Adapter, No TOE
Rack Chassis with Static Rapid Rails, 1U
Riser with 1 PCIe Slot
Broadcom DualPort TCP/IP Offload Engine Not Enabled, Linux OS Only
Bezel
I have the 2 Fujitsu 73GB HD's and plan to set them into a RAID 1 array.
Will the RAID controllers from Dell be compatible with the above HD's?
Do you recommend me NOT to get the Dell controllers and purchase instead a different brand?
I'm a a JAVA software developer and it happens that I need to configure a dedicated server running Win 2003.
It's already up and running with static IP address, however hosting offers a "Static IP Address", which doesn't really make sense, cause I already have one?
Other thing is domain name. Current domain name is registered with a different company and we don't really want to transfer it from that company. Can I get away with importing a domain name and changing MX records in the domain control panel?
Last thing is an email server. What do I need to set up an Email Server? I have a domain name with few POP3 email addresses. I thought about using hMail server for windows. What else do I need to do, pay for?
can anybody refer me good Australian LAMP (Linux/Unix-Apache-PHP-MySQL) hosting?
It should be not crazy expensive, with upgrade options (if project traffic grow), with good support, fast and on non-overcrowded server.
Ideally it also should pay me (as developer) commission for hosting the client's project.
And yes, it should be Australian both in term of company registration and physical location of servers.
I have accounts on site5 and hostgator (shared plan, not dedicated) and was trying setup knowledgetree a open source document management portal built on Linux/PHP/Apache/MySQL platform.
Everything worked fine except the indexing component as that required Java/JRE. Indexing is very important to me.
So all my hard work for the last 2 days came to a screeching halt.
I badly need to find a hosting service that offers LAMP + Java technologies for a decent price.
We are getting ready to re-work some of our dedicated server configurations, and I'd like to get some feed back from the community to see what it is that you are looking for when you buy a dedicated server.
So what tickles your fancy? Faster disks? More RAM? "Green" servers? What about CPU's - do you have a favorite? Atoms? Dual Cores or Quad Cores? Maybe it's all about price point - I'm really trying to get a handle on making our offerings match as closely as possible to what you would want in a dedicated server, so throw it out here and let's get some constructive ideas going.
I have a dedicated windows server 2003.
I installed VPN on this server and everything seems to be ok and I can connect to my VPN server but I don't have Internet when I connect to my server.
How can I share internet in my VPN server?
I want to use this VPN for my self and for secure browsing on internet.
I was wondering what the average web host server machine configuration would be.
View 11 Replies View Related