[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] (PHP3 index pages)



> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Steve Werby
> Sent: 06 February 2002 19:32
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-users] (PHP3 index pages)
>
>
> "Andy Jacobs" <andy.jacobs@xxxxxxxxxxxxx> wrote:
> > > /etc/rc.d/init.d/httpd reload
> > >
> > > If that's not the problem, let us know.
> >
> > <snip>
> >
> > I haven't done a reload, but I have done a restart.  Should this work?
>
> Yes.  Please don't take this as a poke at you, just trying to
> give you some
> more ideas, but my short list of reasons would be: editing the wrong file
> (like srm.conf.master), typo in your AddType line, or AddType
> line for php3
> being set in httpd.conf for the site and being misconfigured.

I wouldn't take any advice on this one as a poke.  Anything welcome!  I'm
definitely editing the right file.  The line is definitely right as I have
added .shtml to it in the past and that worked.

As I have said in another post, I have it working now by adding the extra
line in the Virtual Sites section in the httpd.conf file.  I can't
understand why it's ignoring it in srm.conf though.  Still, at least it's
fixed.

>
> > This is a huge site and I am going through hundreds of files by hand at
> the
> > moment doing a search and replace on php3.  I think it might be quicker
> for
> > me to try and sort this and then upload it all again.  For some reason
> > Dreamweaver's global search and replace function is ignoring some of the
> > files (mostly .inc files as far as I can see)  This is like
> pulling teeth!
>
> Ouch.  I'd do a global search and replace on the server, then reload the
> files into Dreamweaver to get a clean copy on your pc.  Grab rpl 1.3.0b3
> from http://www.laffeycomputer.com/rpl.html.  Simple to install,
> allows you
> to do a global search/replace on an entire site at once.
>
> rpl --help and "man rpl" after you install it.  Then stop by
> google and do a
> search for something like 'bash script rename file extension' to grab a
> script which you can use to loop through all the files in a directory and
> change their extensions from .php3 to .php.


The file name extensions weren't the problem.  It was the files that
contained links to .php files that were causing the hassle.  Now that I have
the php3 extensions working it doesn't matter now as I have just taken all
the originals and reuploaded.  I do have another question though.  It's OT
but someone might be able to save me some time.

All the MySQL tables are ISAM and for some reason are read only.  When I try
and change the type it just errors with table x is read only.  The only way
I can do it at the moment is by dropping the table and rebuilding it.  Not
too much trouble with phpMyAdmin as I just query the table, cut the code
that phpMyAdmin tells me was used to create it in the first place, drop the
table and then paste the code back into a new query window.  The problem
with this is that all the data in the tables gets lost.

Is there any way to change the tables from read only and then change them to
MyISAM?

Andy