LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-11-2007, 02:58 PM   #1
Ultrus
Member
 
Registered: Jan 2006
Posts: 50

Rep: Reputation: 15
Question setting up test web server in suse 10.2


Hello,
At one point, I was making use of LAMP (Linux Apache, mySQL, PHP) in Suse 10.0. Now that I've done a fresh install of Suse 10.2, I'm having trouble getting these items put to use. Here are a few notes of what I have so far:

-In Yast->Network Services->HTTP Server, the "HTTP Service" was disabled to start. It is now enabled, and when I open a browser and visit http://localhost, I get a message saying "It works!".
-I installed everything php related from Yast's software manager. PHP was already installed, but most extenstions like Pear and others were not.
-Everything needed for mySQL was already installed. I installed nothing new.
-If I create an index.php file with <?php phpinfo(); ?>, and delete/replace the default Apache web page, a browser returns nothing but a blank page.

Any thoughts on why I am not getting a php page to run? Any ideas on how to reinstall/pre-enable most web services/extensions in Suse 10.2?

Thank you much
 
Old 06-11-2007, 05:14 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
did you add "php5" to /etc/sysconfig/apache2

APACHE_MODULES="...." ? and run "SuSEconfig"

is "LoadModule php5_module /usr/lib/apache2/libphp5.so" part of /etc/apache2/sysconfig.d/loadmodule.conf ?

/etc/apache2/conf.d/php5.conf:

Code:
<IfModule mod_php5.c>
        AddType application/x-httpd-php .php3
        AddType application/x-httpd-php .php4
        AddType application/x-httpd-php .php5
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .php3s
        AddType application/x-httpd-php-source .php4s
        AddType application/x-httpd-php-source .php5s
        AddType application/x-httpd-php-source .phps
        DirectoryIndex index.php3
        DirectoryIndex index.php4
        DirectoryIndex index.php5
        DirectoryIndex index.php
</IfModule>
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 02:06 PM
Setting up own web server kirtimaan_bkn Linux - Networking 14 11-20-2005 09:33 PM
Test Web Server comprookie2000 Linux - Networking 7 04-03-2005 11:12 PM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
web server, unable to view test page gigya Linux - Software 1 01-30-2004 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration