openSUSE Forums > Applications » LAMP Help

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read

Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21-Aug-2008, 20:04
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 28
GregNYR02 hasn't been rated much yet
Default LAMP Help

Linux noob running OpenSuse 11.0. Installed the whole LAMP package via Yast; I selected it as a pattern, clicked install all, etc. as instructed in the documentation/wiki. I'm either completely missing how to get it started, or I did something wrong. I'm familiar with the WAMP package, but I've gotten it to run on ubuntu before, and on both I went to http://localhost/. On here, localhost resolves to a failed to connect.

Any help would be appreciated.

Thanks,
Greg
Reply With Quote
  #2 (permalink)  
Old 21-Aug-2008, 20:17
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 4,373
ken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of light
Default Re: LAMP Help

You still have to start the services (apache2, mysql). On Debian/Ubuntu installing a server package also automatically enables the service. It's debatable whether this is the right thing to do, but then that's how it is with these distros. You can start the services via YaST also. Also going to http://localhost/ will get you Directory index not permitted. Try http://localhost/index.html

There's more you have to do later. You have to enable php5 in Apache if you hope to view PHP pages.
Reply With Quote
  #3 (permalink)  
Old 21-Aug-2008, 20:40
mmarif4u's Avatar
Busy Penguin
 
Join Date: Jun 2008
Location: Malaysia
Posts: 338
mmarif4u hasn't been rated much yet
Default Re: LAMP Help

try to start your server in terminal:
Quote:
sudo /etc/init.d/apache2 start
PHP is by default started after completing LAMP installation.

Other commands:
Quote:
sudo /etc/init.d/apache2 stop
Quote:
sudo /etc/init.d/apache2 restart
__________________
My Blog
My Programming and Linux Blog
LINUX IS LINUX.
WINDOWS IS WINDOWS BUT NOT LINUX.
Reply With Quote
  #4 (permalink)  
Old 21-Aug-2008, 21:10
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 28
GregNYR02 hasn't been rated much yet
Default Re: LAMP Help

Quote:
Originally Posted by mmarif4u View Post
try to start your server in terminal:


PHP is by default started after completing LAMP installation.

Other commands:
Tried that, the following was returned:

greg@linux-2s33:~> sudo /etc/init.d/apache2 start
Module "ruby" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Starting httpd2 (prefork) /usr/sbin/httpd2-prefork: symbol lookup error: /usr/sbin/httpd2-prefork: undefined symbol: apr_atomic_xchgptr

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
failed

Also tried via YAST (HTTP Server config) and still doesn't work (localhost)

Things did show up in htdocs, though.
Reply With Quote
  #5 (permalink)  
Old 21-Aug-2008, 21:28
mmarif4u's Avatar
Busy Penguin
 
Join Date: Jun 2008
Location: Malaysia
Posts: 338
mmarif4u hasn't been rated much yet
Default Re: LAMP Help

I didn't face this module issue before.
Did you install all apache files in LAMP from yast.
check it again there.
__________________
My Blog
My Programming and Linux Blog
LINUX IS LINUX.
WINDOWS IS WINDOWS BUT NOT LINUX.
Reply With Quote
  #6 (permalink)  
Old 21-Aug-2008, 21:45
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 28
GregNYR02 hasn't been rated much yet
Default Re: LAMP Help

Quote:
Originally Posted by mmarif4u View Post
I didn't face this module issue before.
Did you install all apache files in LAMP from yast.
check it again there.
Yup, everything in that pattern is installed.
Reply With Quote
  #7 (permalink)  
Old 22-Aug-2008, 01:43
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 4,373
ken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of light
Default Re: LAMP Help

You may still have some missing dependencies, something went wrong. Please do this:

Code:
ldd /usr/sbin/httpd2-prefork
and post the result.
Reply With Quote
  #8 (permalink)  
Old 22-Aug-2008, 09:51
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 28
GregNYR02 hasn't been rated much yet
Default Re: LAMP Help

Quote:
Originally Posted by ken_yap View Post
You may still have some missing dependencies, something went wrong. Please do this:

Code:
ldd /usr/sbin/httpd2-prefork
and post the result.
Returns:

greg@linux-2s33:~> ldd /usr/sbin/httpd2-prefork
linux-gate.so.1 => (0xffffe000)
libm.so.6 => /lib/libm.so.6 (0xb802b000)
libpcre.so.0 => /usr/lib/libpcre.so.0 (0xb8001000)
libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0xb7fe8000)
libdb-4.5.so => /usr/lib/libdb-4.5.so (0xb7ec5000)
libexpat.so.1 => /lib/libexpat.so.1 (0xb7e9e000)
libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0xb7e78000)
librt.so.1 => /lib/librt.so.1 (0xb7e6e000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7e38000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7e20000)
libdl.so.2 => /lib/libdl.so.2 (0xb7e1c000)
libc.so.6 => /lib/libc.so.6 (0xb7cd9000)
/lib/ld-linux.so.2 (0xb8063000)
libldap-2.4.so.2 => /usr/lib/libldap-2.4.so.2 (0xb7c9a000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb7c8a000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb7c77000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7c5e000)
libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7c19000)
libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7ad5000)
libz.so.1 => /lib/libz.so.1 (0xb7ac0000)
Reply With Quote
  #9 (permalink)  
Old 22-Aug-2008, 10:08
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 4,373
ken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of lightken_yap is rated a glorious beacon of light
Default Re: LAMP Help

Strange. libapr-1.so.0 contains one or two apr_atomic_xchg* symbols but not apr_atomic_xchgptr. Could you have a foreign apache module installed from somewhere else, from an external package for Ruby perhaps? Do you have any non-OpenSUSE packages or software installed? Or perhaps a hangover from an older version of SUSE?

Hah, ok, a search found the solution. You need to update some additional packages after the update to apache2, which I assume is because you got the latest version during the install.

Starting httpd2 (prefork) /usr/sbin/httpd2-prefork: symbol lookup error: /usr/sbin/httpd2-prefork: undefined symbol: apr_atomic_xchgptr | SUSE & openSUSE
Reply With Quote
  #10 (permalink)  
Old 22-Aug-2008, 10:24
Puzzled Penguin
 
Join Date: Aug 2008
Posts: 28
GregNYR02 hasn't been rated much yet
Default Re: LAMP Help

Quote:
Originally Posted by ken_yap View Post
Strange. libapr-1.so.0 contains one or two apr_atomic_xchg* symbols but not apr_atomic_xchgptr. Could you have a foreign apache module installed from somewhere else, from an external package for Ruby perhaps? Do you have any non-OpenSUSE packages or software installed? Or perhaps a hangover from an older version of SUSE?

Hah, ok, a search found the solution. You need to update some additional packages after the update to apache2, which I assume is because you got the latest version during the install.

Starting httpd2 (prefork) /usr/sbin/httpd2-prefork: symbol lookup error: /usr/sbin/httpd2-prefork: undefined symbol: apr_atomic_xchgptr | SUSE & openSUSE
Thanks, that did the trick.
Reply With Quote
Reply


Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2