Results 1 to 5 of 5
Alright I installed LAMP server and entered below command to check the installation of apache2 and php5.
sudo /etc/init.d/apache2 restart
on the browser "It Works"
for php testing:
gksudo gedit ...
- 09-14-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
/var/www- LAMP
Alright I installed LAMP server and entered below command to check the installation of apache2 and php5.
sudo /etc/init.d/apache2 restart
on the browser "It Works"
for php testing:
gksudo gedit /var/www/testing.php
entered and saved the line (<?php phpinfo(); ?>)
on the browser: Loaded the php page with my system specifications.
What are the steps needed to show my site(www.mysite.com) on typing localhost on the browser rather than "It works".
Any help!
Thanks!
- 09-14-2009 #2Just Joined!
- Join Date
- Aug 2009
- Posts
- 76
add an index.html or index.php to the /var/www folder and it will display that instead of the 'It Works' screen.
- 09-14-2009 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
That would just display "www.mysite.com" instead of "It Works" when I edit or create new file called index.html or index.php.
But I want to see my site.
Let's say for example, when I type localhost on browser I want to see http//www.linuxforumns.org/ site.
To be clear, in windows when we download apache, we go through installation steps where at a point we come across server configuration in apache
I entered
www.mysite.com
<http://www.mysite.com>
admin@mysite.com ( sorry forgot the sub-headings )
Finally we click "Install"
and offcourse I setup the root password(mypassword) for mySQL.
Once I do all this ( I forgot what I need to edit the php.ini file, proably the domain name ..etc etc I think )
After I'm done with all this when I type localhost on broswer. I see mysite instead of the apache site.
This is what I wanted to do in linux too.
Any help!
Thanks!
- 09-14-2009 #4Just Joined!
- Join Date
- Aug 2009
- Posts
- 76
How To Create Multiple Websites using Apache/XAMPP for Linux.
Try adding these directives into your /etc/apache2/sites-available/default file just under <VirtualHost *:80>
ServerName myfirstdomain.com
ServerAlias www.myfirstdomain.com
replace those URLs with the ones you actually want to use.
- 09-14-2009 #5Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
I tried as below, but no luck.
<VirtualHost *:80>
ServerAdmin admin@mydomain.com
ServerName mydomain.com
ServerAlias www.mydomain.com
Then restarted apache: sudo /etc/init.d/apache2 restart
* Restarting web server apache2 ... waiting [ OK ]
But I wasn't able to see my site. Now what am I missing?
Thanks!


Reply With Quote