Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: HTML won't display in browser

  1. #1
    Frontpage User
    Join Date
    Dec 2008
    Posts
    20
    Post Thanks / Like

    Default HTML won't display in browser

    I am updating a site for someone. The site is made up of php files.
    The new site I'm doing is HTML.
    I have put a test folder containing images, css & html files onto the server.

    The only thing that doesn't show up is the HTML. I get a 403 forbidden.
    How can I solve this issue. I tried renaming my HTML to php and they display but without a proper layout which looks like the css is not working.

    It's driving me nuts

  2. #2
    Wannabe Geek php.allstar's Avatar
    Join Date
    Apr 2009
    Location
    Monamolin, Gorey, Co. Wexford
    Posts
    405
    Post Thanks / Like

    Default

    Hi,


    Can you create a php info file, run it in your browser then copy and paste the contents here.

    You may want to remove any sensitive data first.

    And if you're new to php thats open your editor and type the following into it, save it as whatever.php in the root of your site.

    Then call whatever.php in your browser.

    PHP Code:
    <?php

        phpinfo
    ();

    ?>
    Once thats done we could point the problem out to you.

  3. #3
    Frontpage User
    Join Date
    Dec 2008
    Posts
    20
    Post Thanks / Like

    Default

    OK THIS IS WHAT I GOT FROM THE INFO

    Code:
    PHP Version 4.4.9
    
    
    System	Linux web178.extendcp.co.uk 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686
    Build Date	Feb 26 2009 11:18:03
    Configure Command	 './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i686-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-xslt' '--with-xslt-sablot' '--with-mcrypt' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-discard-path' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--enable-force-cgi-redirect'
    Server API	CGI
    Virtual Directory Support	disabled
    Configuration File (php.ini) Path	/usr/local/Zend4/etc/php.ini
    Scan this dir for additional .ini files	/etc/php.d
    additional .ini files parsed	no value
    PHP API	20020918
    PHP Extension	20020429
    Zend Extension	20050606
    Debug Build	no
    Zend Memory Manager	enabled
    Thread Safety	disabled
    Registered PHP Streams	php, http, ftp, https, ftps, compress.bzip2, compress.zlib
    
    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with the ionCube PHP Loader v3.1.23, Copyright (c) 2002-2006, by ionCube Ltd., and with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
    
    PHP Credits
    
    Configuration
    
    PHP Core
    
    Directive	Local Value	Master Value
    allow_call_time_pass_reference	On	On
    allow_url_fopen	On	On
    always_populate_raw_post_data	Off	Off
    arg_separator.input	&	&
    arg_separator.output	&	&
    asp_tags	Off	Off
    auto_append_file	no value	no value
    auto_prepend_file	no value	no value
    browscap	no value	no value
    default_charset	no value	no value
    default_mimetype	text/html	text/html
    define_syslog_variables	Off	Off
    disable_classes	no value	no value
    disable_functions	no value	no value
    display_errors	On	On
    display_startup_errors	Off	Off
    doc_root	no value	no value
    docref_ext	no value	no value
    docref_root	no value	no value
    enable_dl	On	On
    error_append_string	no value	no value
    error_log	no value	no value
    error_prepend_string	no value	no value
    error_reporting	2039	2039
    expose_php	On	On
    extension_dir	/usr/lib/php4	/usr/lib/php4
    file_uploads	On	On
    gpc_order	GPC	GPC
    highlight.bg	#FFFFFF	#FFFFFF
    highlight.comment	#FF8000	#FF8000
    highlight.default	#0000BB	#0000BB
    highlight.html	#000000	#000000
    highlight.keyword	#007700	#007700
    highlight.string	#DD0000	#DD0000
    html_errors	On	On
    ignore_repeated_errors	Off	Off
    ignore_repeated_source	Off	Off
    ignore_user_abort	Off	Off
    implicit_flush	Off	Off
    include_path	.:/usr/share/pear	.:/usr/share/pear
    log_errors	Off	Off
    log_errors_max_len	1024	1024
    magic_quotes_gpc	Off	Off
    magic_quotes_runtime	Off	Off
    magic_quotes_sybase	Off	Off
    max_execution_time	30	30
    max_input_nesting_level	500	500
    max_input_time	60	60
    memory_limit	8M	8M
    open_basedir	no value	no value
    output_buffering	no value	no value
    output_handler	no value	no value
    post_max_size	8M	8M
    precision	14	14
    register_argc_argv	On	On
    register_globals	Off	Off
    report_memleaks	On	On
    safe_mode	Off	Off
    safe_mode_exec_dir	no value	no value
    safe_mode_gid	Off	Off
    safe_mode_include_dir	no value	no value
    sendmail_from	me@localhost.com	me@localhost.com
    sendmail_path	/usr/sbin/sendmail -t -i	/usr/sbin/sendmail -t -i
    serialize_precision	100	100
    short_open_tag	On	On
    SMTP	localhost	localhost
    smtp_port	25	25
    sql.safe_mode	Off	Off
    track_errors	Off	Off
    unserialize_callback_func	no value	no value
    upload_max_filesize	2M	2M
    upload_tmp_dir	no value	no value
    user_dir	public_html	public_html
    variables_order	EGPCS	EGPCS
    xmlrpc_error_number	0	0
    xmlrpc_errors	Off	Off
    y2k_compliance	On	On
    
    Zend Optimizer
    
    Optimization Pass 1	enabled
    Optimization Pass 2	enabled
    Optimization Pass 3	enabled
    Optimization Pass 4	enabled
    Optimization Pass 9	enabled
    Zend Loader	enabled
    License Path	no value
    Obfuscation level	3
    
    bcmath
    
    BCMath support	enabled
    
    bz2
    
    BZip2 Support	Enabled
    BZip2 Version	1.0.2, 30-Dec-2001
    
    calendar
    
    Calendar support	enabled
    
    ctype
    
    ctype functions	enabled
    
    curl
    
    CURL support	enabled
    CURL Information	libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
    
    dba
    
    DBA support	enabled
    Supported handlers	cdb cdb_make db4 inifile flatfile
    
    dbx
    
    dbx support	enabled
    dbx version	1.0.0
    supported databases	MySQL ODBC PostgreSQL Microsoft SQL Server FrontBase Oracle 8 (oci8) Sybase-CT
    
    Directive	Local Value	Master Value
    dbx.colnames_case	unchanged	unchanged
    
    dio
    
    dio support	enabled
    
    domxml
    
    DOM/XML	enabled
    DOM/XML API Version	20020815
    libxml Version	20616
    HTML Support	enabled
    XPath Support	enabled
    XPointer Support	enabled
    DOM/XSLT	enabled
    libxslt Version	1.1.11
    libxslt compiled against libxml Version	2.6.14
    DOM/EXSLT	enabled
    libexslt Version	1.1.11
    
    exif
    
    EXIF Support	enabled
    EXIF Version	1.4 : exif.c,v 1.118.2.37.2.8 2007/12/31 07:22:46 sebastian Exp $
    Supported EXIF Version	0220
    Supported filetypes	JPEG,TIFF
    
    ftp
    
    FTP support	enabled
    
    gd
    
    GD Support	enabled
    GD Version	bundled (2.0.28 compatible)
    FreeType Support	enabled
    FreeType Linkage	with freetype
    GIF Read Support	enabled
    GIF Create Support	enabled
    JPG Support	enabled
    PNG Support	enabled
    WBMP Support	enabled
    XBM Support	enabled
    
    gettext
    
    GetText Support	enabled
    
    gmp
    
    gmp support	enabled
    
    iconv
    
    iconv support	enabled
    iconv implementation	glibc
    iconv library version	2.3.4
    
    Directive	Local Value	Master Value
    iconv.input_encoding	ISO-8859-1	ISO-8859-1
    iconv.internal_encoding	ISO-8859-1	ISO-8859-1
    iconv.output_encoding	ISO-8859-1	ISO-8859-1
    
    imap
    
    IMAP c-Client Version	2001
    SSL Support	enabled
    Kerberos Support	enabled
    
    ldap
    
    LDAP Support	enabled
    RCS Version	: ldap.c,v 1.130.2.13.2.3 2007/12/31 07:22:48 sebastian Exp $
    Total Links	0/unlimited
    API Version	3001
    Vendor Name	OpenLDAP
    Vendor Version	20213

  4. #4
    Frontpage User
    Join Date
    Dec 2008
    Posts
    20
    Post Thanks / Like

    Default

    AND CONTINUED

    Code:
    mbstring
    
    Multibyte Support	enabled
    Japanese support	enabled
    Simplified chinese support	enabled
    Traditional chinese support	enabled
    Korean support	enabled
    Russian support	enabled
    Multibyte (japanese) regex support	enabled
    
    mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
    
    Directive	Local Value	Master Value
    mbstring.detect_order	no value	no value
    mbstring.encoding_translation	Off	Off
    mbstring.func_overload	0	0
    mbstring.http_input	pass	pass
    mbstring.http_output	pass	pass
    mbstring.internal_encoding	ISO-8859-1	no value
    mbstring.language	neutral	neutral
    mbstring.substitute_character	no value	no value
    
    mcrypt
    
    mcrypt support	enabled
    version	>= 2.4.x
    Supported ciphers	cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
    Supported modes	cbc cfb ctr ecb ncfb nofb ofb stream
    
    Directive	Local Value	Master Value
    mcrypt.algorithms_dir	no value	no value
    mcrypt.modes_dir	no value	no value
    
    mhash
    
    MHASH support	Enabled
    MHASH API Version	20020524
    
    mime_magic
    
    mime_magic support	enabled
    
    Directive	Local Value	Master Value
    mime_magic.magicfile	/usr/share/file/magic.mime	/usr/share/file/magic.mime
    
    mysql
    
    MySQL Support	enabled
    Active Persistent Links	0
    Active Links	0
    Client API version	5.0.77
    MYSQL_MODULE_TYPE	external
    MYSQL_SOCKET	/var/lib/mysql/mysql.sock
    MYSQL_INCLUDE	-I/usr/include/mysql
    MYSQL_LIBS	-L/usr/lib -lmysqlclient
    
    Directive	Local Value	Master Value
    mysql.allow_persistent	On	On
    mysql.connect_timeout	-1	-1
    mysql.default_host	no value	no value
    mysql.default_password	no value	no value
    mysql.default_port	no value	no value
    mysql.default_socket	no value	no value
    mysql.default_user	no value	no value
    mysql.max_links	Unlimited	Unlimited
    mysql.max_persistent	Unlimited	Unlimited
    mysql.trace_mode	Off	Off
    
    ncurses
    
    ncurses support	enabled
    ncurses library version	5.4
    color support	yes
    
    odbc
    
    ODBC Support	enabled
    Active Persistent Links	0
    Active Links	0
    ODBC library	unixODBC
    ODBC_INCLUDE	-I/usr/include
    ODBC_LFLAGS	-L/usr/lib
    ODBC_LIBS	-lodbc
    
    Directive	Local Value	Master Value
    odbc.allow_persistent	On	On
    odbc.check_persistent	On	On
    odbc.default_db	no value	no value
    odbc.default_pw	no value	no value
    odbc.default_user	no value	no value
    odbc.defaultbinmode	return as is	return as is
    odbc.defaultlrl	return up to 4096 bytes	return up to 4096 bytes
    odbc.max_links	Unlimited	Unlimited
    odbc.max_persistent	Unlimited	Unlimited
    
    openssl
    
    OpenSSL support	enabled
    OpenSSL Version	OpenSSL 0.9.7a Feb 19 2003
    
    overload
    
    User-Space Object Overloading Support	enabled
    
    pcre
    
    PCRE (Perl Compatible Regular Expressions) Support	enabled
    PCRE Library Version	4.5 01-December-2003
    
    posix
    
    Revision	: 1.51.2.4.2.4 $
    
    pspell
    
    PSpell Support	enabled
    
    session
    
    Session Support	enabled
    Registered save handlers	files user
    
    Directive	Local Value	Master Value
    session.auto_start	Off	Off
    session.bug_compat_42	On	On
    session.bug_compat_warn	On	On
    session.cache_expire	180	180
    session.cache_limiter	nocache	nocache
    session.cookie_domain	no value	no value
    session.cookie_lifetime	0	0
    session.cookie_path	/	/
    session.cookie_secure	Off	Off
    session.entropy_file	no value	no value
    session.entropy_length	0	0
    session.gc_divisor	100	100
    session.gc_maxlifetime	1440	1440
    session.gc_probability	1	1
    session.name	PHPSESSID	PHPSESSID
    session.referer_check	no value	no value
    session.save_handler	files	files
    session.save_path	/tmp	/tmp
    session.serialize_handler	php	php
    session.use_cookies	On	On
    session.use_only_cookies	Off	Off
    session.use_trans_sid	Off	Off
    
    shmop
    
    shmop support	enabled
    
    sockets
    
    Sockets Support	enabled
    
    sqlite
    
    SQLite support	enabled
    PECL Module version	1.0 : sqlite.c,v 1.62.2.16 2004/01/17 00:29:37 edink Exp $
    SQLite Library	2.8.16
    SQLite Encoding	UTF-8
    
    Directive	Local Value	Master Value
    sqlite.assoc_case	0	0
    
    standard
    
    Regex Library	Bundled library enabled
    Dynamic Library Support	enabled
    Path to sendmail	/usr/sbin/sendmail -t -i
    
    Directive	Local Value	Master Value
    assert.active	1	1
    assert.bail	0	0
    assert.callback	no value	no value
    assert.quiet_eval	0	0
    assert.warning	1	1
    auto_detect_line_endings	0	0
    default_socket_timeout	60	60
    safe_mode_allowed_env_vars	PHP_	PHP_
    safe_mode_protected_env_vars	LD_LIBRARY_PATH	LD_LIBRARY_PATH
    url_rewriter.tags	a=href,area=href,frame=src,input=src,form=,fieldset=	a=href,area=href,frame=src,input=src,form=,fieldset=
    user_agent	no value	no value
    
    tokenizer
    
    Tokenizer Support	enabled
    
    wddx
    
    WDDX Support	enabled
    WDDX Session Serializer	enabled
    
    xml
    
    XML Support	active
    XML Namespace Support	active
    EXPAT Version	expat_1.95.7
    
    xmlrpc
    
    core library version	xmlrpc-epi v. 0.51
    php extension version	0.51
    author	Dan Libby
    homepage	http://xmlrpc-epi.sourceforge.net
    open sourced by	Epinions.com
    
    xslt
    
    XSLT support	enabled
    Backend	Sablotron
    Sablotron Version	1.0.2
    Sablotron Information	Cflags: -g -O2 Libs: -L/usr/lib -lexpat Prefix: /usr
    
    yp
    
    YP Support	enabled
    
    zlib
    
    ZLib Support	enabled
    Compiled Version	1.2.3
    Linked Version	1.2.1.2
    
    Directive	Local Value	Master Value
    zlib.output_compression	Off	Off
    zlib.output_compression_level	-1	-1
    zlib.output_handler	no value	no value
    
    Additional Modules
    
    Module Name
    ionCube Loader
    sysvsem
    sysvshm
    
    Environment
    
    Variable	Value
    PATH	/usr/local/bin:/usr/bin:/bin
    UNIQUE_ID	fr66On8AAAEAAGZbmmoAAABE
    MvCONFIG_LIBRARY	/usr/local/miva/lib/config/env.so
    MvCONFIG_DIR_BUILTIN	/usr/local/miva/lib/builtins
    MvCONFIG_DIR_CA	/usr/local/miva/certs
    MvCONFIG_SSL_OPENSSL	/usr/lib/libssl.so
    MvCONFIG_SSL_CRYPTO	/usr/lib/libcrypto.so
    MvCONFIG_DIR_MIVA	/home/sites/**************.com/public_html
    MvCONFIG_DIR_DATA	/home/sites/**************.com/mivadata
    HTTP_USER_AGENT	Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-gb) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
    HTTP_ACCEPT	text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    HTTP_ACCEPT_LANGUAGE	en-gb
    HTTP_ACCEPT_ENCODING	gzip, deflate
    HTTP_CONNECTION	keep-alive
    HTTP_HOST	www.**************.com
    SERVER_SIGNATURE	<address>Apache/2 Server at www.**************.com Port 80</address>
    SERVER_SOFTWARE	Apache/2
    SERVER_NAME	www.**************.com
    SERVER_ADDR	79.170.40.178
    SERVER_PORT	80
    REMOTE_ADDR	79.97.32.30
    DOCUMENT_ROOT	/home/sites/**************.com/public_html/
    SERVER_ADMIN	webmaster@**************.com
    SCRIPT_FILENAME	/home/sites/**************.com/public_html/whatever.php
    REMOTE_PORT	40533
    GATEWAY_INTERFACE	CGI/1.1
    SERVER_PROTOCOL	HTTP/1.1
    REQUEST_METHOD	GET
    QUERY_STRING	no value
    REQUEST_URI	/whatever.php
    SCRIPT_NAME	/whatever.php

  5. #5
    Frontpage User
    Join Date
    Dec 2008
    Posts
    20
    Post Thanks / Like

    Default

    continued

    Code:
    PHP Variables
    
    Variable	Value
    _SERVER["PATH"]	/usr/local/bin:/usr/bin:/bin
    _SERVER["UNIQUE_ID"]	fr66On8AAAEAAGZbmmoAAABE
    _SERVER["MvCONFIG_LIBRARY"]	/usr/local/miva/lib/config/env.so
    _SERVER["MvCONFIG_DIR_BUILTIN"]	/usr/local/miva/lib/builtins
    _SERVER["MvCONFIG_DIR_CA"]	/usr/local/miva/certs
    _SERVER["MvCONFIG_SSL_OPENSSL"]	/usr/lib/libssl.so
    _SERVER["MvCONFIG_SSL_CRYPTO"]	/usr/lib/libcrypto.so
    _SERVER["MvCONFIG_DIR_MIVA"]	/home/sites/**************.com/public_html
    _SERVER["MvCONFIG_DIR_DATA"]	/home/sites/**************.com/mivadata
    _SERVER["HTTP_USER_AGENT"]	Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-gb) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
    _SERVER["HTTP_ACCEPT"]	text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    _SERVER["HTTP_ACCEPT_LANGUAGE"]	en-gb
    _SERVER["HTTP_ACCEPT_ENCODING"]	gzip, deflate
    _SERVER["HTTP_CONNECTION"]	keep-alive
    _SERVER["HTTP_HOST"]	www.**************.com
    _SERVER["SERVER_SIGNATURE"]	<address>Apache/2 Server at www.**************.com Port 80</address>
    _SERVER["SERVER_SOFTWARE"]	Apache/2
    _SERVER["SERVER_NAME"]	www.**************.com
    _SERVER["SERVER_ADDR"]	79.170.40.178
    _SERVER["SERVER_PORT"]	80
    _SERVER["REMOTE_ADDR"]	79.97.32.30
    _SERVER["DOCUMENT_ROOT"]	/home/sites/**************.com/public_html/
    _SERVER["SERVER_ADMIN"]	webmaster@**************.com
    _SERVER["SCRIPT_FILENAME"]	/home/sites/**************.com/public_html/whatever.php
    _SERVER["REMOTE_PORT"]	40533
    _SERVER["GATEWAY_INTERFACE"]	CGI/1.1
    _SERVER["SERVER_PROTOCOL"]	HTTP/1.1
    _SERVER["REQUEST_METHOD"]	GET
    _SERVER["QUERY_STRING"]	no value
    _SERVER["REQUEST_URI"]	/whatever.php
    _SERVER["SCRIPT_NAME"]	/whatever.php
    _SERVER["PHP_SELF"]	/whatever.php
    _SERVER["argv"]	
    Array
    (
    )
    _SERVER["argc"]	0
    _ENV["PATH"]	/usr/local/bin:/usr/bin:/bin
    _ENV["UNIQUE_ID"]	fr66On8AAAEAAGZbmmoAAABE
    _ENV["MvCONFIG_LIBRARY"]	/usr/local/miva/lib/config/env.so
    _ENV["MvCONFIG_DIR_BUILTIN"]	/usr/local/miva/lib/builtins
    _ENV["MvCONFIG_DIR_CA"]	/usr/local/miva/certs
    _ENV["MvCONFIG_SSL_OPENSSL"]	/usr/lib/libssl.so
    _ENV["MvCONFIG_SSL_CRYPTO"]	/usr/lib/libcrypto.so
    _ENV["MvCONFIG_DIR_MIVA"]	/home/sites/**************.com/public_html
    _ENV["MvCONFIG_DIR_DATA"]	/home/sites/**************.com/mivadata
    _ENV["HTTP_USER_AGENT"]	Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-gb) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
    _ENV["HTTP_ACCEPT"]	text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    _ENV["HTTP_ACCEPT_LANGUAGE"]	en-gb
    _ENV["HTTP_ACCEPT_ENCODING"]	gzip, deflate
    _ENV["HTTP_CONNECTION"]	keep-alive
    _ENV["HTTP_HOST"]	www.**************.com
    _ENV["SERVER_SIGNATURE"]	<address>Apache/2 Server at www.**************.com Port 80</address>
    _ENV["SERVER_SOFTWARE"]	Apache/2
    _ENV["SERVER_NAME"]	www.**************.com
    _ENV["SERVER_ADDR"]	79.170.40.178
    _ENV["SERVER_PORT"]	80
    _ENV["REMOTE_ADDR"]	79.97.32.30
    _ENV["DOCUMENT_ROOT"]	/home/sites/**************.com/public_html/
    _ENV["SERVER_ADMIN"]	webmaster@**************.com
    _ENV["SCRIPT_FILENAME"]	/home/sites/**************.com/public_html/whatever.php
    _ENV["REMOTE_PORT"]	40533
    _ENV["GATEWAY_INTERFACE"]	CGI/1.1
    _ENV["SERVER_PROTOCOL"]	HTTP/1.1
    _ENV["REQUEST_METHOD"]	GET
    _ENV["QUERY_STRING"]	no value
    _ENV["REQUEST_URI"]	/whatever.php
    _ENV["SCRIPT_NAME"]	/whatever.php
    
    PHP License
    
    This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
    
    This program 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.
    
    If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

  6. #6
    Wannabe Geek php.allstar's Avatar
    Join Date
    Apr 2009
    Location
    Monamolin, Gorey, Co. Wexford
    Posts
    405
    Post Thanks / Like

    Default

    Hi,

    That doesn't throw up anything obvious that your server config is causing the problem.

    Add the following to the top of one of the offending php files then run in your browser and paste any errors shown:

    PHP Code:
    <?php

        error_reporting
    (E_ALL);

    ?>

  7. #7
    Frontpage User
    Join Date
    Dec 2008
    Posts
    20
    Post Thanks / Like

    Default

    the php files are not the ones causing the problems.
    I only get the 403 forbidden with html files

  8. #8
    Wannabe Geek php.allstar's Avatar
    Join Date
    Apr 2009
    Location
    Monamolin, Gorey, Co. Wexford
    Posts
    405
    Post Thanks / Like

    Default

    Ooops, sorry!

    Do you have a .htaccess file in your root directory? If so please paste the contents here. I have a feeling there might be a rule in there rewriting html files to php equivilants.

    Are you using absolute or relative paths to your css files from within your HTML pages?

  9. #9
    Frontpage User
    Join Date
    Dec 2008
    Posts
    20
    Post Thanks / Like

    Default

    there doesnt seem to be a htaccess file. I have check to view hidden files and nothing there.

    I do however have 4 other files i know nothing about:

    .bash_logout
    .bash_profile
    .bashrc
    .gtkrc

    If there was something telling the server to turn all html into php should I get some sort of file when I try view a html instead of the 403 forbidden.

    Cheers for your time

  10. #10
    Wannabe Geek php.allstar's Avatar
    Join Date
    Apr 2009
    Location
    Monamolin, Gorey, Co. Wexford
    Posts
    405
    Post Thanks / Like

    Default

    there could be a directive in the httpd.conf file that modifies how php and html files are parsed.

    open your httpd.conf file and look for anything like the following:

    Code:
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .html
    AddType application/x-httpd-php .php .html
    Do any of these lines exist in the httpd.conf file?

    All this too-ing and fro-ing seems to be getting us nowhere! If you want to pm me the access details to the box I could spare 2 minutes to identlfy the problem. I understand that you don't know me so there is zero trust there but hey, I'm on here to promote myself and to help others so the choice is yours!

Page 1 of 2 12 LastLast

Similar Threads

  1. who will win the browser war
    By starfire in forum Webmaster Discussion
    Replies: 12
    Last Post: 11-11-2008, 10:19 PM
  2. Adwords Display URL www or not
    By Tom in forum Google Adwords
    Replies: 4
    Last Post: 29-05-2008, 10:49 AM
  3. .ie to display in uk
    By Joseph Grogan in forum Search Engine Optimisation
    Replies: 12
    Last Post: 11-12-2007, 12:05 PM
  4. Which Browser do you use?
    By blacknight in forum Webmaster Discussion
    Replies: 18
    Last Post: 23-03-2007, 02:42 PM
  5. Browser Cam
    By bucks in forum Webmaster Discussion
    Replies: 1
    Last Post: 22-03-2007, 04:25 PM

Visitors found this page by searching for:

inurl:.php cURL: ON MySQL: ON MSSQL: OFF

html wont show

html wont display in browser

cURL: OFF MySQL: ON MSSQL: OFF PostgreSQL: OFF Oracle: OFF

html document wont display

html wont display

browser wont show html

cURL: ON MySQL: ON MSSQL: OFF PostgreSQL: OFF Oracle: OFF

cURL: ON MySQL: ON MSSQL: OFF PostgreSQL: ON Oracle: OFF

html wont render

html file wont display

wont show htmlhtml page wont showhtml text wont show in browserperl: OFF curl: ON globals: OFF mysql: ON mssql: OFF postgresqlL: OFF oracle: OFF safe-mode: OFF!html wont render in browserhtml won t displaysafe_mode: OFF PHP version: cURL: ON MySQL: ON MSSQL: OFF Postgbrowser wont renderhtml file wont render in browserhtml wont show up in browserbrowser doesnt render htmlhtml wont display in phpsafe_mode: PHP version: cURL: MYSQL: MSSQL: PostgreSQL: Oracle: Disable functions:html wont show in browser

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •