MySQL and Apache continued: I have made progress and think I have been able to create a basic database and get the web server running. To clarify, I am installing and setting up a client/server configuration on my HomePC (localhost). And to not leave out any details about "messing around with apache's configuration", I will add to the story for those who have time to read it. Others can jump down to paragraph 6). 1) Initial I had Apache2, MySQL, php installed default with YaST2 from the Suse 9.1Pro media. However, but had not used these applications or enabled the http server. 2) Later I installed a tar ball for eZ publish bundled with Apache 1.3, MySQL, PHP and ImageMagic, which was installed in a temporary test directory according to: http://www.ez.no/ez_publish/documentation/installation/bundled_installation http://www.ez.no/ez_publish/documentation/installation/bundled_installation/... I enabled the http service and added port 8085 with Yast2, but didn't get the eZ publish bundle to work. 3) Then I removed the eZ publish bundle and removed and reinstalled with Yast2 the original rpms for MySQL, Apache2, PHP and ImageMagic, to start try a normal installations of eZ publish "alone" from schratch. And this is where I started this thread. I tried several times to test the web server to get it to display the Apache Installation test page, but http://localhost would not work. However, adding a port number like the previous http://localhost:8085 did work. 4) To be sure to start on a clean installation, I have now also removed /etc/Apache2 configuration folder, disabled the http service with Yast2 and removed and reinstalled the packages another time. Tested with http://localhost and http://localhost:8080 which didn't work, neither before I enabled the http server nor after I enabled the http server. 5) Then I added port 8080 to the http server with yast2. Now http://localhost still didn't work while http://localhost:8080 did display the Apache page. 6) At last I happened to try "http://localhost:80" and suddenly some(thing) (re)setting happened. Mozilla automatically changed this url automatically to "http://localhost" and displayed the Apace test page. After this also the latter url did work in Opera and Konqueror. Also the eZ publish setup wizard in my personal web-folder starts using http://localhost/~/ezp Now also the eZ publish setup wizard is started and displayed as it should, without the previous need to add port number in these alternative urls: http://localhost/~terje/ezp/index.php http://localhost/%7Eterje/ezp/index.php http://localhost/~terje/ezp http://localhost/%7Eterje/ezp From this experience it may look like the url "http://localhost" doesn't work at once, not at least when another port number has been used in the browser previously. Any idea or suggestion how and where to set "http://localhost" to work directly? I had some problems to find and verify the right entries in the long file /etc/services. I just wonder if port setting using the Yast2 http service tools, also updates both /etc/Apache2/listen.conf and /etc/services? Terje Terje
* Terje J. Hanssen
4) To be sure to start on a clean installation, I have now also removed /etc/Apache2 configuration folder, disabled the http service with Yast2 and removed and reinstalled the packages another time. Tested with http://localhost and http://localhost:8080 which didn't work, neither before I enabled the http server nor after I enabled the http server.
5) Then I added port 8080 to the http server with yast2. Now http://localhost still didn't work while http://localhost:8080 did display the Apache page.
6) At last I happened to try "http://localhost:80" and suddenly some(thing) (re)setting happened. Mozilla automatically changed this url automatically to "http://localhost" and displayed the Apace test page. After this also the latter url did work in Opera and Konqueror.
Now also the eZ publish setup wizard is started and displayed as it should, without the previous need to add port number in these alternative urls: http://localhost/~terje/ezp/index.php http://localhost/%7Eterje/ezp/index.php http://localhost/~terje/ezp http://localhost/%7Eterje/ezp
From this experience it may look like the url "http://localhost" doesn't work at once, not at least when another port number has been used in the browser previously.
Any idea or suggestion how and where to set "http://localhost" to work directly?
You have answered your own question. Why did you and do you continue to set other ports to listen when you know that :80 is standard? look at: http://httpd.apache.org/docs-2.0/mod/mpm_common.html#listen and /etc/apache2/listen.conf note that this is probably settable via Yast2, but I did not look. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
participants (2)
-
Patrick Shanahan
-
Terje J. Hanssen