Results 1 to 3 of 3
Hey,
First I want the webserver up and running. Later once I get familiar I'll go for Virtual Host setup, for now I want to stick to default one.
So ...
- 09-17-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
/etc/apache2- all folders are empty
Hey,
First I want the webserver up and running. Later once I get familiar I'll go for Virtual Host setup, for now I want to stick to default one.
So I re-installed LAMP server, but when I try to start apache
sudo etc/init.d/apache2 start
it says "404: Can't open /etc/apache2/envvars.
When I checked my apache2, all folders were empty. That's the problem I guess, how do I get the contents up there. Will the reinstall work?
sudo apt-get re-install apache2
Thanks!
- 09-18-2009 #2Just Joined!
- Join Date
- Feb 2009
- Location
- location, location
- Posts
- 18
When I installed Apache I did so using the source and not the package.
Having downloaded the source and unpacked the tarball, I issued these commands:
Not sure if that helps you or not...Code:./configure --prefix=/usr/local/apache2 make sudo make install sudo /usr/local/apache2/bin/apachectl start
- 09-18-2009 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
Hey Stevie,
No problem I figured it out and now it's installed.
I had to remove apache completely.
sudo dpkg --get-selections | grep apache2 (This lists the installs of apache2)
To delete all the installs listed use the below command:
sudo apt-get remove --purge apache2 <......list of installs>
Then install apache:
sudo apt-get install apache2
Make sure you have my.conf and debian-start files in /etc/mysql to run the mysqlserver.
I installed the LAMP sever rather than the tar files. It's easy using LAMP if your a beginner not familiar with terminal installation.
To install LAMP Systems->Administration->Synaptic package Manager
Edit->Mark Packages by task. Check against the LAMP and click MARK and then APPLY that'll do the job.
Finally, do I save all my php files in /var/www/myfilename.php. By writing the code through the terminal using sudo nano /var/www/myfilename.php.


Reply With Quote