#!/usr/bin/php is displayed on the web-gui, and i can't login.
I have reset the webgui password, but that did not help, i think I messed up a config file somewhere. Not sure what one to look at.
#!/usr/bin/php is displayed on the web-gui, and i can't login.
I have reset the webgui password, but that did not help, i think I messed up a config file somewhere. Not sure what one to look at.
What did you do before you 1st saw this message?
I am trying to setup freepbx, along with openmediavault. The first thing I did that lead to the problem would be running the freepbx install script I have, that lead to a error 503.
After that I was trying to fix the config files, as php was not working. I have got php working but, but now that that message.
I should also add that #!/usr/bin/php is on the top left part of the page trying to blend in with the background.
give results of this command in a codebox:
dpkg -l | grep php
Also, could you give a link to the freepbx package that you were trying to install.
here is the link http://www.corenetworks.com.au…n_asterisk_freepbx_script th exact script is debian_6.0_squeeze_pbx_0.9.sh.gz
I changed the aptitude command to apt-get in that script.
dpkg -l | grep php
ii libapache2-mod-php5 5.3.3-7+squeeze16 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-db 1.7.13-2 PHP PEAR Database Abstraction Layer
ii php-json-schema 0.2.0 PHP implementation of JSON schema
ii php-pear 5.3.3-7+squeeze16 PEAR - PHP Extension and Application Repository
ii php5 5.3.3-7+squeeze16 server-side, HTML-embedded scripting language (metapackage)
ii php5-cgi 5.3.3-7+squeeze16 server-side, HTML-embedded scripting language (CGI binary)
ii php5-cli 5.3.3-7+squeeze16 command-line interpreter for the php5 scripting language
ii php5-common 5.3.3-7+squeeze16 Common files for packages built from the php5 source
ii php5-curl 5.3.3-7+squeeze16 CURL module for php5
ii php5-gd 5.3.3-7+squeeze16 GD module for php5
ii php5-mysql 5.3.3-7+squeeze16 MySQL module for php5
ii php5-pam 1.0.3-1 pam module for PHP 5
Alles anzeigen
give me results of these commands:
groups admin
groups openmediavault
Be patient on this one... Let some more moderators or even Volker see it. I haven't seen this issue before but obviously something happened to php on the install of the freepbx. You should be able to run that with OMV though.
If I remove the folder /etc/php5/apache2
this is added after #1/usr/bin/php
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/openmediavault/index.php:2) in /usr/share/php/openmediavault/session.inc on line 45
and when trying to login it shows 'An error has occured'
<br />
<b>Fatal error</b>: Call to undefined function pam_auth() in <b>/var/www/openmediavault/rpc/authentication.inc</b> on line <b>63</b><br />
If i remove the text #!/usr/bin/php from /var/www/openmediavault/index.php the text at the top left of the gui goes away and I only get the 'An error has occured' windows showing the same error as before
Update
I forgot I also removed
<FilesMatch \.php$>
FcgidWrapper /var/www/openmediavault/php-fcgi .php
SetHandler fcgid-script
Options +ExecCGI
</FilesMatch>
from /etc/apache2/openmediavault-webgui.d/default.conf if that is left in all i get is 503 Service Temporarily Unavailable
You cannot remove this folder':
/etc/php5/apache2
I'm looking the other part...
Give the contents of your /var/www/openmediavault/index.php in a codebox.
Zitat von "tekkbebe"You cannot remove this folder':
/etc/php5/apache2
I'm looking the other part...
the reason I removed /etc/php5/apache2 is I installed openmediavault in a VirtualMachine I created to try and figure this out and it is not there
Update
index.php
<?php
/**
* This file is part of OpenMediaVault.
*
* @license http://www.gnu.org/licenses/gpl.html GPL Version 3
* @author Volker Theile <volker.theile@openmediavault.org>
* @copyright Copyright (c) 2009-2013 Volker Theile
*
* OpenMediaVault is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* OpenMediaVault 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.
*/
try {
require_once("openmediavault/env.inc");
require_once("openmediavault/session.inc");
require_once("openmediavault/htmlpage.inc");
require_once("rpc/authentication.inc");
$session = &OMVSession::getInstance();
$session->start();
if ($session->isAuthenticated() && !$session->isTimeout()) {
$session->validate();
$session->updateLastAccess();
$page = new OMVWebGui(($session->getRole() === OMV_ROLE_USER) ?
OMVWebGui::MODE_USER : OMVWebGui::MODE_ADMINISTRATOR);
$page->render();
} else {
$session->destroy();
$page = new OMVWebGuiLogin();
$page->render();
}
} catch(Exception $e) {
header("Content-Type: text/html");
printf("Error #".$e->getCode().":<br/>%s", str_replace("\n", "<br/>",
$e->__toString()));
}
?>
Alles anzeigen
This is the beginning of my file. So that is supposed to be there:
#!/usr/bin/php
<?php
/**
* This file is part of OpenMediaVault.
*
* @license http://www.gnu.org/licenses/gpl.html GPL Version 3
* @author Volker Theile <volker.theile@openmediavault.org>
* @copyright Copyright (c) 2009-2013 Volker Theile
I'm not the php guy here. Give some more time and let some other moderators look at this.
Zitat von "tekkbebe"Give some more time and let some other moderators look at this.
I Will, but when I try something I like to update what I have tried.
if this is a bad thing let me know
I put back
#!/usr/bin/php
it shows on page again
and
<FilesMatch \.php$>
FcgidWrapper /var/www/openmediavault/php-fcgi .php
SetHandler fcgid-script
Options +ExecCGI
</FilesMatch>
went back to error 503
changed it to
<FilesMatch \.php$>
FcgidWrapper /var/www/openmediavault/php-fcgi .php
SetHandler application/x-httpd-php
Options +ExecCGI
</FilesMatch>
error 503 went away but i still have the warning and login errors
/etc/apache2/openmediavault-webgui.d/default.conf should be this:
ServerName openmediavault-webgui
DocumentRoot /var/www/openmediavault
DirectoryIndex index.php
SuexecUserGroup openmediavault openmediavault
Alias /extjs/ /usr/share/javascript/extjs3/
Alias /images/ /var/www/openmediavault/images/
# Set maximum HTTP request length to 25 MiB
FcgidMaxRequestLen 26214400
FcgidIOTimeout 300
<Directory /var/www/openmediavault/>
Options FollowSymLinks
<FilesMatch \.php$>
FcgidWrapper /var/www/openmediavault/php-fcgi .php
SetHandler fcgid-script
Options +ExecCGI
</FilesMatch>
Order Allow,Deny
Allow from All
AllowOverride None
</Directory>
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/openmediavault-webgui_error.log
CustomLog ${APACHE_LOG_DIR}/openmediavault-webgui_access.log combined
Alles anzeigen
I got it working (I think).
I restored all the webpage files and config. I also removed the folder /etc/php5/apache2 and removed /etc/apache2/mods-enabled/php5.conf and php5.load
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!