Jump to content

RH8.0/Apache not parsing SOME php... (Samba?)


jmilk

Recommended Posts

Ok, this is from a complete Unix Newbie (me):

 

- Downloaded and installed RH8.0 using their apache/mysql/php packages

- Got mysql to work with php using mysql-php rpm

- downloaded and installed phpMyAdmin, configured and got it working

- got samba working

 

Then I set up virtual hosts like so:

 

NameVirtualHost 192.168.254.150

<VirtualHost 192.168.254.150>

DocumentRoot \"/home/default/public_html/mysql\"

ServerName mysql.local

</VirtualHost>

# Virtual host dev

<VirtualHost 192.168.254.150>

DocumentRoot \"/home/dev/public_html\"

ServerName dev.local

</VirtualHost>

<VirtualHost _default_:*>

DocumentRoot \"/home/default/public_html\"

</VirtualHost>

 

and

 

<Directory \"/home/dev/public_html\">

Options Indexes Includes FollowSymLinks

AllowOverride All

Order allow,deny

Allow from all

</Directory>

 

and just to be safe:

 

<Directory \"/home/dev\">

Options Indexes Includes FollowSymLinks

AllowOverride All

Order allow,deny

Allow from all

</Directory>

 

------------------

 

After adding the 192.168.254.150 to another machine\'s hosts file, I get this behavior:

 

http://192.168.254.150

Expect: Apache success or file not found

Get: phpMyAdmin

 

http://mysql.local

Expect: phpMyAdmin

Get: phpMyAdmin

 

http://dev.local

Expect: my test-site

Get: SOURCE of index.php, NOT PARSED.

 

I moved the files to the server using samba, and when i copy phpMyAdmin\'s index.php into /home/dev/public_html, it seems to be parsed.

 

What do I need to do to Samba (?) or Apache (?) to get those .php files to parse properly?

Link to comment
https://forums.phpfreaks.com/topic/178-rh80apache-not-parsing-some-php-samba/
Share on other sites

Yes, the addtype and all that is fine, because phpMyAdmin works fine.

 

What I was saying is this:

-- If I use my site (which has been working and receiving 30+ K hits per day for a month, and upload it to my personal server via samba, it doesn\'t work.

-- If I replace the samba-uploaded index.php with mysql\'s index.php, it gets parsed.

-- If I then replace mysql\'s index.php with my own index.php using samba, all I get back is the SOURCE of the php, but not the parsed result.

 

I already have done the chown/chmod stuff, and I\'m pretty confident that it\'s an issue with samba. Anyone know a quick way (or place to learn) to set up ftp on RH8?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.