hey, i want to install apache ,php and mysql.in my ubuntu linux. but i come across a problem . i configure the apache ,and in the command line it works well:
root@chrysanthemumwolf-laptop:/usr/local/apache2/conf# /usr/local/apache2/bin/apachectl start
httpd (pid 4325) already running
root@chrysanthemumwolf-laptop:/usr/local/apache2/conf# /usr/local/apache2/bin/apachectl restart

but when i test it in my browser : http://localhost/
it didn`t work .
if someone can do me a favor ,i would appreciate it . thank you for that !
i can show parts of the httpd.conf :
ServerRoot "/usr/local/apache2"

#Listen 12.34.56.78:80
Listen 80

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>

User daemon
Group daemon

</IfModule>
</IfModule>

ServerAdmin you@example.com

ServerName localhost:80

DocumentRoot "/usr/local/apache2/htdocs"

<Directory "/usr/local/apache2/htdocs">

.thank you !

I notice that your net-bios is chrysanthemumwolf-laptop
If you are using a laptop for a testing server rather than a production server try XAMPP. You will find it much easyer
http://www.apachefriends.org/en/xampp-linux.html

yeah , i use a laptop just for testing and learning php ,not for production server.
thank you so much for that .i 'll try XAMPP right away .

Follow this:

http://www.daniweb.com/forums/thread78131.html

In short:

apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql phpmyadmin

This will install the Apache, Mysql, PHP and PHPMyAdmin. This is mostly the same as XAMPP. The benefit of this as compared to that or building from source like you tried is as its easy and you keep up to date with automatic security patches.

yeah , i use a laptop just for testing and learning php ,not for production server.
thank you so much for that .i 'll try XAMPP right away .

yes ,i have tried it for many times and reboot the laptop .but it doesn`t work out .
it seems that there is somthing wrong in my ubuntu . that`s why i make configuration by myself . whatever ,thank you for sugesstions .:)

hey, samarudge,i tried the xampp for linux ,but in the process,i got a mail which showed: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName.
i google and ASK for a lot of material . but i cannot figure it out .
i vim the httpd.conf . slice of it is :
ServerRoot "/opt/lampp"
Listen 80
ServerName localhost
DocumentRoot "/opt/lampp/htdocs"

it should work ,i think . where does the problem located?

,i tried the xampp for linux ,but in the process,i got a mail which showed: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName.

Thats normal unless you are using a static IP and have DNS configured.

You wont unless its an actual server.

Thats normal unless you are using a static IP and have DNS configured.

You wont unless its an actual server.

thank you ! but when i type : http://localhost/ in my browser(firefox) . it doesn't work. i feel mighty blue now .:(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.