Apache :: Setting Up Second Server With LAMP
Feb 21, 2015
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?
View 1 Replies
ADVERTISEMENT
Sep 16, 2007
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 Related
Mar 1, 2015
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?
View 5 Replies
View Related
Jul 18, 2013
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 ?
PHP Version 5.3.8
Mysql
Apache 2.0
SUSE
View 1 Replies
View Related
Jan 8, 2015
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]....
View 9 Replies
View Related
Jan 3, 2007
How would you install suPHP on a cpanel server
goto [url] for more information
View 3 Replies
View Related
Jan 26, 2013
*My computer is a computer of a 500 computers network within our company.
* i have been given a STATIC local intranet ip 192.168.10.168 assigned by our IT department via their router.
* i have the internet facility provided through the above mentioned intranet for which i get a dynamic ip ex: 188.54.208.205, 176.44.107.21
* i have installed WAMP server.
my current project for the company i am doing should be able to access via internet in addition to the local access. local access is the primary access method. so now i have installed a free dns service like dyndns. at the setup of that, i have choosen a free subdomain ex: my.freedns.com they offer. then i assigned the ip ex:188.54.208.205. also installed their desktop client for monitoring ip changes auto updates.
Now the problem is : when i hit my.freedns.com the page displaying is of our internet service provider. not of my project homepage . How can i fix so when i issue above subdomain it will show my webserver default page?
View 11 Replies
View Related
Mar 21, 2008
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.
View 5 Replies
View Related
Dec 8, 2008
under your experiences which is the configuration recommended for a LAMP server? safe mode, phpsuexec, php version...
View 2 Replies
View Related
Nov 20, 2007
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)?
View 4 Replies
View Related
May 21, 2009
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.
View 14 Replies
View Related
Jan 23, 2008
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 Related
Jul 19, 2008
How to install and configure memcached in LAMP server through easyapache or any other method.(cpanel installed server)
View 5 Replies
View Related
Jul 18, 2007
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.
View 3 Replies
View Related
Oct 12, 2009
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.
View 8 Replies
View Related
Apr 6, 2009
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.
View 6 Replies
View Related
Jul 14, 2008
I have read apache docs.
I have entered document root:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
DocumentRoot "C:/operator1/oex-onmedias/primary"
So now apparently, when I type "myurl" in my browser, it would display C:/operator1/oex-onmedias/primary/index.html, but it does not work! Why?
Another question, how would I then be able to browse my actual website on my web host after I have uploaded it to my online server if the url is the same? it would only take me to the local server.
Last question, how would I set up multiple local websites on apache? Do I need to do a new apache install for each website? Or if not, how do I divide doc-root urls and domains of multiple sites in my config file?
View 5 Replies
View Related
Mar 25, 2007
I'm trying to setup a subdomain, and this is what i've added in httpd.conf
<VirtualHost 000.000.000.000>
ServerName dir.domain.com
DocumentRoot /home/domain/html/dir/
</VirtualHost>
Am i missing something here? I restarted httpd when finished.. but it doesnt work.
View 3 Replies
View Related
Apr 6, 2015
I'm currently in the process of configuring a red hat linux server as a proxy server for a number of back end web servers. I set up reverse proxying to hide the web server url's, but I've run into a problem with the second web server, because some of the directory structures are identical on both servers.
View 2 Replies
View Related
Dec 5, 2013
I am using apache 2.4, mod_auth_form and mod_session with cookie based sessions. I would like my sessions to expire after 15 minutes of inactivity - so I set
SessionMaxAge 900
However, I also need my sessions to expire when the user closes the browser. Unfortunately, the cookie header sent looks like
Set-Cookie: session=Private-user=someUser&Private-pw=thePassword&expiry=1386227882551049;Max-Age=900;path=/;HttpOnly
I have temporarily turned off SessionCryptoPassphrase for debugging.
The problem is the "Max-Age=900". This makes the cookie persistent in the browser, so that even if the browser is closed, the session will still be valid if a new browser session is started within 15 minutes.
Can I avoid the "Max-Age=900"?
Or should I use mod_headers to rewrite the set-cookie header?
View 5 Replies
View Related
Oct 30, 2014
This is just an internal server setup to learn web programming and looking to create a environment close as possible to the real world setup. I'm using xxxx.dlinkddns.com
View 1 Replies
View Related
Mar 30, 2014
I'm trying to set up a login script on twenty subdomains that will be checked on another subdomain. I've found this example for different domains and figure it should be simple enough to utilise but my ereg is crappy
<IfModule mod_headers.c>SetEnvIf Origin "http(s)?://(www.)?(domain1.com|domain2.com)$" AccessControlAllowOrigin=$0$1Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin</IfModule>
View 4 Replies
View Related
Mar 15, 2013
I work for a start up as well as do independent consulting. I had a friend set up my apache server initially for the start up. It's been running fine. Now I want to host a client's site on the same server. I tired just adding a vhost section at the bottom of the conf file, but it said that I was running two sites off the same port. I tried manipulating the stuff my buddy did for me for the first site, then putting two vhosts on the bottom, but that just didn't work.
View 5 Replies
View Related
Oct 21, 2012
I'm kinda new to apache and I have the following situation.
I have a vps, on which I have set the following:
WordPress Site A, has it's own VirtualHost and domain
WordPress Site B, has it's own VirtualHost and domain
Canvas LMS (not connected to a domain).
Canvas LMS can add multiple accounts, which may (or may not) be accessed individually using a URL that looks as follows:
{canvas_root}/accounts/{account_id}/
For example : http://....../accounts/4/
I need to add a link to each of WP sites, which points to each site's account on Canvas, such that it appears as .../learning/ folder
For example:
Code:
http://WPSiteA/learning/
http://WPSiteB/learning/
which actually represents
Code:
http://WPSiteA/accounts/4/
http://WPSiteB/accounts/5/
Which in turn represents
Code:
http://{my_vps_ip}/accounts/4/
http://{my_vps_ip}/accounts/5/
respectively
Noticing the following:
I do not want the users to see the /account/4/ , just /learning/
I also want to prevent accessing
Canvas LMS is located beyond the website's DocumentRoot
I want this to work with both HTTP and HTTPS
View 3 Replies
View Related
Feb 25, 2014
I'm trying to accomplish two goals: First, get "Pretty Links" to work on my local Wordpress instance; second, to set up a local domain for the site.I have a fresh install of Apache 2.4.6 running, and I'll I've done is enable the rewrite and vhost_alias mods. Nevertheless, here's my apache2.conf: URL....
I need to have AllowOverride set to All. This, I gather, allows .htaccess files within the subsequent directories to alter the apache config. To try one thing at a time, I'm accessing the site from localhost/var/www/dhae/Wordpress (foregoing the domain). I tried altering the 000-default.conf to oblige this: [URL] .... -- all I added was the <Directory> section. This didn't work, and neither did changing the AllowOverride to All in the apache2.conf.
I wondered if perhaps I needed something more specific to the directory, so I tried using my second goal to accomplish this. I wrote the dhae.conf: URL....
I've also added the following line to my HOSTS file:127.0.0.1 dhae.dev
This hasn't worked either. I've tried virtual host config stuff as much as I could find, and I'm just not having any luck. What I have even came from this site (URL....).
View 7 Replies
View Related
May 31, 2014
I am trying to set up domains and subdomains, on my webserver, however the domains are resolving, but when accessing a subdomain I get a 500 internal server error, permissions on files are the same on both domain and sub domain level.
My virtual host files looks like this for domains and for the subdomains, and I am using Apache 2.4.7, on an ubuntu 14.04 running on a rackspace cloud server.
Domains:
<virtualhost *:80>
ServerAdmin mail@mail.mail
ServerName domain.com
ServerAlias www.domain.com
[Code] ....
Why it works on domains, and not the subdomains?
View 1 Replies
View Related
Jan 25, 2009
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 Related
Mar 15, 2008
information regarding any sites or books that discuss in detail the installation and troubleshooting of Apache,Mysql, PHP....and also DNS.
View 3 Replies
View Related
Apr 1, 2008
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?
View 6 Replies
View Related