LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-17-2004, 07:26 AM   #1
tonyboy
LQ Newbie
 
Registered: Mar 2004
Location: Vincennes, IN
Posts: 8

Rep: Reputation: 0
403 Forbidden access to web with php and cgi scripts


i am having trouble running php and even cgi scripts on my apache. i cannot access websites with php or cgi scripts on its pages. im pretty sure it has something to do with permission settings. can anybody tell me what am i missing here? i already chmod 777 the web folder (/var/www/webfolder).

any suggestion will be greatly appreciated.
 
Old 03-17-2004, 07:32 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Did you chmod it recursively? And I wouldn't have it 777 either, you don't want just anyone to have write permissions. You just need to give everyone execute permissions on the files IN the folder. chmod 755 I think.
 
Old 03-17-2004, 07:35 AM   #3
tonyboy
LQ Newbie
 
Registered: Mar 2004
Location: Vincennes, IN
Posts: 8

Original Poster
Rep: Reputation: 0
[komakino]

oops, i think i just did a chmod 755 and not 777. i added index.php on my directory index and i think it helped. i forgot my main webpage is index.php and not index.html. but now i am getting this mysql connect error.

Fatal error: Call to undefined function: mysql_connect() in /var/www/rivet85.com/phpbb2/db/mysql4.php on line 48

any idea why?
 
Old 03-17-2004, 07:45 AM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Well it doesn't recognise the function mysql_connect(). I don't know php but if it's anything like Perl you need to include the appropriate library files to use certain functions. In perl it's a line like:
use SQL;
at the top of the file. Is there something similar in PHP?

OK, I just went to the PHP homepage and if you're using PHP5 then MySQL support is not compiled into PHP by default, nor is the MySQL library included. You'll need to get the library and then recompile PHP using the configure option --with-mysql

go here: http://uk.php.net/manual/en/ref.mysql.php for more info
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache2 virtual host cgi 403 Forbidden / mossy Linux - Software 15 07-27-2005 04:56 PM
access 403 forbidden - user_dir sigurdne Linux - Newbie 6 11-27-2004 05:55 AM
Access Forbidden 403 for PHP info page. Kitara Linux - Software 5 05-24-2004 03:41 AM
Vqadmin.cgi, 403 Forbidden Erros, and httpd.conf woe opioid Linux - Software 3 05-11-2004 08:08 AM
403 Forbidden on Virtual Servers with PHP scripts tonyboy Linux - Software 3 03-11-2004 10:43 AM


All times are GMT -5. The time now is 04:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration