LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   No LAMP on Suse12.2 (https://www.linuxquestions.org/questions/suse-opensuse-60/no-lamp-on-suse12-2-a-4175443848/)

bscho 01-02-2013 01:13 PM

No LAMP on Suse12.2
 
I have loaded Suse12.2. I have a notebook HP635. I am dual booting with
Mint 13 which now works with the help of linux gurus on this forum alas,
the mints software manager doesn't work and so I am left with no distro that
works properly.

I have Suse12.2 and I am trying to get LAMP to work. I have MYSQL working
but no php. The apache and php have been reloaded several times but no php
even though apache works. Is there a command like the lamp-server on Mint?

I am told the apache and php are loaded on installation, I can see them with Yast
and reloaded several times but no php appears to work.

angryfirelord 01-02-2013 02:41 PM

Assuming that nothing has been changed in the Apache directory, what happens when you point your browser to 127.0.0.1?

To test PHP, you can make a .php file with the following:
PHP Code:

<?php
    phpinfo
();
?>

You can then put it in your public folder and point your browser to that. If PHP is loaded, you'll get the information from that page.

John VV 01-02-2013 04:20 PM

Also of note is that novell royally changed things on suse ,in regards to the apache stack .
really changed things around
the apache documentation will be of very little use
http://httpd.apache.org/docs/2.4/
and in no way reflect what was done to the apache stack on suse
see the SUSE docs
http://en.opensuse.org/SDB:Apache_installation
http://en.opensuse.org/SDB:Linux_Apache_MySQL_PHP

bscho 01-03-2013 12:45 PM

No php
 
Quote:

Originally Posted by angryfirelord (Post 4861538)
Assuming that nothing has been changed in the Apache directory, what happens when you point your browser to 127.0.0.1?

To test PHP, you can make a .php file with the following:
PHP Code:

<?php
    phpinfo
();
?>

You can then put it in your public folder and point your browser to that. If PHP is loaded, you'll get the information from that page.

I have done that it works. I have pointed the browser to localhost and 127.0.0.1 /info.php "it works" shows, followed by the php info page.

Thanks for your help .

John VV 01-03-2013 01:43 PM

seeing as SUSE royally changed things around
there is no real "httpd.conf" file
instead there a bunch of small config files in /etc/apache2
some of those then point to other config files
in"default-server.conf"
you set the "Docroot" folder
---------
<Directory "/srv/www/htdocs">
-------------

in "listen.conf" is the port and ip and the Vhost settings
in "mod_userdir.conf" you set the "public" folder in yoour home user folder
-----------
<Directory /home/*/public_html>
-----------

did you install mod-php ?
it is in the suse repos
and Novell split everything up into small packages
use the yast GUI ( add and remove software) or zypper to search

or
did you manually build the Apache stack , by hand, and manually install it

if so then there is a in the install folder there is a full and very well documented default "httpd.conf" file

bscho 01-03-2013 02:05 PM

Lamp on suse
 
[QUOTE=John VV;4862292]seeing as SUSE royally changed things around
there is no real "httpd.conf" file
instead there a bunch of small config files in /etc/apache2
some of those then point to other config files
in"default-server.conf"
you set the "Docroot" folder
---------
<Directory "/srv/www/htdocs">
-------------

in "listen.conf" is the port and ip and the Vhost settings
in "mod_userdir.conf" you set the "public" folder in yoour home user folder
-----------
<Directory /home/*/public_html>
-----------

did you install mod-php ?
it is in the suse repos
and Novell split everything up into small packages
use the yast GUI ( add and remove software) or zypper to search

or
did you manually build the Apache stack , by hand, and manually install it

if so then there is a in the install folder there is a full and very well documented default "ht
I have at last got it working thanks for your help I would not have got to make it
work without all your help.


All times are GMT -5. The time now is 02:22 AM.