LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-04-2012, 10:02 PM   #1
astanton
Member
 
Registered: Nov 2010
Distribution: Slackware64 -current
Posts: 82

Rep: Reputation: 5
Question raw php code only after trying update to wheezy


Hi, after changing every third field in /etc/apt/sources.list from "squeeze" to "testing", and apt-get update, I tried to install owncloud and only get the following:

Code:
<?php

/**
* ownCloud
*
* @author Frank Karlitschek
* @copyright 2010 Frank Karlitschek karlitschek@kde.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library.  If not, see <http://www.gnu.org/licenses/>.
*
*/

$RUNTIME_NOAPPS = TRUE; //no apps, yet

require_once 'lib/base.php';

OC::handleRequest();
I had also previously installed pastebin, which worked fine but now also does the same thing as above (except pastebin is indicated instead of owncloud).

How can I check to see what's wrong and then fix this?

Thanks
 
Old 11-04-2012, 11:25 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

is this what you see in your browser? If so it looks like your web server needs to be configured to recognize and process php files instead of just serving them up as is. What web server are you using?

Evo2.
 
Old 11-05-2012, 05:24 AM   #3
astanton
Member
 
Registered: Nov 2010
Distribution: Slackware64 -current
Posts: 82

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by evo2 View Post
Hi,

is this what you see in your browser? If so it looks like your web server needs to be configured to recognize and process php files instead of just serving them up as is. What web server are you using?

Evo2.
Yes that's what I see in the browser. Apache is the webserver.

Does this help?

Code:
aptitude search php|grep "^i"
i A libapache2-mod-php5filter       - server-side, HTML-embedded scripting langu
i   php-pear                        - PEAR - PHP Extension and Application Repos
i   php-xml-parser                  - PHP PEAR module for parsing XML           
i A php5                            - server-side, HTML-embedded scripting langu
i A php5-cli                        - command-line interpreter for the php5 scri
i   php5-common                     - Common files for packages built from the p
i   php5-curl                       - CURL module for php5                      
i   php5-gd                         - GD module for php5                        
i   php5-mysql                      - MySQL module for php5                     
i   php5-sqlite                     - SQLite module for php5                    
i   phpsysinfo                      - PHP based host information

Last edited by astanton; 11-05-2012 at 05:32 AM.
 
Old 11-05-2012, 09:34 AM   #4
astanton
Member
 
Registered: Nov 2010
Distribution: Slackware64 -current
Posts: 82

Original Poster
Rep: Reputation: 5
Question

Well,

Things are a bit goofy now...

I did

Code:
# aptitude clean

# aptitude update

# aptitude install apache2 php5 php-pear php-xml-parser php5-sqlite php5-json sqlite php5-mysql mp3info curl libcurl3 
libcurl3-dev php5-curl zip php5-gd apache2-doc apache2-suexec-custom
And what I got was...

Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php5-common' instead of 'php5-json'
Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-dev'
curl is already the newest version.
libcurl3 is already the newest version.
libcurl4-openssl-dev is already the newest version.
mp3info is already the newest version.
php-xml-parser is already the newest version.
php-pear is already the newest version.
php5 is already the newest version.
php5 set to manually installed.
php5-common is already the newest version.
php5-curl is already the newest version.
php5-gd is already the newest version.
php5-mysql is already the newest version.
php5-sqlite is already the newest version.
sqlite is already the newest version.
zip is already the newest version.
The following extra packages will be installed:
  apache2-mpm-itk apache2.2-bin apache2.2-common libapache2-mod-php5 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
The following packages will be REMOVED:
  apache2-mpm-prefork libapache2-mod-php5filter
The following NEW packages will be installed:
  apache2-doc apache2-mpm-itk apache2-suexec-custom libapache2-mod-php5
The following packages will be upgraded:
  apache2 apache2.2-bin apache2.2-common libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
6 upgraded, 4 newly installed, 2 to remove and 113 not upgraded.
Need to get 5,741 kB of archives.
After this operation, 11.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.at.debian.org/debian/ testing/main libaprutil1-ldap amd64 1.4.1-3 [16.6 kB]
Get:2 http://ftp.at.debian.org/debian/ testing/main libaprutil1-dbd-sqlite3 amd64 1.4.1-3 [19.0 kB]
Get:3 http://ftp.at.debian.org/debian/ testing/main libaprutil1 amd64 1.4.1-3 [89.8 kB]
Get:4 http://ftp.at.debian.org/debian/ testing/main apache2 amd64 2.2.22-11 [1,432 B]
Get:5 http://ftp.at.debian.org/debian/ testing/main apache2.2-bin amd64 2.2.22-11 [781 kB]
Get:6 http://ftp.at.debian.org/debian/ testing/main apache2.2-common amd64 2.2.22-11 [290 kB]
Get:7 http://ftp.at.debian.org/debian/ testing/main apache2-mpm-itk amd64 2.2.22-11 [2,342 B]
Get:8 http://ftp.at.debian.org/debian/ testing/main libapache2-mod-php5 amd64 5.4.4-7 [2,664 kB]
Get:9 http://ftp.at.debian.org/debian/ testing/main apache2-doc all 2.2.22-11 [1,770 kB]
Get:10 http://ftp.at.debian.org/debian/ testing/main apache2-suexec-custom amd64 2.2.22-11 [107 kB]
Fetched 5,741 kB in 3s (1,779 kB/s)         
(Reading database ... 28150 files and directories currently installed.)
Preparing to replace libaprutil1-ldap 1.3.9+dfsg-5 (using .../libaprutil1-ldap_1.4.1-3_amd64.deb) ...
Unpacking replacement libaprutil1-ldap ...
Preparing to replace libaprutil1-dbd-sqlite3 1.3.9+dfsg-5 (using .../libaprutil1-dbd-sqlite3_1.4.1-3_amd64.deb) ...
Unpacking replacement libaprutil1-dbd-sqlite3 ...
Preparing to replace libaprutil1 1.3.9+dfsg-5 (using .../libaprutil1_1.4.1-3_amd64.deb) ...
Unpacking replacement libaprutil1 ...
Preparing to replace apache2 2.2.16-6+squeeze8 (using .../apache2_2.2.22-11_amd64.deb) ...
Unpacking replacement apache2 ...
Preparing to replace apache2.2-bin 2.2.16-6+squeeze8 (using .../apache2.2-bin_2.2.22-11_amd64.deb) ...
Unpacking replacement apache2.2-bin ...
Preparing to replace apache2.2-common 2.2.16-6+squeeze8 (using .../apache2.2-common_2.2.22-11_amd64.deb) ...
Moving obsolete conffile /etc/apache2/mods-available/version.load out of the way...
Unpacking replacement apache2.2-common ...
Processing triggers for man-db ...
dpkg: apache2-mpm-prefork: dependency problems, but removing anyway as you requested:
 libapache2-mod-php5filter depends on apache2-mpm-prefork (>> 2.0.52) | apache2-mpm-itk; however:
  Package apache2-mpm-prefork is to be removed.
  Package apache2-mpm-itk is not installed.
 phpsysinfo depends on apache2 | httpd; however:
  Package apache2 is not configured yet.
  Package apache2-mpm-prefork which provides apache2 is to be removed.
phpsysinfo depends on apache2 | httpd; however:
  Package apache2 is not configured yet.
  Package apache2-mpm-prefork which provides apache2 is to be removed.
  Package httpd is not installed.
  Package apache2-mpm-prefork which provides httpd is to be removed.
(Reading database ... 28148 files and directories currently installed.)
Removing apache2-mpm-prefork ...
Stopping web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using hostname.sld.tld for Server
Name
 ... waiting .
Selecting previously deselected package apache2-mpm-itk.
(Reading database ... 28143 files and directories currently installed.)
Unpacking apache2-mpm-itk (from .../apache2-mpm-itk_2.2.22-11_amd64.deb) ...
Setting up libaprutil1 (1.4.1-3) ...
Setting up libaprutil1-dbd-sqlite3 (1.4.1-3) ...
Setting up libaprutil1-ldap (1.4.1-3) ...
Setting up apache2.2-bin (2.2.22-11) ...
Setting up apache2.2-common (2.2.22-11) ...
Installing new version of config file /etc/init.d/apache2 ...
Installing new version of config file /etc/logrotate.d/apache2 ...
Installing new version of config file /etc/apache2/envvars ...
Installing new version of config file /etc/apache2/mods-available/disk_cache.conf ...
Installing new version of config file /etc/apache2/mods-available/ssl.conf ...
Installing new version of config file /etc/apache2/mods-available/mime.conf ...
Installing new version of config file /etc/apache2/mods-available/alias.conf ...

Configuration file `/etc/apache2/apache2.conf'                                                                                      [17/1966]
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** apache2.conf (Y/I/N/O/D/Z) [default=N] ? 
Installing new version of config file /etc/apache2/conf.d/security ...
Detected legacy httpd.conf - moving file to /etc/apache2/conf.d/httpd.conf
Removing obsolete conffile /etc/apache2/mods-available/version.load ...
Purging old mod_disk_cache cache data in /var/cache/apache2/mod_disk_cache
Setting up apache2-mpm-itk (2.2.22-11) ...
Starting web server: apache2apache2: Syntax error on line 214 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/ht
tpd.conf: No such file or directory
Action 'start' failed.
The Apache error log may have more information.
 failed!
invoke-rc.d: initscript apache2, action "start" failed.
dpkg: libapache2-mod-php5filter: dependency problems, but removing anyway as you requested:
 php5 depends on libapache2-mod-php5 (>= 5.4.4-7) | libapache2-mod-php5filter (>= 5.4.4-7) | php5-cgi (>= 5.4.4-7) | php5-fpm (>= 5.4.4-7); h
owever:
  Package libapache2-mod-php5 is not installed.
  Package libapache2-mod-php5filter is to be removed.
  Package php5-cgi is not installed.
  Package php5-fpm is not installed.
(Reading database ... 28148 files and directories currently installed.)
Removing libapache2-mod-php5filter ...
Module php5filter disabled.
To activate the new configuration, you need to run:
  service apache2 restart
Selecting previously deselected package libapache2-mod-php5.
(Reading database ... 28144 files and directories currently installed.)
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.4.4-7_amd64.deb) ...
Setting up libapache2-mod-php5 (5.4.4-7) ...
Installing new version of config file /etc/apache2/mods-available/php5.conf ...
Replacing config file /etc/php5/apache2/php.ini with new version
Action 'configtest' failed.
The Apache error log may have more information.
Your apache2 configuration is broken, so we're not restarting it for you.
Selecting previously deselected package apache2-doc.
(Reading database ... 28148 files and directories currently installed.)
Unpacking apache2-doc (from .../apache2-doc_2.2.22-11_all.deb) ...
Selecting previously deselected package apache2-suexec-custom.
Unpacking apache2-suexec-custom (from .../apache2-suexec-custom_2.2.22-11_amd64.deb) ...
Processing triggers for man-db ...
Setting up apache2 (2.2.22-11) ...
Setting up apache2-doc (2.2.22-11) ...
Reloading web server config: apache2 not running.
Setting up apache2-suexec-custom (2.2.22-11) ...
It moved my httpd.conf from /etc/apache2/httpd.conf to /etc/apache2/conf.d/httpd.conf and then failed to start, as indicated below, and as per the specific lines in the output above

Code:
Detected legacy httpd.conf - moving file to /etc/apache2/conf.d/httpd.conf

--------------------------------------------------------------

Starting web server: apache2apache2: Syntax error on line 214 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/ht
tpd.conf: No such file or directory
Action 'start' failed.
The Apache error log may have more information.
 failed!
invoke-rc.d: initscript apache2, action "start" failed.

--------------------------------------------------------------

Setting up libapache2-mod-php5 (5.4.4-7) ...
Installing new version of config file /etc/apache2/mods-available/php5.conf ...
Replacing config file /etc/php5/apache2/php.ini with new version
Action 'configtest' failed.
The Apache error log may have more information.
Your apache2 configuration is broken, so we're not restarting it for you.
So I copied httpd.conf from the /etc/apache2/conf.d/ directory to /etc/apache2/

And then when I ran "/etc/init.d/apache2 start" (I haven't tried "/etc/init.d/httpd start" yet)I got

Code:
Starting web server: apache2[Mon Nov 05 12:50:28 2012] [warn] The Alias directive in /etc/apache2/conf.d/httpd.conf at line 23 will probably never match because it overlaps an earlier Alias.
I now have an /etc/init.d/apache2 and an /etc/init.d/httpd - strange...

I'm going to try and track this down. The issue isn't solved, but PHP pages appear to be gettting served up correctly at this time...

Any ideas?
 
  


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
LXer: Iceweasel 10.0.09 ESR update for Debian Wheezy LXer Syndicated Linux News 0 10-17-2012 11:31 PM
IDE CDROM not opening after update to wheezy matiasar Debian 6 03-05-2012 06:14 AM
[SOLVED] update problem on wheezy cccc Debian 2 03-03-2012 09:06 PM
Debian Testing (Wheezy) update REALLY broke networking rbees Linux - Networking 11 05-16-2011 04:14 AM
How do I install from raw c source code? SharonGe Linux - Newbie 1 03-14-2011 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:17 PM.

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