Coding Task 2 for First Years

18 views
Skip to first unread message

Abhishek

unread,
Jun 2, 2010, 2:50:10 PM6/2/10
to Delta NITT


Click on http://groups.google.co.in/group/delta-nitt/web/coding-task-2-for-first-years
- or copy & paste it into your browser's address bar if that doesn't
work.

Dinesh

unread,
Jun 3, 2010, 1:16:25 AM6/3/10
to Delta NITT
'secure_code.txt' cannot be navigated!!! Is dat removed or
something???

On Jun 2, 11:50 pm, Abhishek <i.abh...@gmail.com> wrote:
> Click onhttp://groups.google.co.in/group/delta-nitt/web/coding-task-2-for-fir...

Dinesh

unread,
Jun 3, 2010, 1:24:46 AM6/3/10
to Delta NITT
Yeah I navigated it through the tickets... Thank you!!

Mohnish prasanna

unread,
Jun 3, 2010, 8:56:03 AM6/3/10
to Delta NITT
i am not able to rename the file to .htaccess..........i get an error
stating that "You must type a filename"........what should i do?????

Balanivash

unread,
Jun 3, 2010, 9:05:05 AM6/3/10
to Delta NITT
Well the standard problem with windows......you could either rename
the file in linuux or use notepad++.......use save as option and you
can rename the fine as .htaccess......

Mohnish prasanna

unread,
Jun 3, 2010, 9:08:22 AM6/3/10
to Delta NITT
can you give more light on how to access the tickets... (like a
stepwise instructions) ....

Balanivash

unread,
Jun 3, 2010, 7:04:59 PM6/3/10
to Delta NITT
Hey...this is just a brief explanation on tickets and patches....

The best thing about open source projects is that anyone can look at
the code and make improvements , add additional features.....thus
these projects will have more functionality, will be more user
friendly secure than others....But to maintain uniformity in the
projects, only the official creators of the project can commit the
changes to the project....Source forge is one of the portals that host
opensource projects and trac is an application which keeps track of
the development works going on in the project...If a user finds a bug
in the project or a missing functionality or want an additional
feature to be added to the project he reports it to the trac...so that
any developer who comes wants can take up on working on it...This
report is called a " ticket "...the other details about the tickets
can be found in the link given in the task......

Now how to go about working on the ticket....well the first thing
would be to understand what the ticket is about......then as we are
dealing with Pragyan CMS..I'd recommend that you first install it and
then work with it and for sometime....understand what all can be done
and also get to know the area which the ticket concerns about well and
also the problem.....only after this go through the code....everyone
must go through the index.php and common.lib.php first before others
(otherwise i'm you'll not understand what is going on... ) and after
this go the specific file you are going to work with......you can very
well guess the file on seeing the name.....do the necessary to solve
the ticket....

To create patches.....Usually when you solve a ticket, you'd have made
changes to more than one file in the directory and it'll be difficult
to keep track of all the changes you do..so in linux you can use the "
diff " function to compare two folders and it'll output the difference
in the two..(i.e. you need to keep the original CMS folder so that you
can use it here)...The syntax is " diff old_folder\ new_folder\
>patch.txt" This will compare the files in the two folders and write
the output into the file patch.txt....


Aparna

unread,
Jun 4, 2010, 1:32:04 AM6/4/10
to Delta NITT
@Balanivash - Thanks, that helps!

Mohnish.........NIT(T)-ECE

unread,
Jun 4, 2010, 3:07:23 AM6/4/10
to delta-nitt
when trying to install using all instructions i get the error that FORBIDDEN on this server.... how to work with cms in ubuntu???

Balanivash

unread,
Jun 4, 2010, 3:29:07 AM6/4/10
to Delta NITT
In ubuntu, first you need to install lamp, there is i think some
configuring to do, then you can install as you have done in
windows.....just the normal GUI.....you have to place the CMS folder
in the www folder, start lamp then you just go to the folder from your
browser,(i.e. //localhost/pragyan-cms-alpha)....

Abhishek Shrivastava

unread,
Jun 4, 2010, 3:39:47 AM6/4/10
to delta...@googlegroups.com
Wait till evening I'm uploading the latest version of CMS on the homepage of Pragyan, download and use that.

Mohnish.........NIT(T)-ECE

unread,
Jun 4, 2010, 4:36:07 AM6/4/10
to delta...@googlegroups.com
k thanks

paarth dandiwala

unread,
Jun 4, 2010, 5:31:49 AM6/4/10
to delta...@googlegroups.com
I am actually having a problem in having the installation of the pragyan cms......i have actually downloaded...a folder called trunk...n then extraxted it in www root folder....n when i try to open the install page m gettin a erro as follows:
 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

 

so...plz...if u can help me out....

 

Shankarram A

unread,
Jun 4, 2010, 5:35:25 AM6/4/10
to delta...@googlegroups.com
Try checking the permissions of the file. If thats the problem, you can chmod to 755 and it should work.
Check that and get back if your still getting the error. If it was due to something else post it here so that it helps others.

Shankarram A

unread,
Jun 4, 2010, 5:40:26 AM6/4/10
to delta...@googlegroups.com
It has been a while since i installed it so i may not be accurately guiding you but ill try to answer the problems with respect to general occurance.
 
@paarth
It might be the .htaccess file.
First check if a file outside the folder works fine. eg: test.php [just have : <? echo "test";?>] outside the cms folder
Then place it inside the folder and check if it works
See if you get the error if you remove all contents of the .htaccess file. If yes then its a configuration setting. Be sure you follow all the steps in the instructions for the settings.
 
Check and let us know and we will try to see what it might be

Siddhant Sanyam

unread,
Jun 4, 2010, 5:44:17 AM6/4/10
to delta...@googlegroups.com
If you are running Apache, make sure that in the Configuration of your
webserver, you did `AllowOverride' to `All'.
Also note that for the functionality of pretty URLs, you need to have
mod_rewrite enabled in your Apache configuration.
Search the Internet about how to do so.

paarth dandiwala

unread,
Jun 4, 2010, 6:04:57 AM6/4/10
to delta...@googlegroups.com
@Shankarram A
the problem what i m exactly facing is.....in www root folder there already exist a file index.php.....when m creating any file...test as u sugessted...and executing...its workin fine.....but when i extract the trunk files there....or just replace the index.php...with the index.php...of the trunk file....the same test file gives the same error as i mentioned......and its with the other files as well.....m not able to gudge n proceed either...so plz help me out....
 

jithinkr

unread,
Jun 4, 2010, 6:08:00 AM6/4/10
to Delta NITT
If you are using Ubuntu, and want to install the CMS, then first you
need to install Apache, MySql and PHP. Together called the LAMP
server, it can be installed very easily if you have a direct internet
connection.

After ensuring that your ubuntu box is connected to the internet, run
the following

sudo apt-get install lamp-server^

Don't miss the carrot (^)!

This should install lamp server on your ubuntu box. If you don't want
to work with mysql from terminal, you can install phpmyadmin which
lets you work with databases from the browser.

Run,

sudo apt-get install phpmyadmin

Then restart apache using

sudo service apache2 restart.

You should now be having a working server in your box.

paarth dandiwala

unread,
Jun 4, 2010, 6:10:19 AM6/4/10
to delta...@googlegroups.com

the server m using is WAMP...its on windows...actually.....

Abhishek Shrivastava

unread,
Jun 4, 2010, 6:46:53 AM6/4/10
to delta...@googlegroups.com
Okay listen.
I think you have not followed the rules. As I said, whenever you download a nightly build of the CMS (its trunk in ur case), don't forget to follow the instruction on the DEVELOPER-README file.

Check the following :

i) Your 'www' folder (after extracting trunk)  should have ATLEAST the following files  : index.php, .htaccess, htaccess-dist and folders : INSTALL and cms.

ii) DELETE the present .htaccess file and then RENAME the htaccess-dist file to .htaccess

iii) DELETE all the content of cms/config.inc.php i.e. it should be an empty file.

iv) Generally, the cms/uploads folder, .htacess and config.inc.php should be given write permissions, but since you're using windows that wont be necessary.

v) Now point ur browser to http://localhost/INSTALL/

vi) If still an error comes, means your WAMP server doesnt have the mod_rewrite module either installed or enabled. Use linux ispossible or else download the latest version of WAMP. See it documentation about how to enable mod_rewrite module.


--
Abhishek Shrivastava
E.C.E., N.I.T. Trichy

paarth dandiwala

unread,
Jun 4, 2010, 7:42:15 AM6/4/10
to Delta NITT
@abhiskek shrivastav

sir...i did as u told.....n some how...dont know what...got it correct
though...have tried the same thing before reading the DEVELOPER-README
file.......so thnx for it,.....

but the problem m now facing is m getting on to the install page...but
it gives a message for the prequisites....that i need to check for the
permission of .htaccess file to be write.....even though its...thre
already.....so....can u help me out .....solving this prob.....

Abhishek

unread,
Jun 7, 2010, 5:55:49 AM6/7/10
to Delta NITT
DEADLINE ANNOUNCED AND PATCH DETAILS UPDATED. VIEW UPDATES.

Click on http://groups.google.co.in/group/delta-nitt/web/coding-task-2-for-first-years

Mohnish prasanna

unread,
Jun 7, 2010, 9:53:45 AM6/7/10
to Delta NITT
i have submitted the patch for module #1 which is validation of form .

On Jun 7, 2:55 pm, Abhishek <i.abh...@gmail.com> wrote:
> DEADLINE ANNOUNCED AND PATCH DETAILS UPDATED. VIEW UPDATES.
>
> Click onhttp://groups.google.co.in/group/delta-nitt/web/coding-task-2-for-fir...

paarth dandiwala

unread,
Jun 8, 2010, 4:51:58 AM6/8/10
to Delta NITT
@Abhishek

hi,
m having some problem with the installation of the cms...so plz do
help me.....m posting this query specially for u 'coz shankarram123
told me that it wud be better if i ask u...(i have talked to him
before...but he was not so familiar with this installation part as he
told me)..

What is the exact prob and situation:

1)when m proceeding according to the instructions i.e. (a) emptying
config.inc,(b) deleting .htaccess,(c) renaming htaccess-dist
as .htaccess......it shows me error (internal server problem)..

2)instead of deleting and renaming if m deleting the contents
of .htaccess.....m getting the install page...i.e. a installation
form.......but in the installation process m being aborted at the step
(checking .htaccess settings)....

so kindly ....guide...me ........m not able able to even install cms
and thus m stuck up here......plz do help..

Abhishek Shrivastava

unread,
Jun 8, 2010, 6:23:28 AM6/8/10
to delta...@googlegroups.com
Send me your httpd/apache error log. If you're using uniserver, you can find it at /usr/local/apache2/logs/error.log , for linux u can find it on /var/log .

paarth dandiwala

unread,
Jun 8, 2010, 7:22:26 AM6/8/10
to delta...@googlegroups.com
I am actually using wamp.....
 
and i am sending u a file...plz tell me is this file apache_error u want?...
 
thanx for showing interest...
apache_error.log

Abhishek Shrivastava

unread,
Jun 8, 2010, 7:45:55 AM6/8/10
to delta...@googlegroups.com
Ok I see the problem. Your wamp server doesn't have Rewriteengine module enabled. Send me your configuration file httpd.conf. You can find it in a folder called "conf".

Mohnish prasanna

unread,
Jun 8, 2010, 8:35:10 AM6/8/10
to Delta NITT
when i try to access the trunk i get the following error

Forbidden

You don't have permission to access /trunk/ on this server.

Apache/2.2.14 (Ubuntu) Server at localhost Port 80

y is it so???

paarth dandiwala

unread,
Jun 8, 2010, 8:59:58 AM6/8/10
to delta...@googlegroups.com
@Abhishek Shrivastava
 
sir, actually akash chauhan sir helped me with this and got the installation proceedure succesful....but one error is coming after that....when i am clicking on the hyperlink for the cms (If you have done this, click here to go to the CMS.)....m getting an error ......a microsoft windows popup and error says apache http server has stoped working.......
 
sir can u suggest me some way out of it........plz reply.....
 
m still sending u my httpd.conf file...
httpd.conf

Mohnish prasanna

unread,
Jun 8, 2010, 11:22:50 AM6/8/10
to Delta NITT
@abhishek

i have installed cms successfully but when i click on the links i get
the error that


Not Found
The requested URL /trunk/+login was not found on this server.

y is it so....i am awaiting quick reply please......

Mohnish prasanna

unread,
Jun 8, 2010, 11:42:59 AM6/8/10
to Delta NITT
after doing some corrections i get the error that

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, webmaster@localhost and
inform them of the time the error occurred, and anything you might
have done that may have caused the error.

More information about this error may be available in the server error
log.


PLEASE REPLY SOON..

Abhishek Shrivastava

unread,
Jun 8, 2010, 1:11:27 PM6/8/10
to delta...@googlegroups.com
Well, first of all undo whatever changes you did to get "Internal Server Error".
Then send me your apache/httpd error log and httpd.conf file.
The problem is that RewriteEngine is not enabled.

Mohnish.........NIT(T)-ECE

unread,
Jun 8, 2010, 1:34:48 PM6/8/10
to delta...@googlegroups.com, i.abhi27
i have removed the changes
error.log

paarth dandiwala

unread,
Jun 9, 2010, 12:08:50 AM6/9/10
to delta...@googlegroups.com

@Mohnish prasanna
 
I think i have the same prob as u r getting ......jus go to the server and then in apache(sub stream)....in the apache modules jus...enable the rewrite_module........(as told by Akash Chauhan sir)....n u will get the process of installation done.
 
But after the process when i click on the link....i get an error .....Not Found......and my apache server stops working.........so...its the same error...i think......so if u get any solution out of this...or if u have got .....plz forward it to me.....n if i get....will surely do the same...(though I have requested Abhishek sir for the solution of my prob..)....
 
thnx..
 
Regard
Parth Dandiwala. 

Mohnish prasanna

unread,
Jun 9, 2010, 12:28:27 AM6/9/10
to Delta NITT
@parth

the error is because you have not included the <directory "location of
trunk">AllowOverride All </Directory>
in the httpd.conf if windows and apache2.conf if linux .

On Jun 9, 9:08 am, paarth dandiwala <paarth.dandiw...@gmail.com>
wrote:

paarth dandiwala

unread,
Jun 9, 2010, 1:52:28 AM6/9/10
to delta...@googlegroups.com
i have already included that......i guess its because of some other problem which m not able to get......plz help...if any one can..solve this prob...
 
--
Parth Dandiwala

Abhishek Shrivastava

unread,
Jun 9, 2010, 8:18:37 AM6/9/10
to delta...@googlegroups.com
@paarth : Send me your httpd.conf and the address of the directory in which u host the cms.

The usual reason of Not found is the rewritemodule is not enabled, and some times even if its enables, then the FollowSymLinks feature is not activated. Try putting this code in the httpd.conf and then restart apache.

<Directory "<put here the path of the cms>" >
Order Allow,Deny
Allow from 127.0.0.1
AllowOverride All
Options +FollowSymLinks
</Directory>

and for enabling rewrite module, run this command in the shell,

a2enmod rewrite

(as root). And then restart apache. If that doesnt fix it, then send me the files.

paarth dandiwala

unread,
Jun 9, 2010, 2:52:17 PM6/9/10
to delta...@googlegroups.com
@Abhishek Shrivastava
 
thank u sir ...got the fault and now....the cms is installed......
 
the missing thing was..option+FollowSymLinks......this was the only the only thing that was missing and u gave me the clue......
 
thank u once again....
 
--
Parth K Dandiwala.

Abhishek

unread,
Jun 9, 2010, 5:33:53 PM6/9/10
to Delta NITT
@Mohnish : Your patch was not submitted successfully. The ZIP File was
corrupt. After submitting, try to download that file by right clicking
on it > Save As .. and check if it opens properly.

Mohnish.........NIT(T)-ECE

unread,
Jun 9, 2010, 10:42:37 PM6/9/10
to delta...@googlegroups.com
i have uploaded the patch in the TRAC page of module1 it contains validation for both the installation page and the page where we add the news .

CHANGES:

1.$newsView.="<h1>$temp[news_title]</h1>"----substituted with $newsView.="<h1>NEWS</h1>" FROM news.lib.php LINE 275
2.VALIDATION IN THE FILE news.lib.php
3.VALIDATION for the installation page .

Mohnish prasanna

unread,
Jun 9, 2010, 11:56:04 PM6/9/10
to Delta NITT
sorry not module it is ticket #1

On Jun 10, 7:42 am, "Mohnish.........NIT(T)-ECE"

Dinesh

unread,
Jun 10, 2010, 3:28:20 AM6/10/10
to Delta NITT
I have problem installing CMS...
I have problem in importing the database...
I see the following error after I click to install.

Saving Configuration Settings Successful
Checking Database Access Successful
Importing Database Aborted
Checking .htaccess Settings Aborted
Error:
(...SQL query for CREATE TABLE IF NOT EXIST....)
Unable to create structure. You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near '; CREATE TABLE IF NOT EXISTS
`article_content` ( `page_modulecompone' at line 1 Click here to
go back.
Please help!!!!!

Chakradar Raju

unread,
Jun 10, 2010, 4:44:53 AM6/10/10
to delta...@googlegroups.com
try creating the tables manually, go to phpmyadmin create a database for pragyan cms, go to import tab and in the file to import section, click on the browse and select, pragyan_structure.sql(inside INSTALL directory) check if this creates error.

Dinesh

unread,
Jun 10, 2010, 9:05:12 AM6/10/10
to Delta NITT
I imported the tables to the database...
Even then I am getting the same error message...
I tested out with global privilages and other working databases..
I am getting the same error...

On Jun 10, 1:44 pm, Chakradar Raju <chakradarr...@gmail.com> wrote:
> try creating the tables manually, go to phpmyadmin create a database for
> pragyan cms, go to import tab and in the file to import section, click on
> the browse and select, pragyan_structure.sql(inside INSTALL directory) check
> if this creates error.
>

Chakradar Raju

unread,
Jun 10, 2010, 9:15:24 AM6/10/10
to delta...@googlegroups.com
then your pragyan_structure.sql file might have got changed, try downloading a fresh copy of the pragyan_structure.sql file.
even if that didn't work, your mysql server might have problem, reinstall it and try.

abhinav kunal

unread,
Jun 10, 2010, 10:38:21 AM6/10/10
to delta...@googlegroups.com
sir i have some problem  regarding installation.
I am using XAMPP .
And followed all the instructions but now in browser i am asked following thing 
in pragyan CMS  installation page.(i am sending you what prerequisite i am asked)


Also i am not able to change the file htaccess-dist  to  .htaccess but only to htaccess
Pragyan CMS Installation.docx

abhinav kunal

unread,
Jun 10, 2010, 10:38:45 AM6/10/10
to delta...@googlegroups.com
plz reply

Mohnish.........NIT(T)-ECE

unread,
Jun 10, 2010, 11:05:08 AM6/10/10
to delta...@googlegroups.com
to change htaccess-dist to .htaccess in windows use notepad++ and rename it...........

On Thu, Jun 10, 2010 at 8:08 PM, abhinav kunal <abhin...@gmail.com> wrote:



--
Mohnish prasanna
ECE , NIT-Trichy

abhinav kunal

unread,
Jun 10, 2010, 11:08:20 AM6/10/10
to delta...@googlegroups.com
sir i have some problem  regarding installation.
I am using XAMPP .
And followed all the instructions but now in browser i am asked following thing 
in pragyan CMS  installation page.(i am sending you what prerequisite i am asked)

Also in one particular instruction we have to change htaccess-dist to .htaccess but i am not to change it . 

Also i am not able to change the file htaccess-dist  to  .htaccess but only to htaccess
Despite this also pragyan cms installation page is coming.

plz reply as i could not proceed further in installation

Mohnish prasanna

unread,
Jun 10, 2010, 11:11:13 AM6/10/10
to Delta NITT
try the thing i told you.......use notepad++ to rename the file
to .htaccess

On Jun 10, 8:08 pm, abhinav kunal <abhinav...@gmail.com> wrote:
> sir i have some problem  regarding installation.
> I am using XAMPP .
> And followed all the instructions but now in browser i am asked following
> thing
> in pragyan CMS  installation page.(i am sending you what prerequisite i am
> asked)
>
> Also in one particular instruction we have to change htaccess-dist to
> .htaccess but i am not to change it .
>
> Also i am not able to change the file htaccess-dist  to  .htaccess but only
> to htaccess
> Despite this also pragyan cms installation page is coming.
>
> plz reply as i could not proceed further in installation
>
>
>
> On Thu, Jun 10, 2010 at 8:08 PM, abhinav kunal <abhinav...@gmail.com> wrote:
> > plz reply
>
> > On Thu, Jun 10, 2010 at 8:08 PM, abhinav kunal <abhinav...@gmail.com>wrote:
>
> >> sir i have some problem  regarding installation.
> >> I am using XAMPP .
> >> And followed all the instructions but now in browser i am asked following
> >> thing
> >> in pragyan CMS  installation page.(i am sending you what prerequisite i am
> >> asked)
>
> >> Also i am not able to change the file htaccess-dist  to  .htaccess but
> >> only to htaccess
>
> >> On Thu, Jun 10, 2010 at 6:45 PM, Chakradar Raju <chakradarr...@gmail.com>wrote:
>
> >>> then your pragyan_structure.sql file might have got changed, try
> >>> downloading a fresh copy of the pragyan_structure.sql file.
> >>> even if that didn't work, your mysql server might have problem, reinstall
> >>> it and try.
>

abhinav kunal

unread,
Jun 10, 2010, 11:15:37 AM6/10/10
to delta...@googlegroups.com
@mohnish thanks.
i am able to change it but now server error comes

Mohnish.........NIT(T)-ECE

unread,
Jun 10, 2010, 11:24:35 AM6/10/10
to delta...@googlegroups.com
what error?

abhinav kunal

unread,
Jun 10, 2010, 12:57:38 PM6/10/10
to delta...@googlegroups.com
in error.log i am getting this problem Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration.
I am sending you error.log file
error.log

Akash Chauhan

unread,
Jun 10, 2010, 1:12:32 PM6/10/10
to delta...@googlegroups.com
@abhnav
your rewrite engine is disabled..enable the rewrite module by
uncomment (remove #) this line in httpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so

abhinav kunal

unread,
Jun 10, 2010, 1:26:05 PM6/10/10
to delta...@googlegroups.com
Still the same error..I did change as u told.
i m sending my httpd.conf and error.log file both
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration-this is the error im getting
httpd.conf
error.log

abhinav kunal

unread,
Jun 10, 2010, 1:36:28 PM6/10/10
to delta...@googlegroups.com
@akash chauhan 
Still the same error..I did change as u told.
i m sending my httpd.conf and error.log file both
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration-this is the error im getting
plz reply
httpd.conf
error.log

Akash Chauhan

unread,
Jun 10, 2010, 1:45:54 PM6/10/10
to delta...@googlegroups.com
@abhinav
Did you restart your server after editing the file

abhinav kunal

unread,
Jun 10, 2010, 1:48:31 PM6/10/10
to delta...@googlegroups.com
yes  sir i did 

abhinav kunal

unread,
Jun 10, 2010, 1:53:49 PM6/10/10
to delta...@googlegroups.com
@akash chauhan 
yes i restart the server
also i have sent you my httpd.conf file in which i have made some changes in directory.
plz go through them.Is  that alright.

abhinav kunal

unread,
Jun 10, 2010, 1:55:06 PM6/10/10
to delta...@googlegroups.com
@akash chauhan 
yes i restart the server
also i have sent you my httpd.conf file in which i have made some changes in directory.
plz go through them.Is  that alright.
- Show quoted text -
httpd.conf

abhinav kunal

unread,
Jun 10, 2010, 2:51:12 PM6/10/10
to delta...@googlegroups.com

@akash sir
PHP Version 5.docx

Mohnish prasanna

unread,
Jun 10, 2010, 11:31:03 PM6/10/10
to Delta NITT
echo $this-
>getUnregisteredUsersFromPattern(safe_html($_GET['forwhat']));

is using safe_html() here is correct???

Dinesh

unread,
Jun 11, 2010, 3:38:37 AM6/11/10
to Delta NITT
@chakradar:: I tried downloading fresh copy of sql file and
importing...
I get all the tables imported as before but still getting the same
error.
I reinstalled WAMP but I dont get this error resolved... Plz help.

On Jun 10, 10:45 pm, Akash Chauhan <akash6...@gmail.com> wrote:
> @abhinav
> Did you restart your server after editing the file
>
> On Thu, Jun 10, 2010 at 11:06 PM, abhinav kunal <abhinav...@gmail.com>wrote:
>
> > @akash chauhan
> > Still the same error..I did change as u told.
> > i m sending my httpd.conf and error.log file both
> > Invalid command 'RewriteEngine', perhaps misspelled or defined by a module
> > not included in the server configuration-this is the error im getting
> > plz reply
>
> > On Thu, Jun 10, 2010 at 10:56 PM, abhinav kunal <abhinav...@gmail.com>wrote:
>
> >> Still the same error..I did change as u told.
> >> i m sending my httpd.conf and error.log file both
> >> Invalid command 'RewriteEngine', perhaps misspelled or defined by a module
> >> not included in the server configuration-this is the error im getting
>
> >> On Thu, Jun 10, 2010 at 10:42 PM, Akash Chauhan <akash6...@gmail.com>wrote:
>
> >>> @abhnav
> >>> your rewrite engine is disabled..enable the rewrite module by
> >>> uncomment (remove #) this line in httpd.conf
> >>> #LoadModule rewrite_module modules/mod_rewrite.so
>
> >>> On Thu, Jun 10, 2010 at 10:27 PM, abhinav kunal <abhinav...@gmail.com>wrote:
>
> >>>> in error.log i am getting this problem Invalid command 'RewriteEngine',
> >>>> perhaps misspelled or defined by a module not included in the server
> >>>> configuration.
> >>>> I am sending you error.log file
>
> >>>> On Thu, Jun 10, 2010 at 8:54 PM, Mohnish.........NIT(T)-ECE <
> >>>> firegobl...@gmail.com> wrote:
>
> >>>>> what error?
>
> >>>>> On Thu, Jun 10, 2010 at 8:45 PM, abhinav kunal <abhinav...@gmail.com>wrote:
>
> >>>>>> @mohnish thanks.
> >>>>>> i am able to change it but now server error comes
>
> >>>>>> On Thu, Jun 10, 2010 at 8:35 PM, Mohnish.........NIT(T)-ECE <
> >>>>>> firegobl...@gmail.com> wrote:
>
> >>>>>>> to change htaccess-dist to .htaccess in windows use notepad++ and
> >>>>>>> rename it...........
>
> >>>>>>>  On Thu, Jun 10, 2010 at 8:08 PM, abhinav kunal <
> >>>>>>> abhinav...@gmail.com> wrote:
>
> >>>>>>>> sir i have some problem  regarding installation.
> >>>>>>>> I am using XAMPP .
> >>>>>>>>  And followed all the instructions but now in browser i am asked
> >>>>>>>> following thing
> >>>>>>>> in pragyan CMS  installation page.(i am sending you what
> >>>>>>>> prerequisite i am asked)
>
> >>>>>>>> Also i am not able to change the file htaccess-dist  to  .htaccess
> >>>>>>>> but only to htaccess
>
> >>>>>>>> On Thu, Jun 10, 2010 at 6:45 PM, Chakradar Raju <
> >>>>>>>> chakradarr...@gmail.com> wrote:
>
> >>>>>>>>> then your pragyan_structure.sql file might have got changed, try
> >>>>>>>>> downloading a fresh copy of the pragyan_structure.sql file.
> >>>>>>>>> even if that didn't work, your mysql server might have problem,
> >>>>>>>>> reinstall it and try.
>

Abhishek

unread,
Jun 11, 2010, 6:55:38 AM6/11/10
to Delta NITT
@mohsin:

No, use safe_html ONLY in any echo statement. For example -

echo "Hello World = ".safe_html($_GET['name']);

Also be careful with displayerror, displayinfo and displaywarning
functions. When u pass them any value, they are sent to echo directly,
so use safe_html before pasing them the string.

abhinav kunal

unread,
Jun 11, 2010, 8:04:16 AM6/11/10
to delta...@googlegroups.com
@aksah chauhan sir
i have successfully installed pragyan cms .
The problem could be solved by reinstalling the xampp.I have undo all changes i have made and then carrying the instruction.
but one more thing 
after successful importing in Finalize Installation page i was asked to do following  changes
in httpd.conf
For Pragyan CMS to work, .htaccess needs to be supported your webserver.
For this, the AllowOverride setting in the httpd.conf has to be made Options FileInfo Limit under the relevant <Directory> section.
The default location of httpd.conf is /etc/httpd/conf/httpd.conf, but may be different for you according to your installation.

Add the following lines in the httpd.conf of your webserver :
				<Directory "E:/xampp/htdocs/trunk">
					AllowOverride All
				</Directory>
			
If you have done this, click here to go to the CMS.  
when i made the changes error comes. path not correct.

paarth dandiwala

unread,
Jun 12, 2010, 1:48:52 PM6/12/10
to Delta NITT
M trying to make patch for ticket #6......n so will be uploading it
as,....u have instructed.....is it k......

Abhishek Shrivastava

unread,
Jun 12, 2010, 4:44:41 PM6/12/10
to delta...@googlegroups.com
Mohnish has already submitted a patch for the forms module, though it was incomplete I fixed the gaps just now and so the ticket is closed now. You can try other tickets, not necessarily only beginners. Also if u find any bug in Pragyan CMS you can create your own ticket and submit a patch for it. This task will end on June 15. After that, there wont be any more smaller projects, but we'll give all of you a big project to work on and bring it directly with yourself during the interviews where you'll be asked in detail about both the projects i.e. your Task 1 (if u hav submitted it) and the final project. This Task 2 was only to get you acquainted with Pragyan CMS because that's where you people will have to work in the beginning if you're inducted into Delta.


--
Abhishek Shrivastava
E.C.E., N.I.T. Trichy

paarth dandiwala

unread,
Jun 13, 2010, 1:32:58 AM6/13/10
to delta...@googlegroups.com
@Abhishek Shrivastava:
 
k ....thnx......

abhinav kunal

unread,
Jun 13, 2010, 3:47:13 AM6/13/10
to delta...@googlegroups.com
i m trying  to correct the code of ticket #12 including child pages in pdf where error comes as Fatal error: Call to undefined method HTML2FPDF::DisplayPreferences() in E:\xampp\htdocs\trunk\cms\modules\pdf\html2fpdf.php on line 155
when error level set to 4 

On Sun, Jun 13, 2010 at 11:02 AM, paarth dandiwala <paarth.d...@gmail.com> wrote:
@Abhishek Shrivastava:
 
k ....thnx......

abhinav kunal

unread,
Jun 13, 2010, 5:12:14 AM6/13/10
to delta...@googlegroups.com
i will submit my code when i m done

Dinesh Prasanth

unread,
Jun 13, 2010, 8:40:38 AM6/13/10
to delta...@googlegroups.com
@Abishek:: I am trying to install pragyan CMS from past 4 days and been posting problems but not suceeded in installing it yet...
I get Importing database error... And the following message...

"Unable to create structure. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; CREATE TABLE IF NOT EXISTS `article_content` ( `page_modulecompone' at line1"

Deadline is going to end... I am helpless without resources to work on task2...

Please help on this regard... I attached required files....

apache_error.log
config.inc.php
error.log

Mohnish.........NIT(T)-ECE

unread,
Jun 13, 2010, 8:42:30 AM6/13/10
to delta...@googlegroups.com
same error in linux also???

Dinesh

unread,
Jun 13, 2010, 8:57:48 AM6/13/10
to Delta NITT
No I use WAMP still... I dint get to be used with linux...
I need to work on linux more before I get2 work with LAMP!!!

On Jun 13, 5:42 pm, "Mohnish.........NIT(T)-ECE"
<firegobl...@gmail.com> wrote:
> same error in linux also???
>
> On Sun, Jun 13, 2010 at 6:10 PM, Dinesh Prasanth
> <mail2dinesh...@gmail.com>wrote:
>
>
>
> > @Abishek:: I am trying to install pragyan CMS from past 4 days and been
> > posting problems but not suceeded in installing it yet...
> > I get Importing database error... And the following message...
>
> > "Unable to create structure. You have an error in your SQL syntax; check
> > the manual that corresponds to your MySQL server version for the right
> > syntax to use near '; CREATE TABLE IF NOT EXISTS `article_content` (
> > `page_modulecompone' at line1"
>
> > Deadline is going to end... I am helpless without resources to work on
> > task2...
>
> > Please help on this regard... I attached required files....
>
> > On Sun, Jun 13, 2010 at 2:42 PM, abhinav kunal <abhinav...@gmail.com>wrote:
>
> >> i will submit my code when i m done
>
> >> On Sun, Jun 13, 2010 at 1:17 PM, abhinav kunal <abhinav...@gmail.com>wrote:
>
> >>> i m trying  to correct the code of ticket #12 including child pages in
> >>> pdf where error comes as *Fatal error*: Call to undefined method
> >>> HTML2FPDF::DisplayPreferences() in *
> >>> E:\xampp\htdocs\trunk\cms\modules\pdf\html2fpdf.php* on line *155*
> >>> **when error level set to 4

Shiva Nandan

unread,
Jun 14, 2010, 12:58:50 PM6/14/10
to Delta NITT
Patch created for ticket #24 pagelisting of gallery.
Reply all
Reply to author
Forward
0 new messages