Does Apache comes included with Fedora 5?
I just installed Fedora on my system.
I also installed Bluefish since I will be using it to do some web development. I want to install Apache, PHP and MySQL. Now, I heard that Apache may be already included in the operating system. So when I login as root and type httpd -v on the terminal, this comes out: Server version: Apache/2.2.0 Server build: Feb 11 something something So I guess this means it is installed. But I make a search for apache folder and can't find it. I also type http://localhost on the browser and it doesnt work. I have been looking on the Services and can't find it anywhere. SO HERE ARE MY THREE QUESTIONS: In what folder is Apache supposed to be, IFFFF it is installed? Are PHP and MySQL already included with Fedora 5? When I login as an user the httpd -v command doesnt work. Why? Thanks in advance, Leo |
To find out if apache is installed you can use the rpm command. I believe it is rpm -qa will tell you all packages installed. Now as far as the directory for apache files it is normally
/var/www/htdocs. I would check your /etc/apache directory for more information. As far as PHP and mySQL being installed I am not sure. If you chose to install them during your pc installation then yes they are there. |
You can use "rpm -qa|grep php" to search for packages that have php in the title. If certain things are not installed, like if mysql-server is not installed, you can issue the following command:
yum install mysql-server and it will be downloaded and installed from a mirror. The reason that command worked as root and not as a user is becuase of your path. If you type "/usr/sbin/httpd -v" it will work no matter who you are logged in as. The default root directory for your website is /var/www/html and the config files are located in /etc/httpd/ Some packages you will need are httpd, php, php-mysql, mysql-server. You may require some others like mod_auth_mysql, mysql-administrator, system-config-httpd, httpd-manual (never hurts), mysql-gui-common |
Make sure selinux is disabled in the /etc/selinux.conf file too or you'll pull your hair out. Run system-config-securitylevel to alter your firewall. Make sure apache is running.
|
All times are GMT -5. The time now is 04:50 AM. |