Dreamweaver menu being stripped

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Dreamweaver menu being stripped

Unread post by coolemail »

We have a site built with Dreamweaver. Yesterday we discovered that the menus are not showing on the Home Page (or any other pages, if we go to any direct).

/var/www/vhosts/domain.co.uk/statistics/logs/error_log shows only one thing strange
[Wed Aug 03 08:55:52 2011] [error] [client 109.224.207.33] File does not exist: /var/www/vhosts/domain.co.uk
[Wed Aug 03 09:14:41 2011] [error] [client 109.224.207.33] Directory index forbidden by Options directive: /var/www/vhosts/domain.co.uk/httpdocs/contents/
The site works fine with the client when on their local machine in the Dreamweaver programme, but when they FTP it, the menus disappear.

Can anyone help us get to the bottom of what is causing this please?
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Dreamweaver menu being stripped

Unread post by coolemail »

If it helps, I have a Web Developer tool turned on on Firefox. When we go to the Home page, it reports an error:
Expected ',' or '{' but found 'html'. Ruleset ignored due to bad selector
and in the source code for http://www.domain.co.uk/contents/styles/website.css, it highligts one line - shown below in bold/und with some addl code around it:
html body, div, p, td, input, select /* font */{font-family:Verdana, Geneva, sans-serif;}
a{text-decoration:none;color:#0000FF;}
/* **** END: Base system colour styles and declarations **** */
/* ** BEGIN: Primary declarations ** */
* {margin:0;padding:0;} /* Forces all elements to default */
html {text-align:center;}
/*body, div, p, td, input, select {font-style:normal;}*/
body {font-size:12px;}
*html body {width:98%;}
html, body {height:100%;text-align:center;}
/* ** BEGIN: Website width and height ** */
/* Normally set to 770px (Fits on 800 x 600 screens) or 980px (Fits on 1024 x 768 screens). Larger or smaller sizes are possible, with sacrifice to legability of website text and loading times. */
#WebSite, #WebSiteHeader, #WebSiteContent, #WebSiteFooter, #WebSiteContent, #DesignImage1, #AppLogo, .WebSiteFootnote {width:980px;}
/* Sum of the following elements width must equal WebSite width. Check other values further down this file for other elements which my be affected by these settings. */
#SideBar_L{width:200px;font-size:12px;font-weight:bold;font-style:normal;} #Content {width:750px;margin:0 10px 0 20px;}
/* Minimum website height */
#WebSite, #WebSiteContent, #Content {min-height:415px;}
/* ** END: Website width and height ** */
Does that help at all?

We are going to try and disable Safebrowsing and see if that helps. If we comment out the relevant line in /etc/freshclam.conf and restart apache, is that sufficient? Not sure that this should help at all, but want to try it anyway.

Grateful for any other clues.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Dreamweaver menu being stripped

Unread post by coolemail »

Update 2:

We uploaded this website to a server that is not ours and the site works fine with its menus. Therefore, it is something on our server that is stripping out the menus. Can someone help as to what that might be?
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Dreamweaver menu being stripped

Unread post by BruceLee »

so is the root of the page
/var/www/vhosts/domain.co.uk/httpdocs/contents/
or
/var/www/vhosts/domain.co.uk/httpdocs/

How is your vhost configured? As Fcgi or Apache module?
How are the permission set?
do you have an index.php or index.html, index.htm file in /var/www/vhosts/domain.co.uk/httpdocs/contents/?
If not, create a new index.html file in that directory and post the erro in the log.
probably a permission error.
douglaseggleton
Forum User
Forum User
Posts: 69
Joined: Tue Jul 19, 2011 6:30 am
Location: United Kingdom

Re: Dreamweaver menu being stripped

Unread post by douglaseggleton »

(I'm working with coolemail)

The root index.html is in the main /httpd directory. We're using Apache.

The whole website functions offline perfectly - it contains no server-side scripts. Uploaded it to another host, worked perfectly. Nothing showing up in the httpd error logs that is relevant. Just checked the file and directory permissions... they're fine (read only) for html, execute for directories ( the website files show up) just the menu's which are included via javascript and flash get blocked on our server for some reason. =/ Cheers
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: Dreamweaver menu being stripped

Unread post by mikeshinn »

Whats the output of "asl -s" on the system?
douglaseggleton
Forum User
Forum User
Posts: 69
Joined: Tue Jul 19, 2011 6:30 am
Location: United Kingdom

Re: Dreamweaver menu being stripped

Unread post by douglaseggleton »

Code: Select all

Starting Atomic Secured Linux scan, please be patient... 

Checking Kernel security settings
  ASL kernel: detected [60G[[1;32mOK[0m]
  Runtime module loading: disabled [60G[[1;32mOK[0m]
  GRsecurity administrative password: not set [60G[[1;33mINFO[0m]
  GRsecurity ACL database: not found [60G[[1;33mINFO[0m]
  Executable anonymous mapping: no [60G[[1;32mOK[0m]
  Executable bss: no [60G[[1;32mOK[0m]
  Executable data: no [60G[[1;32mOK[0m]
  Executable heap: no [60G[[1;32mOK[0m]
  Executable stack: no [60G[[1;32mOK[0m]
  Executable anonymous mapping (mprotect): no [60G[[1;32mOK[0m]
  Executable bss  (mprotect): no [60G[[1;32mOK[0m]
  Executable data  (mprotect): no [60G[[1;32mOK[0m]
  Executable heap  (mprotect): no [60G[[1;32mOK[0m]
  Executable shared library bss (mprotect): no [60G[[1;32mOK[0m]
  Executable shared library data (mprotect): no [60G[[1;32mOK[0m]
  Executable stack (mprotect): no [60G[[1;32mOK[0m]
  Anonymous mapping randomisation test: no [60G[[1;32mOK[0m]
  Heap randomisation test (ET_EXEC): no [60G[[1;32mOK[0m]
  Heap randomisation test (ET_DYN): no [60G[[1;32mOK[0m]
  Main executable randomisation (ET_EXEC): no [60G[[1;32mOK[0m]
  Shared library randomisation test: no [60G[[1;32mOK[0m]
  Stack randomisation test (SEGMEXEC): no [60G[[1;32mOK[0m]
  Stack randomisation test (PAGEEXEC): no [60G[[1;32mOK[0m]
  Executable shared library bss: no [60G[[1;32mOK[0m]
  Executable shared library data: no [60G[[1;32mOK[0m]
  Writable text segments: no [60G[[1;32mOK[0m]

  Kernel Enforced Security Policies
  Trusted Path Execution(TPE): enforced [60G[[1;32mOK[0m]
    TPE Mode: Unless Deny, Allow [60G[[1;33mINFO[0m]
  Disable Privileged I/O: enforced [60G[[1;32mOK[0m]
  Audit mount() events: not enforced [60G[[1;33mINFO[0m]
  Audit chdir() events: not enforced [60G[[1;33mINFO[0m]
  Audit ptrace() events: enforced [60G[[1;32mOK[0m]
  Audit text relocation events: not enforced [60G[[1;33mINFO[0m]
  Restrict chroot() capabilities: enforced [60G[[1;32mOK[0m]
  Chroot restrictions, deny chmod(): enforced [60G[[1;32mOK[0m]
  Chroot restrictions, deny chroot(): enforced [60G[[1;32mOK[0m]
  Chroot restrictions, deny fchdir(): enforced [60G[[1;32mOK[0m]
  Chroot restrictions, deny mknod(): enforced [60G[[1;32mOK[0m]
  Chroot restrictions, deny mount(): enforced [60G[[1;32mOK[0m]
  Chroot restrictions, deny pivot(): enforced [60G[[1;32mOK[0m]
  Chroot restrictions, deny external shmem access: enforced [60G[[1;32mOK[0m]
  Chroot restrictions, deny sysctl: enforced [60G[[1;32mOK[0m]
  Chroot restrictions, deny unix domain sockets: enforced [60G[[1;32mOK[0m]
  Chroot restrictions, set cwd to chroot dir: enforced [60G[[1;32mOK[0m]
  Chroot restrictions, process controls: enforced [60G[[1;32mOK[0m]
  Restrict dmesg: enforced [60G[[1;32mOK[0m]
  Restrict resource limits on execve(): enforced [60G[[1;32mOK[0m]
  Enhanced FIFO restrictions: enforced [60G[[1;32mOK[0m]
  Fork() failure logging: enforced [60G[[1;32mOK[0m]
  Harden ptrace(): not enforced [60G[[1;31mMODERATE[0m]
  Network Stack, IP Blackhole policy: enforced [60G[[1;32mOK[0m]
  Linking Restrictions: enforced [60G[[1;32mOK[0m]
  Resource Logging: not enforced [60G[[1;33mINFO[0m]
  RWX map Logging: not enforced [60G[[1;33mINFO[0m]
  Signal Logging: not enforced [60G[[1;33mINFO[0m]
  Timechange Logging: enforced [60G[[1;32mOK[0m]

Checking General security settings
Checking for unnecessary services
    Service apmd: disabled [60G[[1;32mOK[0m]
    Service autofs: disabled [60G[[1;32mOK[0m]
    Service avahi-daemon: disabled [60G[[1;32mOK[0m]
    Service bluetooth: disabled [60G[[1;32mOK[0m]
    Service cups: disabled [60G[[1;32mOK[0m]
    Service gpm: disabled [60G[[1;32mOK[0m]
    Service haldaemon: disabled [60G[[1;32mOK[0m]
    Service hidd: disabled [60G[[1;32mOK[0m]
    Service hplip: disabled [60G[[1;32mOK[0m]
    Service isdn: disabled [60G[[1;32mOK[0m]
    Service kdump: disabled [60G[[1;32mOK[0m]
    Service mcstrans: disabled [60G[[1;32mOK[0m]
    Service nfs: disabled [60G[[1;32mOK[0m]
    Service nfslock: disabled [60G[[1;32mOK[0m]
    Service pcscd: disabled [60G[[1;32mOK[0m]
    Service portmap: disabled [60G[[1;32mOK[0m]
    Service rpcidmapd: disabled [60G[[1;32mOK[0m]
    Service xfs: disabled [60G[[1;32mOK[0m]
    Service X11: disabled [60G[[1;32mOK[0m]

Checking for End of Life (EOL) operating systems
    centos/5: Supported [60G[[1;32mOK[0m]
Checking for updater: yum detected [60G[[1;32mOK[0m]
Checking for updates: system is up to date [60G[[1;32mOK[0m]

Checking General Plesk settings
  Plesk SQL Injection vulnerability SA26741: not detected [60G[[1;32mOK[0m]
  Horde Turba Vulnerability CVE-2008-0807: not detected [60G[[1;32mOK[0m]
  Horde Vulnerability SA28382: not detected [60G[[1;32mOK[0m]
  Horde Turba Vulnerability SA28382: not detected [60G[[1;32mOK[0m]
  Horde Mnemo Vulnerability SA28382: not detected [60G[[1;32mOK[0m]
  Horde Kronolith Vulnerability SA28382: not detected [60G[[1;32mOK[0m]
  Horde Vulnerability CVE-2007-6018: not detected [60G[[1;32mOK[0m]
  Horde Vulnerability CVE-2008-1284: not detected [60G[[1;32mOK[0m]
  Horde Kronolith Vulnerabilty BugtraqID 28898: not detected [60G[[1;32mOK[0m]
  Proftp Vulnerability SA33842: not detected [60G[[1;32mOK[0m]
  Proftp Vulnerability SA42052: not detected [60G[[1;32mOK[0m]
  Verify SSLv2 disabled in Plesk Daemon: verified [60G[[1;32mOK[0m]
  Verify TLS enabled in proftp: enabled [60G[[1;32mOK[0m]
  Verify ClamAV enabled in proftp: enabled [60G[[1;32mOK[0m]
  Set proftp scoreboard to default: yes [60G[[1;32mOK[0m]
  Checking for weak SMTP_AUTH passwords: 10 found [60G[[1;31mMODERATE[0m]
  See/var/asl/reports/password.report for more details
  Verify SSLv2 disabled in Qmail: verified [60G[[1;32mOK[0m]
  Verify SSLv2 disabled in Courier IMAP: verified [60G[[1;32mOK[0m]
  Verify SSLv2 disabled in Courier POP3d: verified [60G[[1;32mOK[0m]
  Verify expose_php set to off:  [60G[[1;32mOK[0m]

Checking mod_security settings
  Checking for mod_security installation: installed [60G[[1;32mOK[0m]
  mod_security set to: enabled [60G[[1;32mOK[0m]
  Server Signature set to: Apache [60G[[1;32mOK[0m]
  SecUploadDir set to: /var/asl/data/suspicious [60G[[1;32mOK[0m]
  SecUploadKeepFiles set to: off [60G[[1;32mOK[0m]
  Logfile set to: audit_log [60G[[1;32mOK[0m]
  Logging set to: Concurrent [60G[[1;32mOK[0m]
  Audit Logging to: /var/asl/data/audit [60G[[1;32mOK[0m]
  Logging elements set to: ABIFHZ [60G[[1;32mOK[0m]
  SecRequestBodyInMemoryLimit set to: 131072 [60G[[1;32mOK[0m]
  SecRequestBodyLimit set to: 134217728 [60G[[1;32mOK[0m]
  SecResponseBodyLimit set to: 2621440 [60G[[1;32mOK[0m]
  SecResponseBodyLimitAction set to: ProcessPartial [60G[[1;32mOK[0m]
  SecDataDir set to: /var/asl/data/msa [60G[[1;32mOK[0m]
  SecTmpDir set to: /tmp [60G[[1;32mOK[0m]

  Checking rule class settings  
    RBL Ruleset: off [60G[[1;31mLOW[0m]
    Whitelist Ruleset: off [60G[[1;32mOK[0m]
    Anti-Malware Ruleset: on [60G[[1;32mOK[0m]
    Generic Attack Ruleset: on [60G[[1;32mOK[0m]
    Advanced Attack Ruleset: off [60G[[1;31mHIGH[0m]
    Brute Force Protection Ruleset: on [60G[[1;32mOK[0m]
    Malicious Useragents Ruleset: on [60G[[1;32mOK[0m]
    Anti-Spam Ruleset: on [60G[[1;32mOK[0m]
    Rootkit Detection Ruleset: on [60G[[1;32mOK[0m]
    Reconnaissance Attacks Ruleset: on [60G[[1;32mOK[0m]
    Data Leak Prevention Ruleset: on [60G[[1;32mOK[0m]
    Just In Time Patches: on [60G[[1;32mOK[0m]
    Malicious Output Logging Ruleset: on [60G[[1;32mOK[0m]
    Malicious Output Removal Ruleset: off [60G[[1;31mMODERATE[0m]
    Malicious Output Detector: on [60G[[1;32mOK[0m]
    Web Malware Upload Scanner: on [60G[[1;32mOK[0m]

  Checking for disabled rules

Checking php settings
  Checking for php installation: installed [60G[[1;32mOK[0m]
  Allow URL fopen: yes [60G[[1;31mHIGH[0m]

Checking for High-Risk functions
  Function curl_exec: not allowed [60G[[1;32mOK[0m]
  Function curl_multi_exec: not allowed [60G[[1;32mOK[0m]
  Function dl: not allowed [60G[[1;32mOK[0m]
  Function exec: allowed [60G[[1;31mHIGH[0m]
  Function fsockopen: allowed [60G[[1;31mHIGH[0m]
  Function passthru: not allowed [60G[[1;32mOK[0m]
  Function pcntl_exec: not allowed [60G[[1;32mOK[0m]
  Function pfsockopen: not allowed [60G[[1;32mOK[0m]
  Function popen: allowed [60G[[1;31mHIGH[0m]
  Function posix_kill: not allowed [60G[[1;32mOK[0m]
  Function posix_mkfifo: not allowed [60G[[1;32mOK[0m]
  Function posix_setuid: not allowed [60G[[1;32mOK[0m]
  Function proc_close: not allowed [60G[[1;32mOK[0m]
  Function proc_open: not allowed [60G[[1;32mOK[0m]
  Function proc_terminate: not allowed [60G[[1;32mOK[0m]
  Function shell_exec: not allowed [60G[[1;32mOK[0m]
  Function system: not allowed [60G[[1;32mOK[0m]

Checking for Moderate-Risk functions
  Function ftp_exec: not allowed [60G[[1;32mOK[0m]
  Function leak: not allowed [60G[[1;32mOK[0m]
  Function posix_setpgid: not allowed [60G[[1;32mOK[0m]
  Function posix_setsid: not allowed [60G[[1;32mOK[0m]
  Function proc_get_status: not allowed [60G[[1;32mOK[0m]
  Function proc_nice: not allowed [60G[[1;32mOK[0m]
  Function show_source: not allowed [60G[[1;32mOK[0m]

Checking for Low-Risk functions
  Function escapeshellcmd: allowed [60G[[1;31mLOW[0m]
  Function phpinfo: allowed [60G[[1;31mLOW[0m]

 Checking executable stack flag on PHP extensions
  /usr/lib64/php/ioncube/ioncube_loader_lin_5.3.so :  [60G[[1;32mOK[0m]

Checking ossec-hids settings
  Checking for ossec-hids installation: installed [60G[[1;32mOK[0m]
  ossec-hids set to: enabled [60G[[1;32mOK[0m]
  OSSEC is configured in server mode. 
    Checking for server installation: installed [60G[[1;32mOK[0m]
    Email notification: disabled [60G[[1;32mOK[0m]
    Active Response: enabled [60G[[1;32mOK[0m]
    Active Response timeout: 600 [60G[[1;32mOK[0m]

    Verifying OSSEC whitelists[snipped]

    Checking for monitored log files 
      [snipped by mike]


Checking rkhunter settings
   [snipped by mike]

Checking ssh settings
  [snipped by mike]



Checking httpd settings
  Verify HTTP TRACE disabled: verified [60G[[1;32mOK[0m]
  Verify SSLv2 disabled: verified [60G[[1;32mOK[0m]

Checking mod_evasive settings
  Checking for mod_evasive installation: installed [60G[[1;32mOK[0m]
  mod_evasive set to: enabled [60G[[1;32mOK[0m]
  DOSHashTableSize set to: 4096 [60G[[1;32mOK[0m]
  DOSPageCount set to: 5 [60G[[1;32mOK[0m]
  DOSSiteCount set to: 200 [60G[[1;32mOK[0m]
  DOSPageInterval set to: 2 [60G[[1;32mOK[0m]
  DOSSiteInterval set to: 2 [60G[[1;32mOK[0m]
  DOSBlockingPeriod set to: 25 [60G[[1;32mOK[0m]

Checking clamav settings
  Checking for clamav installation: installed [60G[[1;32mOK[0m]
  ClamAV set to: enabled [60G[[1;32mOK[0m]
  Clamd listen address: 127.0.0.1 [60G[[1;32mOK[0m]
  Clamd log to syslog: yes [60G[[1;32mOK[0m]

  Clamav is in: application-only mode


Checking psmon settings
  Checking for psmon installation: installed [60G[[1;32mOK[0m]
  psmon set to: enabled [60G[[1;32mOK[0m]
  Notifications to: office@hostname.com [60G[[1;32mOK[0m]
  From line set to: psmon@plesk3.hostname.co.uk [60G[[1;32mOK[0m]

Checking System services monitored by psmon
  clamd: monitored [60G[[1;32mOK[0m]
  courier-imap: monitored [60G[[1;32mOK[0m]
  crond: monitored [60G[[1;32mOK[0m]
  mysqld: monitored [60G[[1;32mOK[0m]
  sshd: monitored [60G[[1;32mOK[0m]
  xinetd: monitored [60G[[1;32mOK[0m]
  ossec-dbd: monitored [60G[[1;32mOK[0m]


Generating Report: Complete
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: Dreamweaver menu being stripped

Unread post by mikeshinn »

Well thats a dead end, the only component in ASL that could modify web output is disabled on your system (and thats only on the fly, not in the files themselves), so it doesnt look like ASL is doing anything to your content.

Can you confirm that the files are unchanged when they are uploaded to your server? (hashes are best for this, md5sum for example)

Have you confirmed that the web server configuration is identical between your test environment and this environment? If not, I'd start there to eliminate all variables on the server itself. The errors you have posted so far look like path and permission issues, which would be caused by a server config issue, or even a local patch issue in the web code itself.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Dreamweaver menu being stripped

Unread post by coolemail »

In php.ini, we have
[root@plesk3 ~]# grep disable_functions /etc/php.ini
disable_functions = , curl_exec , curl_multi_exec , dl , passthru , pcntl_exec , pfsockopen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , shell_exec , system , ftp_exec , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source
[root@plesk3 ~]#
Would it be OK to comment out the
disable_functions
in /etc/php.ini and see if that resolves it?

Would we need to restart apache to make it take effect?
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: Dreamweaver menu being stripped

Unread post by mikeshinn »

In php.ini, we have

[root@plesk3 ~]# grep disable_functions /etc/php.ini
disable_functions = , curl_exec , curl_multi_exec , dl , passthru , pcntl_exec , pfsockopen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , shell_exec , system , ftp_exec , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source
[root@plesk3 ~]#
So that looks like ASL is managing your PHP settings correctly, its possible one of those functions may be necessary for your web application to work. I'd re-enable all your PHP functions and see if eliminating that variable gets you closer to the source. If that doesnt resolve it, the only other part of ASL that could intercept web requests is the DOS protection system, which is the option MODEV_ENABLED to "no". And if that doesnt resolve it then you have run out of ASL causes.
Would it be OK to comment out the
disable_functions
in /etc/php.ini and see if that resolves it?
You could, but if you have ASL configured to enforce those settings they will get re-enabled. Just log into ASL and set PHP_CHECKS to "no", that will disable anything ASL has been configured to do to your PHP configuration.
Would we need to restart apache to make it take effect?
Yes.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Dreamweaver menu being stripped

Unread post by coolemail »

I have set PHP_CHECKS to No on ASL GUI and clicked Update.
Then I commented out disable_functions:
[root@plesk3 ~]# grep disable_functions /etc/php.ini
#disable_functions = , curl_exec , curl_multi_exec , dl , passthru , pcntl_exec , pfsockopen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , shell_exec , system , ftp_exec
[root@plesk3 ~]#
restarted httpd
and still the menu is not showing on our own server.

Then set MODEV_ENABLED to "no", clicked Update, restarted apache and still no joy.

I have reversed both the above, but would welcome, please some more help.

The 3rd party server onto which we copied the website is not ours so not really possible for us to see all the differences. However, 3rd Party is using:
PHP Version 5.2.6-1+lenny13
System Linux dynamic-web3.hostingweb.co.uk 2.6.32.6ai-build #2 SMP Thu Jan 28 17:16:47 GMT 2010 x86_64
Build Date Jul 1 2011 15:58:32
and we are using:
PHP Version 5.3.6
System Linux plesk3.emailitis.co.uk 2.6.32.43-6.art.x86_64 #1 SMP Thu Jul 14 14:14:48 EDT 2011 x86_64
Build Date Apr 19 2011 13:21:29
if that gives any clue?
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Dreamweaver menu being stripped

Unread post by BruceLee »

you didn't answer some questions...so once again like above:

so is the root of the page (also in the vhost config)
/var/www/vhosts/domain.co.uk/httpdocs/contents/
or
/var/www/vhosts/domain.co.uk/httpdocs/


and how is your vhost configured? As Fcgi or Apache module?
How are the permission set?
do you have an index.php or index.html, index.htm file in /var/www/vhosts/domain.co.uk/httpdocs/contents/?
If not, create a new index.html file in that directory and post the error in the log.
probably a permission error.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Dreamweaver menu being stripped

Unread post by coolemail »

Thank you BruceLee for coming back so fast,

Sorry, douglaseggleton is working with me and he answered most of your queries - I think
douglaseggleton wrote:(I'm working with coolemail)

The root index.html is in the main /httpd directory. We're using Apache.

The whole website functions offline perfectly - it contains no server-side scripts. Uploaded it to another host, worked perfectly. Nothing showing up in the httpd error logs that is relevant. Just checked the file and directory permissions... they're fine (read only) for html, execute for directories ( the website files show up) just the menu's which are included via javascript and flash get blocked on our server for some reason. =/ Cheers
There was no index file in /var/www/vhosts/domain.co.uk/httpdocs/contents/ (sent you a PM with the URLs before creating one there, because the website works on a server which is not ours, and on ours the page is there but just no menu)

I have listed main permissions below:
[root@plesk3 ~]# ls -l /var/www/vhosts/domain.co.uk
total 48
drwxr-x--- 5 domainftp psaserv 4096 Jun 13 14:19 anon_ftp
drwxr-x--- 3 domainftp psacln 4096 Oct 22 2009 cgi-bin
drwxr-x--- 2 root psaserv 4096 Jul 22 08:59 conf
drwxr-xr-x 2 root psaserv 4096 Feb 28 12:34 error_docs
drwxr-xr-x 2 root root 4096 Jun 15 20:28 etc
drwxr-x--- 9 domainftp psaserv 4096 Aug 2 16:22 httpdocs
drwxr-x--- 7 domainftp psaserv 4096 Oct 22 2009 httpsdocs
drwxr-x--- 2 root psaserv 4096 Jun 13 14:19 pd
drwx------ 2 domainftp root 4096 Oct 22 2009 private
dr-xr-x--- 7 root psaserv 4096 Jun 13 14:19 statistics
drwxr-xr-x 2 root psaserv 4096 Jun 13 14:19 subdomains
drwxr-xr-x 2 root psaserv 4096 Jun 13 14:19 web_users
[root@plesk3 ~]#



[root@plesk3 ~]# ls -l /var/www/vhosts/domain.co.uk/httpdocs
total 92
drwxr-xr-x 7 domainftp psacln 4096 Aug 2 16:29 contents
drwxr-xr-x 2 domainftp psacln 4096 Oct 22 2009 css
-rwxr-xr-x 1 domainftp psacln 17542 Oct 22 2009 favicon.ico
drwxr-xr-x 6 domainftp psacln 4096 Oct 22 2009 img
-rw-r--r-- 1 domainftp psacln 2868 Feb 11 2010 index1.html
-rwxr-xr-x 1 domainftp psacln 13057 Aug 2 16:29 index.html
-rw-r--r-- 1 domainftp psacln 249 Aug 2 16:22 MTI-980-header.xml
drwxr-xr-x 2 domainftp psacln 4096 Oct 22 2009 picture_library
drwxr-xr-x 2 root root 4096 Oct 22 2009 plesk-stat
-rw-r--r-- 1 domainftp psacln 522 Aug 2 16:29 robots.txt
drwxr-xr-x 2 domainftp psacln 4096 Feb 23 2010 shared_files
-rw-r--r-- 1 domainftp psacln 5193 Aug 2 16:29 sitemap.xml
drwxr-xr-x 11 domainftp psacln 4096 Oct 22 2009 test
-rw-rw---- 1 root apache 1444 May 4 22:42 web_sitemap_affa0eb8_000.xml.gz
-rw-rw---- 1 root apache 274 May 4 22:42 web_sitemap_affa0eb8.xml.gz
[root@plesk3 ~]# ls -l /var/www/vhosts/domain.co.uk/httpdocs/contents
total 412
-rw-r--r-- 1 domainftp psacln 3175 Aug 2 16:22 cload.html
-rw-r--r-- 1 domainftp psacln 77705 Aug 2 16:22 core.html
-rw-r--r-- 1 domainftp psacln 2827 Aug 2 16:22 core.js
-rw-r--r-- 1 domainftp psacln 641 Aug 2 16:22 date.js
-rw-r--r-- 1 domainftp psacln 289 Aug 2 16:22 dynamic.html
drwxr-xr-x 2 domainftp psacln 4096 Aug 2 16:29 en-uk
-rw-r--r-- 1 domainftp psacln 2868 Aug 2 16:25 extra.html
-rw-r--r-- 1 domainftp psacln 15279 Aug 2 16:25 grey.html
-rw-r--r-- 1 domainftp psacln 3345 Aug 2 16:25 init.js
-rw-r--r-- 1 domainftp psacln 720 Feb 11 2010 lang_enter.js
-rw-r--r-- 1 domainftp psacln 11867 Aug 2 16:25 lang_en-uk.js
-rw-r--r-- 1 domainftp psacln 493 Aug 2 16:25 lang.html
-rw-r--r-- 1 domainftp psacln 1057 Aug 2 16:25 load_dynamic_js.js
-rw-r--r-- 1 domainftp psacln 22145 Aug 2 16:25 loader.js
-rw-r--r-- 1 domainftp psacln 479 Aug 2 16:25 loadjs.html
-rw-r--r-- 1 domainftp psacln 1103 Aug 2 16:25 load_login.html
-rw-r--r-- 1 domainftp psacln 10800 Aug 2 16:25 load_minicart.html
-rw-r--r-- 1 domainftp psacln 1310 Aug 2 16:25 load_switchcurrency.html
drwxr-xr-x 2 domainftp psacln 12288 Feb 23 2010 media
-rw-r--r-- 1 domainftp psacln 2831 Aug 2 16:29 net.js
-rw-r--r-- 1 domainftp psacln 9325 Aug 2 16:29 pconfirm.html
drwxr-xr-x 2 domainftp psacln 4096 Aug 2 16:29 phpsearch
-rw-r--r-- 1 domainftp psacln 277 Aug 2 16:29 progress.html
-rw-r--r-- 1 domainftp psacln 997 Aug 2 16:29 provider.html
drwxr-xr-x 2 domainftp psacln 4096 Feb 23 2010 prpgmap
-rw-r--r-- 1 domainftp psacln 1580 Aug 2 16:29 reseller.html
-rw-r--r-- 1 domainftp psacln 2133 Feb 11 2010 sec.html
-rw-r--r-- 1 domainftp psacln 3045 Feb 11 2010 sec.js
-rw-r--r-- 1 domainftp psacln 107977 Aug 2 16:29 sf.js
-rw-r--r-- 1 domainftp psacln 300 Aug 2 16:29 stat.html
-rw-r--r-- 1 domainftp psacln 5388 Aug 2 16:29 stat.js
drwxr-xr-x 2 domainftp psacln 4096 Feb 23 2010 styles
-rw-r--r-- 1 domainftp psacln 1919 Aug 2 16:29 ups.html
-rw-r--r-- 1 domainftp psacln 24630 Aug 2 16:29 utils.html
[root@plesk3 ~]# ls -l /var/www/vhosts/domain.co.uk/httpdocs/contents/en-uk
total 1300
-rw-r--r-- 1 domainftp psacln 14879 Aug 2 16:22 about.html
-rw-r--r-- 1 domainftp psacln 732 Aug 2 16:22 about_.js
-rw-r--r-- 1 domainftp psacln 24073 Aug 2 16:22 basket.html
-rw-r--r-- 1 domainftp psacln 735 Aug 2 16:22 basket_.js
-rw-r--r-- 1 domainftp psacln 9135 Aug 2 16:22 changecurrency.html
-rw-r--r-- 1 domainftp psacln 10971 Aug 2 16:23 clearterms.html
-rw-r--r-- 1 domainftp psacln 8376 Aug 2 16:23 cntyList.js
-rw-r--r-- 1 domainftp psacln 3422 Aug 2 16:23 conf.html
-rw-r--r-- 1 domainftp psacln 89 Aug 2 16:23 contactus_address.js
-rw-r--r-- 1 domainftp psacln 9489 Aug 2 16:23 customerdtl.html
-rw-r--r-- 1 domainftp psacln 750 Aug 2 16:23 customerdtl_.js
-rw-r--r-- 1 domainftp psacln 34618 Aug 2 16:23 d1_01.html
-rw-r--r-- 1 domainftp psacln 1773 Aug 2 16:23 d1__01.js
-rw-r--r-- 1 domainftp psacln 10740 Aug 2 16:23 d10.html
-rw-r--r-- 1 domainftp psacln 726 Aug 2 16:23 d10_.js
-rw-r--r-- 1 domainftp psacln 38677 Aug 2 16:23 d1.html
-rw-r--r-- 1 domainftp psacln 1995 Aug 2 16:23 d1_.js
-rw-r--r-- 1 domainftp psacln 18293 Aug 2 16:23 d2_01.html
-rw-r--r-- 1 domainftp psacln 993 Aug 2 16:23 d2__01.js
-rw-r--r-- 1 domainftp psacln 36959 Aug 2 16:23 d2.html
-rw-r--r-- 1 domainftp psacln 1997 Aug 2 16:23 d2_.js
-rw-r--r-- 1 domainftp psacln 27519 Aug 2 16:23 d3.html
-rw-r--r-- 1 domainftp psacln 1376 Aug 2 16:23 d3_.js
-rw-r--r-- 1 domainftp psacln 25583 Aug 2 16:23 d4.html
-rw-r--r-- 1 domainftp psacln 1245 Aug 2 16:23 d4_.js
-rw-r--r-- 1 domainftp psacln 22609 Aug 2 16:23 d5.html
-rw-r--r-- 1 domainftp psacln 1247 Aug 2 16:23 d5_.js
-rw-r--r-- 1 domainftp psacln 25344 Aug 2 16:23 d6.html
-rw-r--r-- 1 domainftp psacln 1249 Aug 2 16:23 d6_.js
-rw-r--r-- 1 domainftp psacln 42997 Aug 2 16:23 d9.html
-rw-r--r-- 1 domainftp psacln 2126 Aug 2 16:23 d9_.js
-rw-r--r-- 1 domainftp psacln 19626 Aug 2 16:23 favorites.html
-rw-r--r-- 1 domainftp psacln 744 Aug 2 16:23 favorites_.js
-rw-r--r-- 1 domainftp psacln 13084 Aug 2 16:23 front.html
-rw-r--r-- 1 domainftp psacln 732 Aug 2 16:23 front_.js
-rw-r--r-- 1 domainftp psacln 13121 Feb 11 2010 image_viewer.html
-rw-r--r-- 1 domainftp psacln 8298 Aug 2 16:23 index.html
-rw-r--r-- 1 domainftp psacln 2918 Aug 2 16:23 load_index1.html
-rw-r--r-- 1 domainftp psacln 3100 Aug 2 16:23 load_index2.html
-rw-r--r-- 1 domainftp psacln 3242 Aug 2 16:23 load_search.html
-rw-r--r-- 1 domainftp psacln 1593 Aug 2 16:23 load_switchlang.html
-rw-r--r-- 1 domainftp psacln 8888 Aug 2 16:23 login.html
-rw-r--r-- 1 domainftp psacln 7732 Aug 2 16:23 orderterms.html
-rw-r--r-- 1 domainftp psacln 31544 Aug 2 16:23 ordertotal.html
-rw-r--r-- 1 domainftp psacln 8463 Aug 2 16:23 otherurl.html
-rw-r--r-- 1 domainftp psacln 18846 Feb 11 2010 p10.html
-rw-r--r-- 1 domainftp psacln 13207 Aug 2 16:23 p11.html
-rw-r--r-- 1 domainftp psacln 13213 Aug 2 16:23 p12.html
-rw-r--r-- 1 domainftp psacln 13164 Aug 2 16:23 p13.html
-rw-r--r-- 1 domainftp psacln 13292 Aug 2 16:23 p14.html
-rw-r--r-- 1 domainftp psacln 13511 Aug 2 16:23 p15.html
-rw-r--r-- 1 domainftp psacln 13263 Aug 2 16:24 p16.html
-rw-r--r-- 1 domainftp psacln 13273 Aug 2 16:24 p17.html
-rw-r--r-- 1 domainftp psacln 18810 Feb 11 2010 p18.html
-rw-r--r-- 1 domainftp psacln 13434 Aug 2 16:23 p1.html
-rw-r--r-- 1 domainftp psacln 14510 Aug 2 16:24 p21.html
-rw-r--r-- 1 domainftp psacln 14524 Aug 2 16:24 p22.html
-rw-r--r-- 1 domainftp psacln 14616 Aug 2 16:24 p23.html
-rw-r--r-- 1 domainftp psacln 14538 Aug 2 16:24 p24.html
-rw-r--r-- 1 domainftp psacln 15131 Aug 2 16:24 p25.html
-rw-r--r-- 1 domainftp psacln 15128 Aug 2 16:24 p26.html
-rw-r--r-- 1 domainftp psacln 15068 Aug 2 16:24 p27.html
-rw-r--r-- 1 domainftp psacln 15569 Aug 2 16:24 p28.html
-rw-r--r-- 1 domainftp psacln 13355 Aug 2 16:24 p2.html
-rw-r--r-- 1 domainftp psacln 13356 Aug 2 16:24 p4.html
-rw-r--r-- 1 domainftp psacln 18611 Feb 11 2010 p5.html
-rw-r--r-- 1 domainftp psacln 13344 Aug 2 16:24 p6.html
-rw-r--r-- 1 domainftp psacln 13167 Aug 2 16:24 p7.html
-rw-r--r-- 1 domainftp psacln 13174 Aug 2 16:24 p8.html
-rw-r--r-- 1 domainftp psacln 13406 Aug 2 16:24 p9.html
-rw-r--r-- 1 domainftp psacln 10795 Aug 2 16:24 privacy.html
-rw-r--r-- 1 domainftp psacln 738 Aug 2 16:24 privacy_.js
-rw-r--r-- 1 domainftp psacln 69469 Aug 2 16:24 search.csv
-rw-r--r-- 1 domainftp psacln 12814 Aug 2 16:24 search.html
-rw-r--r-- 1 domainftp psacln 1898 Aug 2 16:24 search_map.10.js
-rw-r--r-- 1 domainftp psacln 2404 Aug 2 16:24 search_map.1.js
-rw-r--r-- 1 domainftp psacln 3558 Aug 2 16:24 search_map.2.js
-rw-r--r-- 1 domainftp psacln 3130 Aug 2 16:24 search_map.3.js
-rw-r--r-- 1 domainftp psacln 2916 Aug 2 16:24 search_map.4.js
-rw-r--r-- 1 domainftp psacln 1217 Aug 2 16:24 search_map.5.js
-rw-r--r-- 1 domainftp psacln 3323 Aug 2 16:24 search_map.6.js
-rw-r--r-- 1 domainftp psacln 4575 Aug 2 16:24 search_map.7.js
-rw-r--r-- 1 domainftp psacln 1524 Aug 2 16:24 search_map.8.js
-rw-r--r-- 1 domainftp psacln 2911 Aug 2 16:24 search_map.9.js
-rw-r--r-- 1 domainftp psacln 9563 Aug 2 16:25 search_map.js
-rw-r--r-- 1 domainftp psacln 1099 Feb 11 2010 search_result.html
-rw-r--r-- 1 domainftp psacln 3182 Aug 2 16:25 secure_shopping_message.html
-rw-r--r-- 1 domainftp psacln 30038 Aug 2 16:25 shipping_charge.html
-rw-r--r-- 1 domainftp psacln 10751 Aug 2 16:25 terms_email.html
-rw-r--r-- 1 domainftp psacln 19953 Aug 2 16:25 terms.html
-rw-r--r-- 1 domainftp psacln 732 Aug 2 16:25 terms_.js
-rw-r--r-- 1 domainftp psacln 10743 Aug 2 16:25 thankyou.html
-rw-r--r-- 1 domainftp psacln 741 Aug 2 16:25 thankyou_.js
-rw-r--r-- 1 domainftp psacln 9109 Aug 2 16:25 unsuccessful.html
-rw-r--r-- 1 domainftp psacln 753 Aug 2 16:25 unsuccessful_.js
-rw-r--r-- 1 domainftp psacln 403 Aug 2 16:22 V6No.html
-rw-r--r-- 1 domainftp psacln 396 Aug 2 16:22 V6Yes.html
-rw-r--r-- 1 domainftp psacln 8531 Aug 2 16:25 website.html
[root@plesk3 ~]#
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: Dreamweaver menu being stripped

Unread post by mikeshinn »

restarted httpd
and still the menu is not showing on our own server.

Then set MODEV_ENABLED to "no", clicked Update, restarted apache and still no joy.

I have reversed both the above, but would welcome, please some more help.
Well, thats it for ASL, you've disabled all the ASL features that could play a role in this and its still happening, so by process of elimination you can rule that out.

The errors you orignally posted:
[Wed Aug 03 08:55:52 2011] [error] [client 109.224.207.33] File does not exist: /var/www/vhosts/domain.co.uk
[Wed Aug 03 09:14:41 2011] [error] [client 109.224.207.33] Directory index forbidden by Options directive: /var/www/vhosts/domain.co.uk/httpdocs/contents/
Can be caused by a error in your web code (path maybe?) and/or configuration issues with your web servers setup (certainly the last one if configuration based). See Bruceless questions.

The two versions of PHP you are using are sufficiently different, but generally if 5.3 doesnt support something you will get an error. So I'd check for PHP errors too, turn on all the PHP logging in /etc/php.ini.
douglaseggleton
Forum User
Forum User
Posts: 69
Joined: Tue Jul 19, 2011 6:30 am
Location: United Kingdom

Re: Dreamweaver menu being stripped

Unread post by douglaseggleton »

The website can run offline completely fine (i.e. not in a server) so doesn't rely on anything to do with php? It's all clientside - so the PHP settings shouldn't make a difference. However, the strange thing is I have just tried to access the website again at home - it runs fine. Not sure if coolemail managed to fix it, but will check again from work.
Post Reply