LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-06-2014, 10:34 AM   #1
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Rep: Reputation: Disabled
Apache with ext js


Hi all,

I'm migrating the php website with extjs(javascripts-based framework) to new server which has higher version of php and apache. But it does not work, it does not load the menu, the content,...

Do I need to enable javascript support for apache? If yes, please give me the instruction. I have googled for this but found nothing.

Do I need to install javascript common?

I have checked the error logs, but there is no important information.

Phat.

Last edited by tranphat; 01-06-2014 at 10:35 AM. Reason: make something exact.
 
Old 01-06-2014, 11:25 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by tranphat View Post
Hi all,
I'm migrating the php website with extjs(javascripts-based framework) to new server which has higher version of php and apache. But it does not work, it does not load the menu, the content,...
And just saying "it does not work", tells us nothing. You don't tell us what version/distro of Linux you're using, what version of Apache, version of PHP, or give us any information from your log files. Have you checked the Apache log files? Error logs?? ANY details at all???
Quote:
Do I need to enable javascript support for apache? If yes, please give me the instruction. I have googled for this but found nothing.
Really?? Because when I put "how to enable javascript in apache" into Google, it gives me over 2.5 MILLION hits. With how-to guides, samples, and documentation from Apache:
http://httpd.apache.org/docs/2.2/howto/ssi.html
http://smallbusiness.chron.com/run-j...che-28357.html
Quote:
Do I need to install javascript common?
If you want javascript to run, it makes sense that you have to install it first.
Quote:
I have checked the error logs, but there is no important information.
If your web pages aren't loading, there are errors generated SOMEWHERE. Since you don't give us any details, we can't help....check ALL your log files for information, and try running Apache in the foreground, to see if you can spot anything. And are you sure that javascript is enabled in your browser?
 
Old 01-06-2014, 10:00 PM   #3
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Original Poster
Rep: Reputation: Disabled
Hello TB0ne,

The version of my system is as following:

Linux: 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
Apache: Apache/2.2.22 (Debian)
PHP: PHP 5.4.4-14+deb7u7
MySQL: 5.5.33+dfsg-0+wheezy1

About "how to enable javascript in apache", http://smallbusiness.chron.com/run-j...che-28357.html --> it doesn't work for me.

My webpage is loaded completely. But it does not show the submenu and content, it only shows the titles.
I have double-checked but found no error.

I use the firefox browser, I can browse the old website without any problems, but the new ones encounters with the problem here. I'm sure my browser has javascript enabled.
 
Old 01-07-2014, 08:37 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by tranphat View Post
Hello TB0ne,
The version of my system is as following:

Linux: 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
Apache: Apache/2.2.22 (Debian)
PHP: PHP 5.4.4-14+deb7u7
MySQL: 5.5.33+dfsg-0+wheezy1

About "how to enable javascript in apache", http://smallbusiness.chron.com/run-j...che-28357.html --> it doesn't work for me.
Ok...so how about trying ANOTHER of the many easily-found guides that you were given? And again, providing details gets you help...if you don't provide any, we can't help you. So saying "doesn't work for me", tells us NOTHING.
Quote:
My webpage is loaded completely. But it does not show the submenu and content, it only shows the titles. I have double-checked but found no error.

I use the firefox browser, I can browse the old website without any problems, but the new ones encounters with the problem here. I'm sure my browser has javascript enabled.
If your web page has loaded completely, then you should see the content, right?? There are quite obviously errors somewhere...and unless you find them, there's no way anyone here can help you. Again, have you tried running apache in the foreground, to see what's going on? Which logs have you checked? What do you see when you make a page request, specifically in the apache error log? What are the differences between the two servers?
 
Old 01-10-2014, 02:14 AM   #5
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Original Poster
Rep: Reputation: Disabled
Hi TB0ne,

Although my web page has loaded successfully and I can see its contents, the submenu and its content has not loaded successfully. I have checked the log files in /var/log/apache2/ but found no necessary information, no error record is written. I have tried running Apache in foreground as per your recommendation. But no error is logged in Apache's log files.

The new server is installed with higher version than the old server.

Old server's configuration:

Debian 5 32bit
PHP: 5.2
Mysql: 5.0
Apache 2.2

Just as you stated, I must find the problem myself. But I think this error is pertaining to the code. Because my PHP web page was written with the outdated commands of PHP such as: $HTTP_GET_VARS, ... are no longer used in PHP 5.4. Therefore, I have passed this issue to PHP team for seeking help from them. I cannot modify the code in the web page.

PS: Thank for your strict comments, I will learn how to ask a smart question.

Thanks.
 
  


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
Format Ext HD into Ext3 format only (not Ext 3/4) John Glasgow Fedora 8 01-02-2012 08:56 AM
which ext should i use cchanana Linux - Newbie 1 01-14-2005 04:41 AM
Apache and Frontpage Ext in Slackware nemesisza Linux - Software 0 01-03-2005 11:12 PM
Filesystems: ext 2, ext 3, reiserfs. Which one? r3dhatter Linux - Newbie 12 07-15-2004 12:53 AM
Iptables-- ext ip? Half_Elf Linux - Security 8 06-02-2002 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:31 AM.

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