You are not logged in.

#1 2012-05-03 12:04:59

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

[Solved] Apache always returns 404

I have installed LAMP stack, apache, php, mysql on Arch Linux. Configured it but I think I made a mistake somewhere and I keep getting 404. After triggering some 404, last few lines of error log (doesn't appear to log those 404 tho)

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu May 03 19:49:19 2012] [notice] caught SIGTERM, shutting down

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gd.so' - /usr/lib/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu May 03 19:49:50 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu May 03 19:49:50 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 03 19:49:50 2012] [notice] Digest: generating secret for digest authentication ...
[Thu May 03 19:49:50 2012] [notice] Digest: done
[Thu May 03 19:49:52 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.1b DAV/2 PHP/5.3.11 with Suhosin-Patch configured -- resuming normal operations

Whats wrong? Also I guess PHP GD is missing am I missing a package? I do have gd installed.

Some changes I have made to httpd.conf

# for convinence, I used my user to run apache
User jiewmeng
Group users

DocumentRoot "/labs/Websites/"
<Directory "/labs/Websites/">
    Options All
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

In httpd-vhosts.conf

<VirtualHost *:80>
    DocumentRoot "/labs/Projects/Nebula/web/"
    ServerName nebula
    <Directory /labs/Projects/Nebula>
        Options All
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Even when I go localhost, I am getting those 404's. What have I did wrong?

Last edited by jiewmeng (2012-05-03 13:31:35)


Computer Science Student, Web Developer

Offline

#2 2012-05-03 12:42:17

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: [Solved] Apache always returns 404

As for GD, you seem to be missing the php-gd package.

Did you add your /labs/.. folders to open_basedir in php.ini?
Did you put "Include conf/extra/php5_module.conf" in httpd.conf?

Last edited by teekay (2012-05-03 12:44:23)

Offline

#3 2012-05-03 13:05:21

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

Re: [Solved] Apache always returns 404

Ok solved, I think the mistake is once I enabled vhosts, I need to configure 1 virtual host for local host. Then for the nebula virtual host, it appears .htaccess does not work... mod_rewrite is already enabled ...


Computer Science Student, Web Developer

Offline

Board footer

Powered by FluxBB