php database issue

my apologies

Link: http://digital-mp3s.com/test.php

Source
<?php

$app = $_POST['applicationname'];


print ' <form action="test.php" method="post">
TYPE YOUR NAME?: <input type="text" name="applicationname" />
<input type="submit" />
</form> ';

print 'Output: <input type="text" name="whatever" value="' .$app. '">';

?>
 
Stop thinking bad DA install. We had not even come close to thinking that.

Your sample php submits a form to test.php. But what is test.php supposed to do with it? I do not see any processing of the form data whatsoever.
 
I have posted above the new source with the edit.

Again apologies for no output box
 
PHP 5.2.8 as i reverted it back the way to try resolve it

Server version: Apache/2.2.11 (Unix)
My old server also has the same apache and php version
 
I have also checked that the php.ini file has file_uploads set to ON although this isnt needed.
 
I was referring to the Apache2 problem.

[14 Jun 2002 12:53pm UTC] cfranke at harlingen dot tstc dot edu

I found the exact cause of the error. This looks like it could either
be a PHP bug or an Apache 2 bug:

Originally in my Apache 2 conf file I had the following to load php:

LoadModule php4_module C:/php/sapi/php4apache2.dll
<FilesMatch "\.php$">
SetOutputFilter PHP
</FilesMatch>

When I switched it to the following, POST method started working again:

LoadModule php4_module C:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

I know you are not using a Windows server but you should see something similar in your config. I don't have Apache2 so I cannot test it.
 
Because it is 2 different OS types.

I am unsure what im looking for on it. My httpd.conf file is here tho

#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.

ServerRoot "/etc/httpd"
Listen 80

#LoadModule dummy_module /usr/lib/apache/mod_dummy.so
#LoadModule php5_module /usr/lib/apache/libphp5.so
Include /etc/httpd/conf/extra/httpd-phpmodules.conf

User apache
Group apache

ServerAdmin admin@localhost
DocumentRoot "/var/www/html"

<Directory /home/*>
AllowOverride All
Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

<Directory />
Options All
AllowOverride All
</Directory>

<Directory "/var/www/html">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<IfModule mod_suphp.c>
suPHP_Engine On
suPHP_UserGroup webapps webapps
SetEnv PHP_INI_SCAN_DIR
</IfModule>
</Directory>

<IfModule dir_module>
DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi
</IfModule>

<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

ErrorLog /var/log/httpd/error_log
LogLevel warn

<IfModule log_config_module>
#replace %b with %O for more accurate logging
<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%O" bytes

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

CustomLog /var/log/httpd/access_log common
</IfModule>

<IfModule alias_module>
# Include some DirectAdmin alias
Include conf/extra/httpd-alias.conf
</IfModule>

<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-gzip .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler cgi-script .cgi
AddHandler type-map var
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType video/x-ms-asf .avi
AddType video/mpeg .mpg
AddType video/mpeg .mpeg
AddType video/quicktime .mov
AddType video/x-ms-wmv .wmv
</IfModule>

#EnableMMAP off
#EnableSendfile off

#######################################################################################
# Do not change anything in included files, because they are rewritten by DirectAdmin #
#######################################################################################

# This is needed for PHP
Include conf/extra/httpd-php-handlers.conf

# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf

# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Language settings
Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
Include conf/extra/httpd-dav.conf

# Various default settings
Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf

# Deflate module settings
Include conf/extra/httpd-deflate.conf

# All the DirectAdmin vhosts
Include conf/extra/directadmin-vhosts.conf

# All suPHP directives
Include conf/extra/httpd-suphp.conf

# For user configurations not maintained by DirectAdmin. Empty by default.
Include conf/extra/httpd-includes.conf

#######################################################################################
# End of included files that are rewritten by DirectAdmin #
#######################################################################################

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
 
You probably should look in /etc/httpd/conf/extra/httpd-phpmodules.conf
 
all that is in that file is

LoadModule php5_module /usr/lib/apache/libphp5.so
 
I think it's something in your configuration.

On one of my DirectAdmin servers running php4 as an apache module:
http://www.nobaloney.net/test.php

And on one of my DirectAdmin servers running php5 as cgi:
http://www.reselltheweb.net/test.php

It runs properly on both of them.

EDIT: I've removed the tests from my servers, and removed the live links above.

Jeff
 
My apologies everyone

John from DA is the king of kings. He had a look himself out of his own spare time and seen that it was an edit I made to the php.ini file.

Thanks John for doing that and my apologies everyone for troubling them.
 
Well what was the edit for the benefit of anyone else who may have the problem?
 
HI everyone,

Here is the email that john wrote back with what he changed.

Hello,

After a bit of debugging, rewriting configs and compiling updated versions, I found
the issue came down to one of these settings:

258c261
< memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
---
> memory_limit = 1024M ; Maximum amount of memory a script may consume (128MB)
439c442
< post_max_size = 8M
---
> post_max_size = 102400M
445c448
< magic_quotes_gpc = On
---
> magic_quotes_gpc = Off
552c555
< upload_max_filesize = 2M
---
> upload_max_filesize = 102400M



So one of the changes you had made from the default was breaking the post...
Most likely itw as post_max_size...
perhaps the value was too big for php, and it defaulted you back to 0.

I've given you a new php.ini and re-added the ioncube zend_extension line.

All of the values I've pasted here are reset to our defaults.
If you need to change them again, do so, but undo your changes if they break the
post again.

Thank you,

John
 
Back
Top